Interface SubmitTaskStateChangeRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<SubmitTaskStateChangeRequest.Builder,
,SubmitTaskStateChangeRequest> EcsRequest.Builder
,SdkBuilder<SubmitTaskStateChangeRequest.Builder,
,SubmitTaskStateChangeRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
SubmitTaskStateChangeRequest
-
Method Summary
Modifier and TypeMethodDescriptionattachments
(Collection<AttachmentStateChange> attachments) Any attachments associated with the state change request.attachments
(Consumer<AttachmentStateChange.Builder>... attachments) Any attachments associated with the state change request.attachments
(AttachmentStateChange... attachments) Any attachments associated with the state change request.The short name or full Amazon Resource Name (ARN) of the cluster that hosts the task.containers
(Collection<ContainerStateChange> containers) Any containers that's associated with the state change request.containers
(Consumer<ContainerStateChange.Builder>... containers) Any containers that's associated with the state change request.containers
(ContainerStateChange... containers) Any containers that's associated with the state change request.executionStoppedAt
(Instant executionStoppedAt) The Unix timestamp for the time when the task execution stopped.managedAgents
(Collection<ManagedAgentStateChange> managedAgents) The details for the managed agent that's associated with the task.managedAgents
(Consumer<ManagedAgentStateChange.Builder>... managedAgents) The details for the managed agent that's associated with the task.managedAgents
(ManagedAgentStateChange... managedAgents) The details for the managed agent that's associated with the task.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.pullStartedAt
(Instant pullStartedAt) The Unix timestamp for the time when the container image pull started.pullStoppedAt
(Instant pullStoppedAt) The Unix timestamp for the time when the container image pull completed.The reason for the state change request.The status of the state change request.The task ID or full ARN of the task in the state change request.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.ecs.model.EcsRequest.Builder
build
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
cluster
The short name or full Amazon Resource Name (ARN) of the cluster that hosts the task.
- Parameters:
cluster
- The short name or full Amazon Resource Name (ARN) of the cluster that hosts the task.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
task
The task ID or full ARN of the task in the state change request.
- Parameters:
task
- The task ID or full ARN of the task in the state change request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
The status of the state change request.
- Parameters:
status
- The status of the state change request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
reason
The reason for the state change request.
- Parameters:
reason
- The reason for the state change request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
containers
Any containers that's associated with the state change request.
- Parameters:
containers
- Any containers that's associated with the state change request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
containers
Any containers that's associated with the state change request.
- Parameters:
containers
- Any containers that's associated with the state change request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
containers
SubmitTaskStateChangeRequest.Builder containers(Consumer<ContainerStateChange.Builder>... containers) Any containers that's associated with the state change request.
This is a convenience method that creates an instance of theContainerStateChange.Builder
avoiding the need to create one manually viaContainerStateChange.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocontainers(List<ContainerStateChange>)
.- Parameters:
containers
- a consumer that will call methods onContainerStateChange.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
attachments
Any attachments associated with the state change request.
- Parameters:
attachments
- Any attachments associated with the state change request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
attachments
Any attachments associated with the state change request.
- Parameters:
attachments
- Any attachments associated with the state change request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
attachments
SubmitTaskStateChangeRequest.Builder attachments(Consumer<AttachmentStateChange.Builder>... attachments) Any attachments associated with the state change request.
This is a convenience method that creates an instance of theAttachmentStateChange.Builder
avoiding the need to create one manually viaAttachmentStateChange.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toattachments(List<AttachmentStateChange>)
.- Parameters:
attachments
- a consumer that will call methods onAttachmentStateChange.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
managedAgents
SubmitTaskStateChangeRequest.Builder managedAgents(Collection<ManagedAgentStateChange> managedAgents) The details for the managed agent that's associated with the task.
- Parameters:
managedAgents
- The details for the managed agent that's associated with the task.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
managedAgents
The details for the managed agent that's associated with the task.
- Parameters:
managedAgents
- The details for the managed agent that's associated with the task.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
managedAgents
SubmitTaskStateChangeRequest.Builder managedAgents(Consumer<ManagedAgentStateChange.Builder>... managedAgents) The details for the managed agent that's associated with the task.
This is a convenience method that creates an instance of theManagedAgentStateChange.Builder
avoiding the need to create one manually viaManagedAgentStateChange.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tomanagedAgents(List<ManagedAgentStateChange>)
.- Parameters:
managedAgents
- a consumer that will call methods onManagedAgentStateChange.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
pullStartedAt
The Unix timestamp for the time when the container image pull started.
- Parameters:
pullStartedAt
- The Unix timestamp for the time when the container image pull started.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
pullStoppedAt
The Unix timestamp for the time when the container image pull completed.
- Parameters:
pullStoppedAt
- The Unix timestamp for the time when the container image pull completed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
executionStoppedAt
The Unix timestamp for the time when the task execution stopped.
- Parameters:
executionStoppedAt
- The Unix timestamp for the time when the task execution stopped.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
SubmitTaskStateChangeRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
SubmitTaskStateChangeRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-