public static final class LogConfiguration.Builder
extends java.lang.Object
LogConfiguration
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
LogConfiguration |
build()
Builds the configured instance.
|
LogConfiguration.Builder |
logDriver(LogDriver logDriver)
Sets the value of
LogConfiguration.getLogDriver() |
LogConfiguration.Builder |
options(java.lang.Object options)
Sets the value of
LogConfiguration.getOptions() |
LogConfiguration.Builder |
secretOptions(java.util.List<? extends ExposedSecret> secretOptions)
Sets the value of
LogConfiguration.getSecretOptions() |
public LogConfiguration.Builder logDriver(LogDriver logDriver)
LogConfiguration.getLogDriver()
logDriver
- The log driver to use for the container. This parameter is required.this
public LogConfiguration.Builder options(java.lang.Object options)
LogConfiguration.getOptions()
options
- The configuration options to send to the log driver.this
public LogConfiguration.Builder secretOptions(java.util.List<? extends ExposedSecret> secretOptions)
LogConfiguration.getSecretOptions()
secretOptions
- The secrets to pass to the log configuration as options.
For more information, see https://docs.aws.amazon.com/batch/latest/userguide/specifying-sensitive-data-secrets.html#secrets-logconfigthis
public LogConfiguration build()
LogConfiguration
java.lang.NullPointerException
- if any required attribute was not provided