@Stability(value=Experimental) public static final class FireLensLogDriverProps.Builder extends Object implements software.amazon.jsii.Builder<FireLensLogDriverProps>
FireLensLogDriverProps
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
FireLensLogDriverProps |
build()
Builds the configured instance.
|
FireLensLogDriverProps.Builder |
env(List<String> env)
Sets the value of
BaseLogDriverProps.getEnv() |
FireLensLogDriverProps.Builder |
envRegex(String envRegex)
Sets the value of
BaseLogDriverProps.getEnvRegex() |
FireLensLogDriverProps.Builder |
labels(List<String> labels)
Sets the value of
BaseLogDriverProps.getLabels() |
FireLensLogDriverProps.Builder |
options(Map<String,String> options)
Sets the value of
FireLensLogDriverProps.getOptions() |
FireLensLogDriverProps.Builder |
tag(String tag)
Sets the value of
BaseLogDriverProps.getTag() |
@Stability(value=Experimental) public FireLensLogDriverProps.Builder options(Map<String,String> options)
FireLensLogDriverProps.getOptions()
options
- The configuration options to send to the log driver.this
@Stability(value=Experimental) public FireLensLogDriverProps.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 FireLensLogDriverProps.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 FireLensLogDriverProps.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 FireLensLogDriverProps.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 FireLensLogDriverProps build()
build
in interface software.amazon.jsii.Builder<FireLensLogDriverProps>
FireLensLogDriverProps
NullPointerException
- if any required attribute was not providedCopyright © 2021. All rights reserved.