@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AttemptTaskContainerDetails extends Object implements Serializable, Cloneable, StructuredPojo
An object that represents the details of a container that's part of a job attempt.
| Constructor and Description |
|---|
AttemptTaskContainerDetails() |
| Modifier and Type | Method and Description |
|---|---|
AttemptTaskContainerDetails |
clone() |
boolean |
equals(Object obj) |
Integer |
getExitCode()
The exit code for the container’s attempt.
|
String |
getLogStreamName()
The name of the Amazon CloudWatch Logs log stream that's associated with the container.
|
String |
getName()
The name of a container.
|
List<NetworkInterface> |
getNetworkInterfaces()
The network interfaces that are associated with the job attempt.
|
String |
getReason()
A short (255 max characters) string that's easy to understand and provides additional details for a running or
stopped container.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setExitCode(Integer exitCode)
The exit code for the container’s attempt.
|
void |
setLogStreamName(String logStreamName)
The name of the Amazon CloudWatch Logs log stream that's associated with the container.
|
void |
setName(String name)
The name of a container.
|
void |
setNetworkInterfaces(Collection<NetworkInterface> networkInterfaces)
The network interfaces that are associated with the job attempt.
|
void |
setReason(String reason)
A short (255 max characters) string that's easy to understand and provides additional details for a running or
stopped container.
|
String |
toString()
Returns a string representation of this object.
|
AttemptTaskContainerDetails |
withExitCode(Integer exitCode)
The exit code for the container’s attempt.
|
AttemptTaskContainerDetails |
withLogStreamName(String logStreamName)
The name of the Amazon CloudWatch Logs log stream that's associated with the container.
|
AttemptTaskContainerDetails |
withName(String name)
The name of a container.
|
AttemptTaskContainerDetails |
withNetworkInterfaces(Collection<NetworkInterface> networkInterfaces)
The network interfaces that are associated with the job attempt.
|
AttemptTaskContainerDetails |
withNetworkInterfaces(NetworkInterface... networkInterfaces)
The network interfaces that are associated with the job attempt.
|
AttemptTaskContainerDetails |
withReason(String reason)
A short (255 max characters) string that's easy to understand and provides additional details for a running or
stopped container.
|
public void setExitCode(Integer exitCode)
The exit code for the container’s attempt. A non-zero exit code is considered failed.
exitCode - The exit code for the container’s attempt. A non-zero exit code is considered failed.public Integer getExitCode()
The exit code for the container’s attempt. A non-zero exit code is considered failed.
public AttemptTaskContainerDetails withExitCode(Integer exitCode)
The exit code for the container’s attempt. A non-zero exit code is considered failed.
exitCode - The exit code for the container’s attempt. A non-zero exit code is considered failed.public void setName(String name)
The name of a container.
name - The name of a container.public String getName()
The name of a container.
public AttemptTaskContainerDetails withName(String name)
The name of a container.
name - The name of a container.public void setReason(String reason)
A short (255 max characters) string that's easy to understand and provides additional details for a running or stopped container.
reason - A short (255 max characters) string that's easy to understand and provides additional details for a
running or stopped container.public String getReason()
A short (255 max characters) string that's easy to understand and provides additional details for a running or stopped container.
public AttemptTaskContainerDetails withReason(String reason)
A short (255 max characters) string that's easy to understand and provides additional details for a running or stopped container.
reason - A short (255 max characters) string that's easy to understand and provides additional details for a
running or stopped container.public void setLogStreamName(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 the
RUNNING status.
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 the RUNNING status.public String getLogStreamName()
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 the
RUNNING status.
/aws/batch/job. Each container attempt receives a log stream name when they
reach the RUNNING status.public AttemptTaskContainerDetails withLogStreamName(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 the
RUNNING status.
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 the RUNNING status.public List<NetworkInterface> getNetworkInterfaces()
The network interfaces that are associated with the job attempt.
public void setNetworkInterfaces(Collection<NetworkInterface> networkInterfaces)
The network interfaces that are associated with the job attempt.
networkInterfaces - The network interfaces that are associated with the job attempt.public AttemptTaskContainerDetails withNetworkInterfaces(NetworkInterface... networkInterfaces)
The network interfaces that are associated with the job attempt.
NOTE: This method appends the values to the existing list (if any). Use
setNetworkInterfaces(java.util.Collection) or withNetworkInterfaces(java.util.Collection) if
you want to override the existing values.
networkInterfaces - The network interfaces that are associated with the job attempt.public AttemptTaskContainerDetails withNetworkInterfaces(Collection<NetworkInterface> networkInterfaces)
The network interfaces that are associated with the job attempt.
networkInterfaces - The network interfaces that are associated with the job attempt.public String toString()
toString in class ObjectObject.toString()public AttemptTaskContainerDetails clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.