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.Object
Builder 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 PropertiesRedactionRuleConfig
build()
Builds the PropertiesRedactionRuleConfig with aparentPath
ofnull
.PropertiesRedactionRuleConfig
build(java.lang.String parentPath)
Builds the PropertiesRedactionRuleConfig.static PropertiesRedactionRuleConfig
buildPropertiesRedactionRuleConfig(java.util.function.Consumer<PropertiesRedactionRuleConfigBuilder> builderSetup)
Builds aPropertiesRedactionRuleConfig
in-placePropertiesRedactionRuleConfigBuilder
clear()
Clears all values from the builderjava.util.Map<PropertiesRedactionRuleConfig.Field,java.lang.Object>
getValues()
PropertiesRedactionRuleConfigBuilder
putAll(java.util.Map<PropertiesRedactionRuleConfig.Field,java.lang.Object> values)
Puts all values from the given map into this builder.PropertiesRedactionRuleConfigBuilder
putAll(PropertiesRedactionRuleConfig config)
Puts all values from the given config into this builderPropertiesRedactionRuleConfigBuilder
setLabel(java.lang.String label)
Vertex / Edge label to which the rule is appliedPropertiesRedactionRuleConfigBuilder
setProperties(java.lang.String... properties)
List of properties to be redactedPropertiesRedactionRuleConfigBuilder
setRuleTrigger(java.lang.String ruleTrigger)
Trigger expression for the rulejava.io.InputStream
toInputStream()
java.lang.String
toString()
-
-
-
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 aPropertiesRedactionRuleConfig
in-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 aparentPath
ofnull
.- Returns:
- An instance of PropertiesRedactionRuleConfig
- See Also:
build(String)
-
toInputStream
public java.io.InputStream toInputStream()
- Returns:
- an
InputStream
representing 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:
toString
in 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
-
-