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
-
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 Detail
-
cluster
SubmitContainerStateChangeRequest.Builder cluster(String 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
SubmitContainerStateChangeRequest.Builder task(String 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
SubmitContainerStateChangeRequest.Builder containerName(String 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
SubmitContainerStateChangeRequest.Builder runtimeId(String 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
SubmitContainerStateChangeRequest.Builder status(String 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
SubmitContainerStateChangeRequest.Builder exitCode(Integer 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
SubmitContainerStateChangeRequest.Builder reason(String 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
SubmitContainerStateChangeRequest.Builder networkBindings(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
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 to#networkBindings(List
.) - 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:
#networkBindings(java.util.Collection
)
-
overrideConfiguration
SubmitContainerStateChangeRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
-
overrideConfiguration
SubmitContainerStateChangeRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
-
-