@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AttemptDetail extends Object implements Serializable, Cloneable, StructuredPojo
An object that represents a job attempt.
Constructor and Description |
---|
AttemptDetail() |
Modifier and Type | Method and Description |
---|---|
AttemptDetail |
clone() |
boolean |
equals(Object obj) |
AttemptContainerDetail |
getContainer()
The details for the container in this job attempt.
|
Long |
getStartedAt()
The Unix timestamp (in milliseconds) for when the attempt was started (when the attempt transitioned from the
STARTING state to the RUNNING state). |
String |
getStatusReason()
A short, human-readable string to provide additional details for the current status of the job attempt.
|
Long |
getStoppedAt()
The Unix timestamp (in milliseconds) for when the attempt was stopped (when the attempt transitioned from the
RUNNING state to a terminal state, such as SUCCEEDED or FAILED ). |
List<AttemptEcsTaskDetails> |
getTaskProperties()
The properties for a task definition that describes the container and volume definitions of an Amazon ECS task.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setContainer(AttemptContainerDetail container)
The details for the container in this job attempt.
|
void |
setStartedAt(Long startedAt)
The Unix timestamp (in milliseconds) for when the attempt was started (when the attempt transitioned from the
STARTING state to the RUNNING state). |
void |
setStatusReason(String statusReason)
A short, human-readable string to provide additional details for the current status of the job attempt.
|
void |
setStoppedAt(Long stoppedAt)
The Unix timestamp (in milliseconds) for when the attempt was stopped (when the attempt transitioned from the
RUNNING state to a terminal state, such as SUCCEEDED or FAILED ). |
void |
setTaskProperties(Collection<AttemptEcsTaskDetails> taskProperties)
The properties for a task definition that describes the container and volume definitions of an Amazon ECS task.
|
String |
toString()
Returns a string representation of this object.
|
AttemptDetail |
withContainer(AttemptContainerDetail container)
The details for the container in this job attempt.
|
AttemptDetail |
withStartedAt(Long startedAt)
The Unix timestamp (in milliseconds) for when the attempt was started (when the attempt transitioned from the
STARTING state to the RUNNING state). |
AttemptDetail |
withStatusReason(String statusReason)
A short, human-readable string to provide additional details for the current status of the job attempt.
|
AttemptDetail |
withStoppedAt(Long stoppedAt)
The Unix timestamp (in milliseconds) for when the attempt was stopped (when the attempt transitioned from the
RUNNING state to a terminal state, such as SUCCEEDED or FAILED ). |
AttemptDetail |
withTaskProperties(AttemptEcsTaskDetails... taskProperties)
The properties for a task definition that describes the container and volume definitions of an Amazon ECS task.
|
AttemptDetail |
withTaskProperties(Collection<AttemptEcsTaskDetails> taskProperties)
The properties for a task definition that describes the container and volume definitions of an Amazon ECS task.
|
public void setContainer(AttemptContainerDetail container)
The details for the container in this job attempt.
container
- The details for the container in this job attempt.public AttemptContainerDetail getContainer()
The details for the container in this job attempt.
public AttemptDetail withContainer(AttemptContainerDetail container)
The details for the container in this job attempt.
container
- The details for the container in this job attempt.public void setStartedAt(Long startedAt)
The Unix timestamp (in milliseconds) for when the attempt was started (when the attempt transitioned from the
STARTING
state to the RUNNING
state).
startedAt
- The Unix timestamp (in milliseconds) for when the attempt was started (when the attempt transitioned from
the STARTING
state to the RUNNING
state).public Long getStartedAt()
The Unix timestamp (in milliseconds) for when the attempt was started (when the attempt transitioned from the
STARTING
state to the RUNNING
state).
STARTING
state to the RUNNING
state).public AttemptDetail withStartedAt(Long startedAt)
The Unix timestamp (in milliseconds) for when the attempt was started (when the attempt transitioned from the
STARTING
state to the RUNNING
state).
startedAt
- The Unix timestamp (in milliseconds) for when the attempt was started (when the attempt transitioned from
the STARTING
state to the RUNNING
state).public void setStoppedAt(Long stoppedAt)
The Unix timestamp (in milliseconds) for when the attempt was stopped (when the attempt transitioned from the
RUNNING
state to a terminal state, such as SUCCEEDED
or FAILED
).
stoppedAt
- The Unix timestamp (in milliseconds) for when the attempt was stopped (when the attempt transitioned from
the RUNNING
state to a terminal state, such as SUCCEEDED
or FAILED
).public Long getStoppedAt()
The Unix timestamp (in milliseconds) for when the attempt was stopped (when the attempt transitioned from the
RUNNING
state to a terminal state, such as SUCCEEDED
or FAILED
).
RUNNING
state to a terminal state, such as SUCCEEDED
or FAILED
).public AttemptDetail withStoppedAt(Long stoppedAt)
The Unix timestamp (in milliseconds) for when the attempt was stopped (when the attempt transitioned from the
RUNNING
state to a terminal state, such as SUCCEEDED
or FAILED
).
stoppedAt
- The Unix timestamp (in milliseconds) for when the attempt was stopped (when the attempt transitioned from
the RUNNING
state to a terminal state, such as SUCCEEDED
or FAILED
).public void setStatusReason(String statusReason)
A short, human-readable string to provide additional details for the current status of the job attempt.
statusReason
- A short, human-readable string to provide additional details for the current status of the job attempt.public String getStatusReason()
A short, human-readable string to provide additional details for the current status of the job attempt.
public AttemptDetail withStatusReason(String statusReason)
A short, human-readable string to provide additional details for the current status of the job attempt.
statusReason
- A short, human-readable string to provide additional details for the current status of the job attempt.public List<AttemptEcsTaskDetails> getTaskProperties()
The properties for a task definition that describes the container and volume definitions of an Amazon ECS task.
public void setTaskProperties(Collection<AttemptEcsTaskDetails> taskProperties)
The properties for a task definition that describes the container and volume definitions of an Amazon ECS task.
taskProperties
- The properties for a task definition that describes the container and volume definitions of an Amazon ECS
task.public AttemptDetail withTaskProperties(AttemptEcsTaskDetails... taskProperties)
The properties for a task definition that describes the container and volume definitions of an Amazon ECS task.
NOTE: This method appends the values to the existing list (if any). Use
setTaskProperties(java.util.Collection)
or withTaskProperties(java.util.Collection)
if you want
to override the existing values.
taskProperties
- The properties for a task definition that describes the container and volume definitions of an Amazon ECS
task.public AttemptDetail withTaskProperties(Collection<AttemptEcsTaskDetails> taskProperties)
The properties for a task definition that describes the container and volume definitions of an Amazon ECS task.
taskProperties
- The properties for a task definition that describes the container and volume definitions of an Amazon ECS
task.public String toString()
toString
in class Object
Object.toString()
public AttemptDetail clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.