Interface ExecuteCommandResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<ExecuteCommandResponse.Builder,
,ExecuteCommandResponse> EcsResponse.Builder
,SdkBuilder<ExecuteCommandResponse.Builder,
,ExecuteCommandResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
ExecuteCommandResponse
@Mutable
@NotThreadSafe
public static interface ExecuteCommandResponse.Builder
extends EcsResponse.Builder, SdkPojo, CopyableBuilder<ExecuteCommandResponse.Builder,ExecuteCommandResponse>
-
Method Summary
Modifier and TypeMethodDescriptionclusterArn
(String clusterArn) The Amazon Resource Name (ARN) of the cluster.containerArn
(String containerArn) The Amazon Resource Name (ARN) of the container.containerName
(String containerName) The name of the container.interactive
(Boolean interactive) Determines whether the execute command session is running in interactive mode.default ExecuteCommandResponse.Builder
session
(Consumer<Session.Builder> session) The details of the SSM session that was created for this instance of execute-command.The details of the SSM session that was created for this instance of execute-command.The Amazon Resource Name (ARN) of the task.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.ecs.model.EcsResponse.Builder
build, responseMetadata, responseMetadata
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
clusterArn
The Amazon Resource Name (ARN) of the cluster.
- Parameters:
clusterArn
- The Amazon Resource Name (ARN) of the cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
containerArn
The Amazon Resource Name (ARN) of the container.
- Parameters:
containerArn
- The Amazon Resource Name (ARN) of 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.
-
interactive
Determines whether the execute command session is running in interactive mode. Amazon ECS only supports initiating interactive sessions, so you must specify
true
for this value.- Parameters:
interactive
- Determines whether the execute command session is running in interactive mode. Amazon ECS only supports initiating interactive sessions, so you must specifytrue
for this value.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
session
The details of the SSM session that was created for this instance of execute-command.
- Parameters:
session
- The details of the SSM session that was created for this instance of execute-command.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
session
The details of the SSM session that was created for this instance of execute-command.
This is a convenience method that creates an instance of theSession.Builder
avoiding the need to create one manually viaSession.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosession(Session)
.- Parameters:
session
- a consumer that will call methods onSession.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
taskArn
The Amazon Resource Name (ARN) of the task.
- Parameters:
taskArn
- The Amazon Resource Name (ARN) of the task.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-