@Stability(value=Experimental) public static final class JsonFileLogDriverProps.Builder extends Object implements software.amazon.jsii.Builder<JsonFileLogDriverProps>
JsonFileLogDriverProps| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
JsonFileLogDriverProps |
build()
Builds the configured instance.
|
JsonFileLogDriverProps.Builder |
compress(Boolean compress)
Sets the value of
JsonFileLogDriverProps.getCompress() |
JsonFileLogDriverProps.Builder |
env(List<String> env)
Sets the value of
BaseLogDriverProps.getEnv() |
JsonFileLogDriverProps.Builder |
envRegex(String envRegex)
Sets the value of
BaseLogDriverProps.getEnvRegex() |
JsonFileLogDriverProps.Builder |
labels(List<String> labels)
Sets the value of
BaseLogDriverProps.getLabels() |
JsonFileLogDriverProps.Builder |
maxFile(Number maxFile)
Sets the value of
JsonFileLogDriverProps.getMaxFile() |
JsonFileLogDriverProps.Builder |
maxSize(String maxSize)
Sets the value of
JsonFileLogDriverProps.getMaxSize() |
JsonFileLogDriverProps.Builder |
tag(String tag)
Sets the value of
BaseLogDriverProps.getTag() |
@Stability(value=Experimental) public JsonFileLogDriverProps.Builder compress(Boolean compress)
JsonFileLogDriverProps.getCompress()compress - Toggles compression for rotated logs.this@Stability(value=Experimental) public JsonFileLogDriverProps.Builder maxFile(Number maxFile)
JsonFileLogDriverProps.getMaxFile()maxFile - The maximum number of log files that can be present.
If rolling the logs creates
excess files, the oldest file is removed. Only effective when max-size is also set.
A positive integer.this@Stability(value=Experimental) public JsonFileLogDriverProps.Builder maxSize(String maxSize)
JsonFileLogDriverProps.getMaxSize()maxSize - The maximum size of the log before it is rolled.
A positive integer plus a modifier
representing the unit of measure (k, m, or g).this@Stability(value=Experimental) public JsonFileLogDriverProps.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 JsonFileLogDriverProps.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 JsonFileLogDriverProps.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 JsonFileLogDriverProps.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 JsonFileLogDriverProps build()
build in interface software.amazon.jsii.Builder<JsonFileLogDriverProps>JsonFileLogDriverPropsNullPointerException - if any required attribute was not providedCopyright © 2021. All rights reserved.