Class ScheduledEc2TaskDefinitionOptions.Builder
java.lang.Object
software.amazon.awscdk.services.ecs.patterns.ScheduledEc2TaskDefinitionOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ScheduledEc2TaskDefinitionOptions>
- Enclosing interface:
ScheduledEc2TaskDefinitionOptions
@Stability(Stable)
public static final class ScheduledEc2TaskDefinitionOptions.Builder
extends Object
implements software.amazon.jsii.Builder<ScheduledEc2TaskDefinitionOptions>
A builder for
ScheduledEc2TaskDefinitionOptions
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.taskDefinition
(Ec2TaskDefinition taskDefinition) Sets the value ofScheduledEc2TaskDefinitionOptions.getTaskDefinition()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
taskDefinition
@Stability(Stable) public ScheduledEc2TaskDefinitionOptions.Builder taskDefinition(Ec2TaskDefinition taskDefinition) Sets the value ofScheduledEc2TaskDefinitionOptions.getTaskDefinition()
- Parameters:
taskDefinition
- The task definition to use for tasks in the service. One of image or taskDefinition must be specified. This parameter is required. [disable-awslint:ref-via-interface]- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<ScheduledEc2TaskDefinitionOptions>
- Returns:
- a new instance of
ScheduledEc2TaskDefinitionOptions
- Throws:
NullPointerException
- if any required attribute was not provided
-