Package oracle.pgx.config
Class PropertiesRedactionRuleConfigBuilder
- java.lang.Object
-
- oracle.pgx.config.PropertiesRedactionRuleConfigBuilder
-
@Generated({"common/config/src/templates/ConfigBuilder.stg","common/config/config.gradle"}) public final class PropertiesRedactionRuleConfigBuilder extends java.lang.ObjectBuilder forPropertiesRedactionRuleConfig.
-
-
Constructor Summary
Constructors Constructor Description PropertiesRedactionRuleConfigBuilder()Constructs an empty PropertiesRedactionRuleConfigBuilderPropertiesRedactionRuleConfigBuilder(java.util.Map<PropertiesRedactionRuleConfig.Field,java.lang.Object> values)Constructs a PropertiesRedactionRuleConfigBuilder initialized with the values from the given mapPropertiesRedactionRuleConfigBuilder(PropertiesRedactionRuleConfig config)Constructs a PropertiesRedactionRuleConfigBuilder initialized with the values from the given configPropertiesRedactionRuleConfigBuilder(PropertiesRedactionRuleConfigBuilder builder)Constructs a PropertiesRedactionRuleConfigBuilder initialized with the values from the given builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PropertiesRedactionRuleConfigbuild()Builds the PropertiesRedactionRuleConfig with aparentPathofnull.PropertiesRedactionRuleConfigbuild(java.lang.String parentPath)Builds the PropertiesRedactionRuleConfig.static PropertiesRedactionRuleConfigbuildPropertiesRedactionRuleConfig(java.util.function.Consumer<PropertiesRedactionRuleConfigBuilder> builderSetup)Builds aPropertiesRedactionRuleConfigin-placePropertiesRedactionRuleConfigBuilderclear()Clears all values from the builderjava.util.Map<PropertiesRedactionRuleConfig.Field,java.lang.Object>getValues()PropertiesRedactionRuleConfigBuilderputAll(java.util.Map<PropertiesRedactionRuleConfig.Field,java.lang.Object> values)Puts all values from the given map into this builder.PropertiesRedactionRuleConfigBuilderputAll(PropertiesRedactionRuleConfig config)Puts all values from the given config into this builderPropertiesRedactionRuleConfigBuildersetLabel(java.lang.String label)Vertex / Edge label to which the rule is appliedPropertiesRedactionRuleConfigBuildersetProperties(java.lang.String... properties)List of properties to be redactedPropertiesRedactionRuleConfigBuildersetRuleTrigger(java.lang.String ruleTrigger)Trigger expression for the rulejava.io.InputStreamtoInputStream()java.lang.StringtoString()
-
-
-
Constructor Detail
-
PropertiesRedactionRuleConfigBuilder
public PropertiesRedactionRuleConfigBuilder()
Constructs an empty PropertiesRedactionRuleConfigBuilder
-
PropertiesRedactionRuleConfigBuilder
public PropertiesRedactionRuleConfigBuilder(java.util.Map<PropertiesRedactionRuleConfig.Field,java.lang.Object> values)
Constructs a PropertiesRedactionRuleConfigBuilder initialized with the values from the given map- Parameters:
values- a map containing configuration values
-
PropertiesRedactionRuleConfigBuilder
public PropertiesRedactionRuleConfigBuilder(PropertiesRedactionRuleConfig config)
Constructs a PropertiesRedactionRuleConfigBuilder initialized with the values from the given config- Parameters:
config- the configuration to take the values from
-
PropertiesRedactionRuleConfigBuilder
public PropertiesRedactionRuleConfigBuilder(PropertiesRedactionRuleConfigBuilder builder)
Constructs a PropertiesRedactionRuleConfigBuilder initialized with the values from the given builder- Parameters:
builder- the builder to take the values from
-
-
Method Detail
-
buildPropertiesRedactionRuleConfig
public static PropertiesRedactionRuleConfig buildPropertiesRedactionRuleConfig(java.util.function.Consumer<PropertiesRedactionRuleConfigBuilder> builderSetup)
Builds aPropertiesRedactionRuleConfigin-place- Parameters:
builderSetup- a consumer to setup a newly createdPropertiesRedactionRuleConfig
-
putAll
public PropertiesRedactionRuleConfigBuilder putAll(java.util.Map<PropertiesRedactionRuleConfig.Field,java.lang.Object> values)
Puts all values from the given map into this builder.- Parameters:
values- the values to put in the builder
-
putAll
public PropertiesRedactionRuleConfigBuilder putAll(PropertiesRedactionRuleConfig config)
Puts all values from the given config into this builder- Parameters:
config- the config to take the values from
-
clear
public PropertiesRedactionRuleConfigBuilder clear()
Clears all values from the builder
-
build
public PropertiesRedactionRuleConfig build(java.lang.String parentPath)
Builds the PropertiesRedactionRuleConfig.- Parameters:
parentPath- if not null, resolves relative paths against this parentPath- Returns:
- an instance of PropertiesRedactionRuleConfig
-
build
public PropertiesRedactionRuleConfig build()
Builds the PropertiesRedactionRuleConfig with aparentPathofnull.- Returns:
- An instance of PropertiesRedactionRuleConfig
- See Also:
build(String)
-
toInputStream
public java.io.InputStream toInputStream()
- Returns:
- an
InputStreamrepresenting the config
-
getValues
public java.util.Map<PropertiesRedactionRuleConfig.Field,java.lang.Object> getValues()
- Returns:
- the raw config values
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
setLabel
public PropertiesRedactionRuleConfigBuilder setLabel(java.lang.String label)
Vertex / Edge label to which the rule is applied
-
setProperties
public PropertiesRedactionRuleConfigBuilder setProperties(java.lang.String... properties)
List of properties to be redacted- Parameters:
properties- Property to redact
-
setRuleTrigger
public PropertiesRedactionRuleConfigBuilder setRuleTrigger(java.lang.String ruleTrigger)
Trigger expression for the rule
-
-