@Stability(value=Experimental) public static final class BaseLogDriverProps.Builder extends Object implements software.amazon.jsii.Builder<BaseLogDriverProps>
BaseLogDriverProps| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
BaseLogDriverProps |
build()
Builds the configured instance.
|
BaseLogDriverProps.Builder |
env(List<String> env)
Sets the value of
BaseLogDriverProps.getEnv() |
BaseLogDriverProps.Builder |
envRegex(String envRegex)
Sets the value of
BaseLogDriverProps.getEnvRegex() |
BaseLogDriverProps.Builder |
labels(List<String> labels)
Sets the value of
BaseLogDriverProps.getLabels() |
BaseLogDriverProps.Builder |
tag(String tag)
Sets the value of
BaseLogDriverProps.getTag() |
@Stability(value=Experimental) public BaseLogDriverProps.Builder env(List<String> env)
BaseLogDriverProps.getEnv()env - The env option takes an array of keys.
If there is collision between
label and env keys, the value of the env takes precedence. Adds additional fields
to the extra attributes of a logging message.this@Stability(value=Experimental) public BaseLogDriverProps.Builder envRegex(String envRegex)
BaseLogDriverProps.getEnvRegex()envRegex - The env-regex option is similar to and compatible with env.
Its value is a regular
expression to match logging-related environment variables. It is used for advanced
log tag options.this@Stability(value=Experimental) public BaseLogDriverProps.Builder labels(List<String> labels)
BaseLogDriverProps.getLabels()labels - The labels option takes an array of keys.
If there is collision
between label and env keys, the value of the env takes precedence. Adds additional
fields to the extra attributes of a logging message.this@Stability(value=Experimental) public BaseLogDriverProps.Builder tag(String tag)
BaseLogDriverProps.getTag()tag - By default, Docker uses the first 12 characters of the container ID to tag log messages.
Refer to the log tag option documentation for customizing the
log tag format.this@Stability(value=Experimental) public BaseLogDriverProps build()
build in interface software.amazon.jsii.Builder<BaseLogDriverProps>BaseLogDriverPropsNullPointerException - if any required attribute was not providedCopyright © 2021. All rights reserved.