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