Interface ExecuteCommandResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<ExecuteCommandResponse.Builder,ExecuteCommandResponse>
,EcsResponse.Builder
,SdkBuilder<ExecuteCommandResponse.Builder,ExecuteCommandResponse>
,SdkPojo
,SdkResponse.Builder
- Enclosing class:
- ExecuteCommandResponse
public static interface ExecuteCommandResponse.Builder extends EcsResponse.Builder, SdkPojo, CopyableBuilder<ExecuteCommandResponse.Builder,ExecuteCommandResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description ExecuteCommandResponse.Builder
clusterArn(String clusterArn)
The Amazon Resource Name (ARN) of the cluster.ExecuteCommandResponse.Builder
containerArn(String containerArn)
The Amazon Resource Name (ARN) of the container.ExecuteCommandResponse.Builder
containerName(String containerName)
The name of the container.ExecuteCommandResponse.Builder
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.ExecuteCommandResponse.Builder
session(Session session)
The details of the SSM session that was created for this instance of execute-command.ExecuteCommandResponse.Builder
taskArn(String taskArn)
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, sdkFields
-
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
-
-
-
Method Detail
-
clusterArn
ExecuteCommandResponse.Builder clusterArn(String 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
ExecuteCommandResponse.Builder containerArn(String 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
ExecuteCommandResponse.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.
-
interactive
ExecuteCommandResponse.Builder interactive(Boolean 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
ExecuteCommandResponse.Builder session(Session 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
default ExecuteCommandResponse.Builder session(Consumer<Session.Builder> 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:
session(Session)
-
taskArn
ExecuteCommandResponse.Builder taskArn(String 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.
-
-