Interface SubmitContainerStateChangeRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<SubmitContainerStateChangeRequest.Builder,
,SubmitContainerStateChangeRequest> EcsRequest.Builder
,SdkBuilder<SubmitContainerStateChangeRequest.Builder,
,SubmitContainerStateChangeRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
SubmitContainerStateChangeRequest
public static interface SubmitContainerStateChangeRequest.Builder
extends EcsRequest.Builder, SdkPojo, CopyableBuilder<SubmitContainerStateChangeRequest.Builder,SubmitContainerStateChangeRequest>
-
Method Summary
Modifier and TypeMethodDescriptionThe short name or full ARN of the cluster that hosts the container.containerName
(String containerName) The name of the container.The exit code that's returned for the state change request.networkBindings
(Collection<NetworkBinding> networkBindings) The network bindings of the container.networkBindings
(Consumer<NetworkBinding.Builder>... networkBindings) The network bindings of the container.networkBindings
(NetworkBinding... networkBindings) The network bindings of the container.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.The reason for the state change request.The ID of the Docker container.The status of the state change request.The task ID or full Amazon Resource Name (ARN) of the task that hosts the container.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 ARN of the cluster that hosts the container.
- Parameters:
cluster
- The short name or full ARN of the cluster that hosts the container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
task
The task ID or full Amazon Resource Name (ARN) of the task that hosts the container.
- Parameters:
task
- The task ID or full Amazon Resource Name (ARN) of the task that hosts the container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
containerName
The name of the container.
- Parameters:
containerName
- The name of the container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
runtimeId
The ID of the Docker container.
- Parameters:
runtimeId
- The ID of the Docker container.- 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.
-
exitCode
The exit code that's returned for the state change request.
- Parameters:
exitCode
- The exit code that's returned for 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.
-
networkBindings
SubmitContainerStateChangeRequest.Builder networkBindings(Collection<NetworkBinding> networkBindings) The network bindings of the container.
- Parameters:
networkBindings
- The network bindings of the container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
networkBindings
The network bindings of the container.
- Parameters:
networkBindings
- The network bindings of the container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
networkBindings
SubmitContainerStateChangeRequest.Builder networkBindings(Consumer<NetworkBinding.Builder>... networkBindings) The network bindings of the container.
This is a convenience method that creates an instance of theNetworkBinding.Builder
avoiding the need to create one manually viaNetworkBinding.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tonetworkBindings(List<NetworkBinding>)
.- Parameters:
networkBindings
- a consumer that will call methods onNetworkBinding.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
SubmitContainerStateChangeRequest.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
SubmitContainerStateChangeRequest.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.
-