@Generated(value={"common/config/src/templates/ConfigBuilder.stg","common/config/config.gradle"})
public final class PgxRedactionRulesConfigBuilder
extends java.lang.Object
PgxRedactionRulesConfig
.Constructor and Description |
---|
PgxRedactionRulesConfigBuilder()
Constructs an empty PgxRedactionRulesConfigBuilder
|
PgxRedactionRulesConfigBuilder(java.util.Map<PgxRedactionRulesConfig.Field,java.lang.Object> values)
Constructs a PgxRedactionRulesConfigBuilder initialized with the values from the given map
|
PgxRedactionRulesConfigBuilder(PgxRedactionRulesConfig config)
Constructs a PgxRedactionRulesConfigBuilder initialized with the values from the given config
|
PgxRedactionRulesConfigBuilder(PgxRedactionRulesConfigBuilder builder)
Constructs a PgxRedactionRulesConfigBuilder initialized with the values from the given builder
|
Modifier and Type | Method and Description |
---|---|
PgxRedactionRulesConfig |
build()
Builds the PgxRedactionRulesConfig with a
parentPath of null . |
PgxRedactionRulesConfig |
build(java.lang.String parentPath)
Builds the PgxRedactionRulesConfig.
|
static PgxRedactionRulesConfig |
buildPgxRedactionRulesConfig(java.util.function.Consumer<PgxRedactionRulesConfigBuilder> builderSetup)
Builds a
PgxRedactionRulesConfig in-place |
PgxRedactionRulesConfigBuilder |
clear()
Clears all values from the builder
|
java.util.Map<PgxRedactionRulesConfig.Field,java.lang.Object> |
getValues() |
PgxRedactionRulesConfigBuilder |
putAll(java.util.Map<PgxRedactionRulesConfig.Field,java.lang.Object> values)
Puts all values from the given map into this builder.
|
PgxRedactionRulesConfigBuilder |
putAll(PgxRedactionRulesConfig config)
Puts all values from the given config into this builder
|
PgxRedactionRulesConfigBuilder |
setLabel(java.lang.String label)
Vertex / Edge label to which the rule is applied
|
PgxRedactionRulesConfigBuilder |
setProperties(java.lang.String... properties)
List of properties to be redacted
|
PgxRedactionRulesConfigBuilder |
setRedactEdge(java.lang.String redactEdge)
Trigger expression for redacting edges
|
PgxRedactionRulesConfigBuilder |
setRedactEdgeProperties(java.lang.Object... redactEdgeProperties)
Rules for redacting edge properties
|
PgxRedactionRulesConfigBuilder |
setRedactionRules(java.lang.Object... redactionRules)
desc redaction_rules
|
PgxRedactionRulesConfigBuilder |
setRedactVertex(java.lang.String redactVertex)
Trigger expression for redacting vertices
|
PgxRedactionRulesConfigBuilder |
setRedactVertexProperties(java.lang.Object... redactVertexProperties)
Rules for redacting vertex properties
|
PgxRedactionRulesConfigBuilder |
setRuleName(java.lang.String ruleName)
Name of the redaction rule
|
PgxRedactionRulesConfigBuilder |
setRuleTrigger(java.lang.String ruleTrigger)
Trigger expression for the rule
|
java.io.InputStream |
toInputStream() |
java.lang.String |
toString() |
public PgxRedactionRulesConfigBuilder()
public PgxRedactionRulesConfigBuilder(java.util.Map<PgxRedactionRulesConfig.Field,java.lang.Object> values)
values
- a map containing configuration valuespublic PgxRedactionRulesConfigBuilder(PgxRedactionRulesConfig config)
config
- the configuration to take the values frompublic PgxRedactionRulesConfigBuilder(PgxRedactionRulesConfigBuilder builder)
builder
- the builder to take the values frompublic PgxRedactionRulesConfig build()
parentPath
of null
.build(String)
public PgxRedactionRulesConfig build(java.lang.String parentPath)
parentPath
- if not null, resolves relative paths against this parentPathpublic static PgxRedactionRulesConfig buildPgxRedactionRulesConfig(java.util.function.Consumer<PgxRedactionRulesConfigBuilder> builderSetup)
PgxRedactionRulesConfig
in-placebuilderSetup
- a consumer to setup a newly created PgxRedactionRulesConfig
public PgxRedactionRulesConfigBuilder clear()
public java.util.Map<PgxRedactionRulesConfig.Field,java.lang.Object> getValues()
public PgxRedactionRulesConfigBuilder putAll(java.util.Map<PgxRedactionRulesConfig.Field,java.lang.Object> values)
values
- the values to put in the builderpublic PgxRedactionRulesConfigBuilder putAll(PgxRedactionRulesConfig config)
config
- the config to take the values frompublic PgxRedactionRulesConfigBuilder setLabel(java.lang.String label)
public PgxRedactionRulesConfigBuilder setProperties(java.lang.String... properties)
properties
- Property to redactpublic PgxRedactionRulesConfigBuilder setRedactEdge(java.lang.String redactEdge)
public PgxRedactionRulesConfigBuilder setRedactEdgeProperties(java.lang.Object... redactEdgeProperties)
redactEdgeProperties
- nullpublic PgxRedactionRulesConfigBuilder setRedactionRules(java.lang.Object... redactionRules)
redactionRules
- nullpublic PgxRedactionRulesConfigBuilder setRedactVertex(java.lang.String redactVertex)
public PgxRedactionRulesConfigBuilder setRedactVertexProperties(java.lang.Object... redactVertexProperties)
redactVertexProperties
- nullpublic PgxRedactionRulesConfigBuilder setRuleName(java.lang.String ruleName)
public PgxRedactionRulesConfigBuilder setRuleTrigger(java.lang.String ruleTrigger)
public java.io.InputStream toInputStream()
InputStream
representing the configpublic java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2010, 2020 Oracle and/or its affiliates. All Rights Reserved.