Interface AttemptContainerDetail.Builder
-
- All Superinterfaces:
Buildable
,CopyableBuilder<AttemptContainerDetail.Builder,AttemptContainerDetail>
,SdkBuilder<AttemptContainerDetail.Builder,AttemptContainerDetail>
,SdkPojo
- Enclosing class:
- AttemptContainerDetail
public static interface AttemptContainerDetail.Builder extends SdkPojo, CopyableBuilder<AttemptContainerDetail.Builder,AttemptContainerDetail>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AttemptContainerDetail.Builder
containerInstanceArn(String containerInstanceArn)
The Amazon Resource Name (ARN) of the Amazon ECS container instance that hosts the job attempt.AttemptContainerDetail.Builder
exitCode(Integer exitCode)
The exit code for the job attempt.AttemptContainerDetail.Builder
logStreamName(String logStreamName)
The name of the CloudWatch Logs log stream that's associated with the container.AttemptContainerDetail.Builder
networkInterfaces(Collection<NetworkInterface> networkInterfaces)
The network interfaces that are associated with the job attempt.AttemptContainerDetail.Builder
networkInterfaces(Consumer<NetworkInterface.Builder>... networkInterfaces)
The network interfaces that are associated with the job attempt.AttemptContainerDetail.Builder
networkInterfaces(NetworkInterface... networkInterfaces)
The network interfaces that are associated with the job attempt.AttemptContainerDetail.Builder
reason(String reason)
A short (255 max characters) human-readable string to provide additional details for a running or stopped container.AttemptContainerDetail.Builder
taskArn(String taskArn)
The Amazon Resource Name (ARN) of the Amazon ECS task that's associated with the job attempt.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
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
-
containerInstanceArn
AttemptContainerDetail.Builder containerInstanceArn(String containerInstanceArn)
The Amazon Resource Name (ARN) of the Amazon ECS container instance that hosts the job attempt.
- Parameters:
containerInstanceArn
- The Amazon Resource Name (ARN) of the Amazon ECS container instance that hosts the job attempt.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
taskArn
AttemptContainerDetail.Builder taskArn(String taskArn)
The Amazon Resource Name (ARN) of the Amazon ECS task that's associated with the job attempt. Each container attempt receives a task ARN when they reach the
STARTING
status.- Parameters:
taskArn
- The Amazon Resource Name (ARN) of the Amazon ECS task that's associated with the job attempt. Each container attempt receives a task ARN when they reach theSTARTING
status.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
exitCode
AttemptContainerDetail.Builder exitCode(Integer exitCode)
The exit code for the job attempt. A non-zero exit code is considered failed.
- Parameters:
exitCode
- The exit code for the job attempt. A non-zero exit code is considered failed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
reason
AttemptContainerDetail.Builder reason(String reason)
A short (255 max characters) human-readable string to provide additional details for a running or stopped container.
- Parameters:
reason
- A short (255 max characters) human-readable string to provide additional details for a running or stopped container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
logStreamName
AttemptContainerDetail.Builder logStreamName(String logStreamName)
The name of the CloudWatch Logs log stream that's associated with the container. The log group for Batch jobs is
/aws/batch/job
. Each container attempt receives a log stream name when they reach theRUNNING
status.- Parameters:
logStreamName
- The name of the CloudWatch Logs log stream that's associated with the container. The log group for Batch jobs is/aws/batch/job
. Each container attempt receives a log stream name when they reach theRUNNING
status.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
networkInterfaces
AttemptContainerDetail.Builder networkInterfaces(Collection<NetworkInterface> networkInterfaces)
The network interfaces that are associated with the job attempt.
- Parameters:
networkInterfaces
- The network interfaces that are associated with the job attempt.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
networkInterfaces
AttemptContainerDetail.Builder networkInterfaces(NetworkInterface... networkInterfaces)
The network interfaces that are associated with the job attempt.
- Parameters:
networkInterfaces
- The network interfaces that are associated with the job attempt.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
networkInterfaces
AttemptContainerDetail.Builder networkInterfaces(Consumer<NetworkInterface.Builder>... networkInterfaces)
The network interfaces that are associated with the job attempt.
This is a convenience method that creates an instance of theNetworkInterface.Builder
avoiding the need to create one manually viaNetworkInterface.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed to#networkInterfaces(List
.) - Parameters:
networkInterfaces
- a consumer that will call methods onNetworkInterface.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#networkInterfaces(java.util.Collection
)
-
-