Class ScheduledTaskImageProps.Builder
java.lang.Object
software.amazon.awscdk.services.ecs.patterns.ScheduledTaskImageProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ScheduledTaskImageProps>
- Enclosing interface:
- ScheduledTaskImageProps
@Stability(Stable)
public static final class ScheduledTaskImageProps.Builder
extends Object
implements software.amazon.jsii.Builder<ScheduledTaskImageProps>
A builder for
ScheduledTaskImageProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofScheduledTaskImageProps.getCommand()environment(Map<String, String> environment) Sets the value ofScheduledTaskImageProps.getEnvironment()image(ContainerImage image) Sets the value ofScheduledTaskImageProps.getImage()Sets the value ofScheduledTaskImageProps.getLogDriver()Sets the value ofScheduledTaskImageProps.getSecrets()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
image
Sets the value ofScheduledTaskImageProps.getImage()- Parameters:
image- The image used to start a container. This parameter is required. Image or taskDefinition must be specified, but not both.- Returns:
this
-
command
Sets the value ofScheduledTaskImageProps.getCommand()- Parameters:
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.- Returns:
this
-
environment
@Stability(Stable) public ScheduledTaskImageProps.Builder environment(Map<String, String> environment) Sets the value ofScheduledTaskImageProps.getEnvironment()- Parameters:
environment- The environment variables to pass to the container.- Returns:
this
-
logDriver
Sets the value ofScheduledTaskImageProps.getLogDriver()- Parameters:
logDriver- The log driver to use.- Returns:
this
-
secrets
@Stability(Stable) public ScheduledTaskImageProps.Builder secrets(Map<String, ? extends Secret> secrets) Sets the value ofScheduledTaskImageProps.getSecrets()- Parameters:
secrets- The secret to expose to the container as an environment variable.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ScheduledTaskImageProps>- Returns:
- a new instance of
ScheduledTaskImageProps - Throws:
NullPointerException- if any required attribute was not provided
-