@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class JobExecution extends Object implements Serializable, Cloneable, StructuredPojo
Contains data about a job execution.
Constructor and Description |
---|
JobExecution() |
Modifier and Type | Method and Description |
---|---|
JobExecution |
addStatusDetailsEntry(String key,
String value) |
JobExecution |
clearStatusDetailsEntries()
Removes all the entries added into StatusDetails.
|
JobExecution |
clone() |
boolean |
equals(Object obj) |
Long |
getApproximateSecondsBeforeTimedOut()
The estimated number of seconds that remain before the job execution status will be changed to
TIMED_OUT . |
Long |
getExecutionNumber()
A number that identifies a particular job execution on a particular device.
|
String |
getJobDocument()
The content of the job document.
|
String |
getJobId()
The unique identifier you assigned to this job when it was created.
|
Long |
getLastUpdatedAt()
The time, in milliseconds since the epoch, when the job execution was last updated.
|
Long |
getQueuedAt()
The time, in milliseconds since the epoch, when the job execution was enqueued.
|
Long |
getStartedAt()
The time, in milliseconds since the epoch, when the job execution was started.
|
String |
getStatus()
The status of the job execution.
|
Map<String,String> |
getStatusDetails()
A collection of name/value pairs that describe the status of the job execution.
|
String |
getThingName()
The name of the thing that is executing the job.
|
Long |
getVersionNumber()
The version of the job execution.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setApproximateSecondsBeforeTimedOut(Long approximateSecondsBeforeTimedOut)
The estimated number of seconds that remain before the job execution status will be changed to
TIMED_OUT . |
void |
setExecutionNumber(Long executionNumber)
A number that identifies a particular job execution on a particular device.
|
void |
setJobDocument(String jobDocument)
The content of the job document.
|
void |
setJobId(String jobId)
The unique identifier you assigned to this job when it was created.
|
void |
setLastUpdatedAt(Long lastUpdatedAt)
The time, in milliseconds since the epoch, when the job execution was last updated.
|
void |
setQueuedAt(Long queuedAt)
The time, in milliseconds since the epoch, when the job execution was enqueued.
|
void |
setStartedAt(Long startedAt)
The time, in milliseconds since the epoch, when the job execution was started.
|
void |
setStatus(String status)
The status of the job execution.
|
void |
setStatusDetails(Map<String,String> statusDetails)
A collection of name/value pairs that describe the status of the job execution.
|
void |
setThingName(String thingName)
The name of the thing that is executing the job.
|
void |
setVersionNumber(Long versionNumber)
The version of the job execution.
|
String |
toString()
Returns a string representation of this object.
|
JobExecution |
withApproximateSecondsBeforeTimedOut(Long approximateSecondsBeforeTimedOut)
The estimated number of seconds that remain before the job execution status will be changed to
TIMED_OUT . |
JobExecution |
withExecutionNumber(Long executionNumber)
A number that identifies a particular job execution on a particular device.
|
JobExecution |
withJobDocument(String jobDocument)
The content of the job document.
|
JobExecution |
withJobId(String jobId)
The unique identifier you assigned to this job when it was created.
|
JobExecution |
withLastUpdatedAt(Long lastUpdatedAt)
The time, in milliseconds since the epoch, when the job execution was last updated.
|
JobExecution |
withQueuedAt(Long queuedAt)
The time, in milliseconds since the epoch, when the job execution was enqueued.
|
JobExecution |
withStartedAt(Long startedAt)
The time, in milliseconds since the epoch, when the job execution was started.
|
JobExecution |
withStatus(JobExecutionStatus status)
The status of the job execution.
|
JobExecution |
withStatus(String status)
The status of the job execution.
|
JobExecution |
withStatusDetails(Map<String,String> statusDetails)
A collection of name/value pairs that describe the status of the job execution.
|
JobExecution |
withThingName(String thingName)
The name of the thing that is executing the job.
|
JobExecution |
withVersionNumber(Long versionNumber)
The version of the job execution.
|
public void setJobId(String jobId)
The unique identifier you assigned to this job when it was created.
jobId
- The unique identifier you assigned to this job when it was created.public String getJobId()
The unique identifier you assigned to this job when it was created.
public JobExecution withJobId(String jobId)
The unique identifier you assigned to this job when it was created.
jobId
- The unique identifier you assigned to this job when it was created.public void setThingName(String thingName)
The name of the thing that is executing the job.
thingName
- The name of the thing that is executing the job.public String getThingName()
The name of the thing that is executing the job.
public JobExecution withThingName(String thingName)
The name of the thing that is executing the job.
thingName
- The name of the thing that is executing the job.public void setStatus(String status)
The status of the job execution. Can be one of: "QUEUED", "IN_PROGRESS", "FAILED", "SUCCESS", "CANCELED", "REJECTED", or "REMOVED".
status
- The status of the job execution. Can be one of: "QUEUED", "IN_PROGRESS", "FAILED", "SUCCESS", "CANCELED",
"REJECTED", or "REMOVED".JobExecutionStatus
public String getStatus()
The status of the job execution. Can be one of: "QUEUED", "IN_PROGRESS", "FAILED", "SUCCESS", "CANCELED", "REJECTED", or "REMOVED".
JobExecutionStatus
public JobExecution withStatus(String status)
The status of the job execution. Can be one of: "QUEUED", "IN_PROGRESS", "FAILED", "SUCCESS", "CANCELED", "REJECTED", or "REMOVED".
status
- The status of the job execution. Can be one of: "QUEUED", "IN_PROGRESS", "FAILED", "SUCCESS", "CANCELED",
"REJECTED", or "REMOVED".JobExecutionStatus
public JobExecution withStatus(JobExecutionStatus status)
The status of the job execution. Can be one of: "QUEUED", "IN_PROGRESS", "FAILED", "SUCCESS", "CANCELED", "REJECTED", or "REMOVED".
status
- The status of the job execution. Can be one of: "QUEUED", "IN_PROGRESS", "FAILED", "SUCCESS", "CANCELED",
"REJECTED", or "REMOVED".JobExecutionStatus
public Map<String,String> getStatusDetails()
A collection of name/value pairs that describe the status of the job execution.
public void setStatusDetails(Map<String,String> statusDetails)
A collection of name/value pairs that describe the status of the job execution.
statusDetails
- A collection of name/value pairs that describe the status of the job execution.public JobExecution withStatusDetails(Map<String,String> statusDetails)
A collection of name/value pairs that describe the status of the job execution.
statusDetails
- A collection of name/value pairs that describe the status of the job execution.public JobExecution addStatusDetailsEntry(String key, String value)
public JobExecution clearStatusDetailsEntries()
public void setQueuedAt(Long queuedAt)
The time, in milliseconds since the epoch, when the job execution was enqueued.
queuedAt
- The time, in milliseconds since the epoch, when the job execution was enqueued.public Long getQueuedAt()
The time, in milliseconds since the epoch, when the job execution was enqueued.
public JobExecution withQueuedAt(Long queuedAt)
The time, in milliseconds since the epoch, when the job execution was enqueued.
queuedAt
- The time, in milliseconds since the epoch, when the job execution was enqueued.public void setStartedAt(Long startedAt)
The time, in milliseconds since the epoch, when the job execution was started.
startedAt
- The time, in milliseconds since the epoch, when the job execution was started.public Long getStartedAt()
The time, in milliseconds since the epoch, when the job execution was started.
public JobExecution withStartedAt(Long startedAt)
The time, in milliseconds since the epoch, when the job execution was started.
startedAt
- The time, in milliseconds since the epoch, when the job execution was started.public void setLastUpdatedAt(Long lastUpdatedAt)
The time, in milliseconds since the epoch, when the job execution was last updated.
lastUpdatedAt
- The time, in milliseconds since the epoch, when the job execution was last updated.public Long getLastUpdatedAt()
The time, in milliseconds since the epoch, when the job execution was last updated.
public JobExecution withLastUpdatedAt(Long lastUpdatedAt)
The time, in milliseconds since the epoch, when the job execution was last updated.
lastUpdatedAt
- The time, in milliseconds since the epoch, when the job execution was last updated.public void setApproximateSecondsBeforeTimedOut(Long approximateSecondsBeforeTimedOut)
The estimated number of seconds that remain before the job execution status will be changed to
TIMED_OUT
.
approximateSecondsBeforeTimedOut
- The estimated number of seconds that remain before the job execution status will be changed to
TIMED_OUT
.public Long getApproximateSecondsBeforeTimedOut()
The estimated number of seconds that remain before the job execution status will be changed to
TIMED_OUT
.
TIMED_OUT
.public JobExecution withApproximateSecondsBeforeTimedOut(Long approximateSecondsBeforeTimedOut)
The estimated number of seconds that remain before the job execution status will be changed to
TIMED_OUT
.
approximateSecondsBeforeTimedOut
- The estimated number of seconds that remain before the job execution status will be changed to
TIMED_OUT
.public void setVersionNumber(Long versionNumber)
The version of the job execution. Job execution versions are incremented each time they are updated by a device.
versionNumber
- The version of the job execution. Job execution versions are incremented each time they are updated by a
device.public Long getVersionNumber()
The version of the job execution. Job execution versions are incremented each time they are updated by a device.
public JobExecution withVersionNumber(Long versionNumber)
The version of the job execution. Job execution versions are incremented each time they are updated by a device.
versionNumber
- The version of the job execution. Job execution versions are incremented each time they are updated by a
device.public void setExecutionNumber(Long executionNumber)
A number that identifies a particular job execution on a particular device. It can be used later in commands that return or update job execution information.
executionNumber
- A number that identifies a particular job execution on a particular device. It can be used later in
commands that return or update job execution information.public Long getExecutionNumber()
A number that identifies a particular job execution on a particular device. It can be used later in commands that return or update job execution information.
public JobExecution withExecutionNumber(Long executionNumber)
A number that identifies a particular job execution on a particular device. It can be used later in commands that return or update job execution information.
executionNumber
- A number that identifies a particular job execution on a particular device. It can be used later in
commands that return or update job execution information.public void setJobDocument(String jobDocument)
The content of the job document.
jobDocument
- The content of the job document.public String getJobDocument()
The content of the job document.
public JobExecution withJobDocument(String jobDocument)
The content of the job document.
jobDocument
- The content of the job document.public String toString()
toString
in class Object
Object.toString()
public JobExecution 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.