Interface SubmitContainerStateChangeRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<SubmitContainerStateChangeRequest.Builder,,SubmitContainerStateChangeRequest> EcsRequest.Builder,SdkBuilder<SubmitContainerStateChangeRequest.Builder,,SubmitContainerStateChangeRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
SubmitContainerStateChangeRequest
@Mutable
@NotThreadSafe
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
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.ecs.model.EcsRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, 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.Builderavoiding the need to create one manually viaNetworkBinding.builder().When the
Consumercompletes,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.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin 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.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-