@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AttemptContainerDetail extends Object implements Serializable, Cloneable, StructuredPojo
An object representing the details of a container that is 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 associated with the container.
|
String |
getReason()
A short (255 max characters) human-readable string to provide additional details about a running or stopped
container.
|
String |
getTaskArn()
The Amazon Resource Name (ARN) of the Amazon ECS task that is 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 associated with the container.
|
void |
setReason(String reason)
A short (255 max characters) human-readable string to provide additional details about a running or stopped
container.
|
void |
setTaskArn(String taskArn)
The Amazon Resource Name (ARN) of the Amazon ECS task that is associated with the job attempt.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
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 associated with the container.
|
AttemptContainerDetail |
withReason(String reason)
A short (255 max characters) human-readable string to provide additional details about a running or stopped
container.
|
AttemptContainerDetail |
withTaskArn(String taskArn)
The Amazon Resource Name (ARN) of the Amazon ECS task that is 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 is 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 is 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 is 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 is 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 is 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 a failure.
exitCode
- The exit code for the job attempt. A non-zero exit code is considered a failure.public Integer getExitCode()
The exit code for the job attempt. A non-zero exit code is considered a failure.
public AttemptContainerDetail withExitCode(Integer exitCode)
The exit code for the job attempt. A non-zero exit code is considered a failure.
exitCode
- The exit code for the job attempt. A non-zero exit code is considered a failure.public void setReason(String reason)
A short (255 max characters) human-readable string to provide additional details about a running or stopped container.
reason
- A short (255 max characters) human-readable string to provide additional details about a running or
stopped container.public String getReason()
A short (255 max characters) human-readable string to provide additional details about a running or stopped container.
public AttemptContainerDetail withReason(String reason)
A short (255 max characters) human-readable string to provide additional details about a running or stopped container.
reason
- A short (255 max characters) human-readable string to provide additional details about a running or
stopped container.public void setLogStreamName(String logStreamName)
The name of the CloudWatch Logs log stream associated with the container. The log group for AWS 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 associated with the container. The log group for AWS 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 associated with the container. The log group for AWS 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 associated with the container. The log group for AWS 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 associated with the container. The log group for AWS Batch jobs
is /aws/batch/job
. Each container attempt receives a log stream name when they reach the
RUNNING
status.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.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.