Interface AttemptTaskContainerDetails.Builder
-
- All Superinterfaces:
Buildable
,CopyableBuilder<AttemptTaskContainerDetails.Builder,AttemptTaskContainerDetails>
,SdkBuilder<AttemptTaskContainerDetails.Builder,AttemptTaskContainerDetails>
,SdkPojo
- Enclosing class:
- AttemptTaskContainerDetails
public static interface AttemptTaskContainerDetails.Builder extends SdkPojo, CopyableBuilder<AttemptTaskContainerDetails.Builder,AttemptTaskContainerDetails>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AttemptTaskContainerDetails.Builder
exitCode(Integer exitCode)
The exit code for the container’s attempt.AttemptTaskContainerDetails.Builder
logStreamName(String logStreamName)
The name of the Amazon CloudWatch Logs log stream that's associated with the container.AttemptTaskContainerDetails.Builder
name(String name)
The name of a container.AttemptTaskContainerDetails.Builder
networkInterfaces(Collection<NetworkInterface> networkInterfaces)
The network interfaces that are associated with the job attempt.AttemptTaskContainerDetails.Builder
networkInterfaces(Consumer<NetworkInterface.Builder>... networkInterfaces)
The network interfaces that are associated with the job attempt.AttemptTaskContainerDetails.Builder
networkInterfaces(NetworkInterface... networkInterfaces)
The network interfaces that are associated with the job attempt.AttemptTaskContainerDetails.Builder
reason(String reason)
A short (255 max characters) string that's easy to understand and provides additional details for a running or stopped container.-
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, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
exitCode
AttemptTaskContainerDetails.Builder exitCode(Integer exitCode)
The exit code for the container’s attempt. A non-zero exit code is considered failed.
- Parameters:
exitCode
- The exit code for the container’s attempt. A non-zero exit code is considered failed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
AttemptTaskContainerDetails.Builder name(String name)
The name of a container.
- Parameters:
name
- The name of a container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
reason
AttemptTaskContainerDetails.Builder reason(String reason)
A short (255 max characters) string that's easy to understand and provides additional details for a running or stopped container.
- Parameters:
reason
- A short (255 max characters) string that's easy to understand and provides additional details for a running or stopped container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
logStreamName
AttemptTaskContainerDetails.Builder logStreamName(String logStreamName)
The name of the Amazon 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 Amazon 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
AttemptTaskContainerDetails.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
AttemptTaskContainerDetails.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
AttemptTaskContainerDetails.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
)
-
-