public static final class ScheduledTaskImageProps.Builder
extends java.lang.Object
ScheduledTaskImageProps
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
ScheduledTaskImageProps |
build()
Builds the configured instance.
|
ScheduledTaskImageProps.Builder |
command(java.util.List<java.lang.String> command)
Sets the value of
ScheduledTaskImageProps.getCommand() |
ScheduledTaskImageProps.Builder |
environment(java.util.Map<java.lang.String,java.lang.String> environment)
Sets the value of
ScheduledTaskImageProps.getEnvironment() |
ScheduledTaskImageProps.Builder |
image(ContainerImage image)
Sets the value of
ScheduledTaskImageProps.getImage() |
ScheduledTaskImageProps.Builder |
logDriver(LogDriver logDriver)
Sets the value of
ScheduledTaskImageProps.getLogDriver() |
ScheduledTaskImageProps.Builder |
secrets(java.util.Map<java.lang.String,? extends Secret> secrets)
Sets the value of
ScheduledTaskImageProps.getSecrets() |
public ScheduledTaskImageProps.Builder image(ContainerImage image)
ScheduledTaskImageProps.getImage()
image
- The image used to start a container. This parameter is required.
Image or taskDefinition must be specified, but not both.this
public ScheduledTaskImageProps.Builder command(java.util.List<java.lang.String> command)
ScheduledTaskImageProps.getCommand()
command
- The command that is passed to the container.
If you provide a shell command as a single string, you have to quote command-line arguments.this
public ScheduledTaskImageProps.Builder environment(java.util.Map<java.lang.String,java.lang.String> environment)
ScheduledTaskImageProps.getEnvironment()
environment
- The environment variables to pass to the container.this
public ScheduledTaskImageProps.Builder logDriver(LogDriver logDriver)
ScheduledTaskImageProps.getLogDriver()
logDriver
- The log driver to use.this
public ScheduledTaskImageProps.Builder secrets(java.util.Map<java.lang.String,? extends Secret> secrets)
ScheduledTaskImageProps.getSecrets()
secrets
- The secret to expose to the container as an environment variable.this
public ScheduledTaskImageProps build()
ScheduledTaskImageProps
java.lang.NullPointerException
- if any required attribute was not provided