@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AttemptContainerDetail 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 |
---|
AttemptContainerDetail() |
Modifier and Type | Method and Description |
---|---|
AttemptContainerDetail |
clone() |
boolean |
equals(Object obj) |
String |
getContainerInstanceArn()
The Amazon Resource Name (ARN) of the Amazon ECS container instance that hosts the job attempt.
|
Integer |
getExitCode()
The exit code for the job attempt.
|
String |
getLogStreamName()
The name of the CloudWatch Logs log stream that's associated with the container.
|
List<NetworkInterface> |
getNetworkInterfaces()
The network interfaces that are associated with the job attempt.
|
String |
getReason()
A short (255 max characters) human-readable string to provide additional details for a running or stopped
container.
|
String |
getTaskArn()
The Amazon Resource Name (ARN) of the Amazon ECS task that's associated with the job attempt.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setContainerInstanceArn(String containerInstanceArn)
The Amazon Resource Name (ARN) of the Amazon ECS container instance that hosts the job attempt.
|
void |
setExitCode(Integer exitCode)
The exit code for the job attempt.
|
void |
setLogStreamName(String logStreamName)
The name of the CloudWatch Logs log stream that's associated with the 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) human-readable string to provide additional details for a running or stopped
container.
|
void |
setTaskArn(String taskArn)
The Amazon Resource Name (ARN) of the Amazon ECS task that's associated with the job attempt.
|
String |
toString()
Returns a string representation of this object.
|
AttemptContainerDetail |
withContainerInstanceArn(String containerInstanceArn)
The Amazon Resource Name (ARN) of the Amazon ECS container instance that hosts the job attempt.
|
AttemptContainerDetail |
withExitCode(Integer exitCode)
The exit code for the job attempt.
|
AttemptContainerDetail |
withLogStreamName(String logStreamName)
The name of the CloudWatch Logs log stream that's associated with the container.
|
AttemptContainerDetail |
withNetworkInterfaces(Collection<NetworkInterface> networkInterfaces)
The network interfaces that are associated with the job attempt.
|
AttemptContainerDetail |
withNetworkInterfaces(NetworkInterface... networkInterfaces)
The network interfaces that are associated with the job attempt.
|
AttemptContainerDetail |
withReason(String reason)
A short (255 max characters) human-readable string to provide additional details for a running or stopped
container.
|
AttemptContainerDetail |
withTaskArn(String taskArn)
The Amazon Resource Name (ARN) of the Amazon ECS task that's associated with the job attempt.
|
public void setContainerInstanceArn(String containerInstanceArn)
The Amazon Resource Name (ARN) of the Amazon ECS container instance that hosts the job attempt.
containerInstanceArn
- The Amazon Resource Name (ARN) of the Amazon ECS container instance that hosts the job attempt.public String getContainerInstanceArn()
The Amazon Resource Name (ARN) of the Amazon ECS container instance that hosts the job attempt.
public AttemptContainerDetail withContainerInstanceArn(String containerInstanceArn)
The Amazon Resource Name (ARN) of the Amazon ECS container instance that hosts the job attempt.
containerInstanceArn
- The Amazon Resource Name (ARN) of the Amazon ECS container instance that hosts the job attempt.public void setTaskArn(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.
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.public String getTaskArn()
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.
STARTING
status.public AttemptContainerDetail withTaskArn(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.
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.public void setExitCode(Integer exitCode)
The exit code for the job attempt. A non-zero exit code is considered failed.
exitCode
- The exit code for the job attempt. A non-zero exit code is considered failed.public Integer getExitCode()
The exit code for the job attempt. A non-zero exit code is considered failed.
public AttemptContainerDetail withExitCode(Integer exitCode)
The exit code for the job attempt. A non-zero exit code is considered failed.
exitCode
- The exit code for the job attempt. A non-zero exit code is considered failed.public void setReason(String reason)
A short (255 max characters) human-readable string to provide additional details for a running or stopped container.
reason
- A short (255 max characters) human-readable string to provide additional details for a running or stopped
container.public String getReason()
A short (255 max characters) human-readable string to provide additional details for a running or stopped container.
public AttemptContainerDetail withReason(String reason)
A short (255 max characters) human-readable string to provide additional details for a running or stopped container.
reason
- A short (255 max characters) human-readable string to provide additional details for a running or stopped
container.public void setLogStreamName(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 the
RUNNING
status.
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 the
RUNNING
status.public String getLogStreamName()
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 the
RUNNING
status.
/aws/batch/job
. Each container attempt receives a log stream name when they reach
the RUNNING
status.public AttemptContainerDetail withLogStreamName(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 the
RUNNING
status.
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 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 AttemptContainerDetail 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 AttemptContainerDetail 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 Object
Object.toString()
public AttemptContainerDetail clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.