@Generated(value={"common/config/src/templates/ConfigBuilder.stg","common/config/config.gradle"})
public final class PgxRedactionRuleMappingConfigBuilder
extends java.lang.Object
PgxRedactionRuleMappingConfig.| Constructor and Description |
|---|
PgxRedactionRuleMappingConfigBuilder()
Constructs an empty PgxRedactionRuleMappingConfigBuilder
|
PgxRedactionRuleMappingConfigBuilder(java.util.Map<PgxRedactionRuleMappingConfig.Field,java.lang.Object> values)
Constructs a PgxRedactionRuleMappingConfigBuilder initialized with the values from the given map
|
PgxRedactionRuleMappingConfigBuilder(PgxRedactionRuleMappingConfig config)
Constructs a PgxRedactionRuleMappingConfigBuilder initialized with the values from the given config
|
PgxRedactionRuleMappingConfigBuilder(PgxRedactionRuleMappingConfigBuilder builder)
Constructs a PgxRedactionRuleMappingConfigBuilder initialized with the values from the given builder
|
| Modifier and Type | Method and Description |
|---|---|
PgxRedactionRuleMappingConfig |
build()
Builds the PgxRedactionRuleMappingConfig with a
parentPath of null. |
PgxRedactionRuleMappingConfig |
build(java.lang.String parentPath)
Builds the PgxRedactionRuleMappingConfig.
|
static PgxRedactionRuleMappingConfig |
buildPgxRedactionRuleMappingConfig(java.util.function.Consumer<PgxRedactionRuleMappingConfigBuilder> builderSetup)
Builds a
PgxRedactionRuleMappingConfig in-place |
PgxRedactionRuleMappingConfigBuilder |
clear()
Clears all values from the builder
|
java.util.Map<PgxRedactionRuleMappingConfig.Field,java.lang.Object> |
getValues() |
PgxRedactionRuleMappingConfigBuilder |
putAll(java.util.Map<PgxRedactionRuleMappingConfig.Field,java.lang.Object> values)
Puts all values from the given map into this builder.
|
PgxRedactionRuleMappingConfigBuilder |
putAll(PgxRedactionRuleMappingConfig config)
Puts all values from the given config into this builder
|
PgxRedactionRuleMappingConfigBuilder |
setRoles(java.lang.String... roles)
Roles to which the rule is applied
|
PgxRedactionRuleMappingConfigBuilder |
setRuleName(java.lang.String ruleName)
Redaction rule name
|
PgxRedactionRuleMappingConfigBuilder |
setUsers(java.lang.String... users)
Users to which the rule is applied
|
java.io.InputStream |
toInputStream() |
java.lang.String |
toString() |
public PgxRedactionRuleMappingConfigBuilder()
public PgxRedactionRuleMappingConfigBuilder(java.util.Map<PgxRedactionRuleMappingConfig.Field,java.lang.Object> values)
values - a map containing configuration valuespublic PgxRedactionRuleMappingConfigBuilder(PgxRedactionRuleMappingConfig config)
config - the configuration to take the values frompublic PgxRedactionRuleMappingConfigBuilder(PgxRedactionRuleMappingConfigBuilder builder)
builder - the builder to take the values frompublic PgxRedactionRuleMappingConfig build()
parentPath of null.build(String)public PgxRedactionRuleMappingConfig build(java.lang.String parentPath)
parentPath - if not null, resolves relative paths against this parentPathpublic static PgxRedactionRuleMappingConfig buildPgxRedactionRuleMappingConfig(java.util.function.Consumer<PgxRedactionRuleMappingConfigBuilder> builderSetup)
PgxRedactionRuleMappingConfig in-placebuilderSetup - a consumer to setup a newly created PgxRedactionRuleMappingConfigpublic PgxRedactionRuleMappingConfigBuilder clear()
public java.util.Map<PgxRedactionRuleMappingConfig.Field,java.lang.Object> getValues()
public PgxRedactionRuleMappingConfigBuilder putAll(java.util.Map<PgxRedactionRuleMappingConfig.Field,java.lang.Object> values)
values - the values to put in the builderpublic PgxRedactionRuleMappingConfigBuilder putAll(PgxRedactionRuleMappingConfig config)
config - the config to take the values frompublic PgxRedactionRuleMappingConfigBuilder setRoles(java.lang.String... roles)
roles - nullpublic PgxRedactionRuleMappingConfigBuilder setRuleName(java.lang.String ruleName)
public PgxRedactionRuleMappingConfigBuilder setUsers(java.lang.String... users)
users - nullpublic java.io.InputStream toInputStream()
InputStream representing the configpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2015 - 2020 Oracle and/or its affiliates. All Rights Reserved.