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