@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class JobExecution extends Object implements Serializable, Cloneable, StructuredPojo
The job execution object represents the execution of a job on a particular device.
Constructor and Description |
---|
JobExecution() |
Modifier and Type | Method and Description |
---|---|
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 string (consisting of the digits "0" through "9") which identifies this particular job execution on this
particular device.
|
Boolean |
getForceCanceled()
Will be
true if the job execution was canceled with the optional force parameter set to
true . |
String |
getJobId()
The unique identifier you assigned to the job when it was created.
|
Date |
getLastUpdatedAt()
The time, in seconds since the epoch, when the job execution was last updated.
|
Date |
getQueuedAt()
The time, in seconds since the epoch, when the job execution was queued.
|
Date |
getStartedAt()
The time, in seconds since the epoch, when the job execution started.
|
String |
getStatus()
The status of the job execution (IN_PROGRESS, QUEUED, FAILED, SUCCEEDED, TIMED_OUT, CANCELED, or REJECTED).
|
JobExecutionStatusDetails |
getStatusDetails()
A collection of name/value pairs that describe the status of the job execution.
|
String |
getThingArn()
The ARN of the thing on which the job execution is running.
|
Long |
getVersionNumber()
The version of the job execution.
|
int |
hashCode() |
Boolean |
isForceCanceled()
Will be
true if the job execution was canceled with the optional force parameter set to
true . |
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 string (consisting of the digits "0" through "9") which identifies this particular job execution on this
particular device.
|
void |
setForceCanceled(Boolean forceCanceled)
Will be
true if the job execution was canceled with the optional force parameter set to
true . |
void |
setJobId(String jobId)
The unique identifier you assigned to the job when it was created.
|
void |
setLastUpdatedAt(Date lastUpdatedAt)
The time, in seconds since the epoch, when the job execution was last updated.
|
void |
setQueuedAt(Date queuedAt)
The time, in seconds since the epoch, when the job execution was queued.
|
void |
setStartedAt(Date startedAt)
The time, in seconds since the epoch, when the job execution started.
|
void |
setStatus(String status)
The status of the job execution (IN_PROGRESS, QUEUED, FAILED, SUCCEEDED, TIMED_OUT, CANCELED, or REJECTED).
|
void |
setStatusDetails(JobExecutionStatusDetails statusDetails)
A collection of name/value pairs that describe the status of the job execution.
|
void |
setThingArn(String thingArn)
The ARN of the thing on which the job execution is running.
|
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 string (consisting of the digits "0" through "9") which identifies this particular job execution on this
particular device.
|
JobExecution |
withForceCanceled(Boolean forceCanceled)
Will be
true if the job execution was canceled with the optional force parameter set to
true . |
JobExecution |
withJobId(String jobId)
The unique identifier you assigned to the job when it was created.
|
JobExecution |
withLastUpdatedAt(Date lastUpdatedAt)
The time, in seconds since the epoch, when the job execution was last updated.
|
JobExecution |
withQueuedAt(Date queuedAt)
The time, in seconds since the epoch, when the job execution was queued.
|
JobExecution |
withStartedAt(Date startedAt)
The time, in seconds since the epoch, when the job execution started.
|
JobExecution |
withStatus(JobExecutionStatus status)
The status of the job execution (IN_PROGRESS, QUEUED, FAILED, SUCCEEDED, TIMED_OUT, CANCELED, or REJECTED).
|
JobExecution |
withStatus(String status)
The status of the job execution (IN_PROGRESS, QUEUED, FAILED, SUCCEEDED, TIMED_OUT, CANCELED, or REJECTED).
|
JobExecution |
withStatusDetails(JobExecutionStatusDetails statusDetails)
A collection of name/value pairs that describe the status of the job execution.
|
JobExecution |
withThingArn(String thingArn)
The ARN of the thing on which the job execution is running.
|
JobExecution |
withVersionNumber(Long versionNumber)
The version of the job execution.
|
public void setJobId(String jobId)
The unique identifier you assigned to the job when it was created.
jobId
- The unique identifier you assigned to the job when it was created.public String getJobId()
The unique identifier you assigned to the job when it was created.
public JobExecution withJobId(String jobId)
The unique identifier you assigned to the job when it was created.
jobId
- The unique identifier you assigned to the job when it was created.public void setStatus(String status)
The status of the job execution (IN_PROGRESS, QUEUED, FAILED, SUCCEEDED, TIMED_OUT, CANCELED, or REJECTED).
status
- The status of the job execution (IN_PROGRESS, QUEUED, FAILED, SUCCEEDED, TIMED_OUT, CANCELED, or
REJECTED).JobExecutionStatus
public String getStatus()
The status of the job execution (IN_PROGRESS, QUEUED, FAILED, SUCCEEDED, TIMED_OUT, CANCELED, or REJECTED).
JobExecutionStatus
public JobExecution withStatus(String status)
The status of the job execution (IN_PROGRESS, QUEUED, FAILED, SUCCEEDED, TIMED_OUT, CANCELED, or REJECTED).
status
- The status of the job execution (IN_PROGRESS, QUEUED, FAILED, SUCCEEDED, TIMED_OUT, CANCELED, or
REJECTED).JobExecutionStatus
public JobExecution withStatus(JobExecutionStatus status)
The status of the job execution (IN_PROGRESS, QUEUED, FAILED, SUCCEEDED, TIMED_OUT, CANCELED, or REJECTED).
status
- The status of the job execution (IN_PROGRESS, QUEUED, FAILED, SUCCEEDED, TIMED_OUT, CANCELED, or
REJECTED).JobExecutionStatus
public void setForceCanceled(Boolean forceCanceled)
Will be true
if the job execution was canceled with the optional force
parameter set to
true
.
forceCanceled
- Will be true
if the job execution was canceled with the optional force
parameter
set to true
.public Boolean getForceCanceled()
Will be true
if the job execution was canceled with the optional force
parameter set to
true
.
true
if the job execution was canceled with the optional force
parameter set to true
.public JobExecution withForceCanceled(Boolean forceCanceled)
Will be true
if the job execution was canceled with the optional force
parameter set to
true
.
forceCanceled
- Will be true
if the job execution was canceled with the optional force
parameter
set to true
.public Boolean isForceCanceled()
Will be true
if the job execution was canceled with the optional force
parameter set to
true
.
true
if the job execution was canceled with the optional force
parameter set to true
.public void setStatusDetails(JobExecutionStatusDetails 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 JobExecutionStatusDetails getStatusDetails()
A collection of name/value pairs that describe the status of the job execution.
public JobExecution withStatusDetails(JobExecutionStatusDetails 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 void setThingArn(String thingArn)
The ARN of the thing on which the job execution is running.
thingArn
- The ARN of the thing on which the job execution is running.public String getThingArn()
The ARN of the thing on which the job execution is running.
public JobExecution withThingArn(String thingArn)
The ARN of the thing on which the job execution is running.
thingArn
- The ARN of the thing on which the job execution is running.public void setQueuedAt(Date queuedAt)
The time, in seconds since the epoch, when the job execution was queued.
queuedAt
- The time, in seconds since the epoch, when the job execution was queued.public Date getQueuedAt()
The time, in seconds since the epoch, when the job execution was queued.
public JobExecution withQueuedAt(Date queuedAt)
The time, in seconds since the epoch, when the job execution was queued.
queuedAt
- The time, in seconds since the epoch, when the job execution was queued.public void setStartedAt(Date startedAt)
The time, in seconds since the epoch, when the job execution started.
startedAt
- The time, in seconds since the epoch, when the job execution started.public Date getStartedAt()
The time, in seconds since the epoch, when the job execution started.
public JobExecution withStartedAt(Date startedAt)
The time, in seconds since the epoch, when the job execution started.
startedAt
- The time, in seconds since the epoch, when the job execution started.public void setLastUpdatedAt(Date lastUpdatedAt)
The time, in seconds since the epoch, when the job execution was last updated.
lastUpdatedAt
- The time, in seconds since the epoch, when the job execution was last updated.public Date getLastUpdatedAt()
The time, in seconds since the epoch, when the job execution was last updated.
public JobExecution withLastUpdatedAt(Date lastUpdatedAt)
The time, in seconds since the epoch, when the job execution was last updated.
lastUpdatedAt
- The time, in seconds since the epoch, when the job execution was last updated.public void setExecutionNumber(Long executionNumber)
A string (consisting of the digits "0" through "9") which identifies this particular job execution on this particular device. It can be used in commands which return or update job execution information.
executionNumber
- A string (consisting of the digits "0" through "9") which identifies this particular job execution on this
particular device. It can be used in commands which return or update job execution information.public Long getExecutionNumber()
A string (consisting of the digits "0" through "9") which identifies this particular job execution on this particular device. It can be used in commands which return or update job execution information.
public JobExecution withExecutionNumber(Long executionNumber)
A string (consisting of the digits "0" through "9") which identifies this particular job execution on this particular device. It can be used in commands which return or update job execution information.
executionNumber
- A string (consisting of the digits "0" through "9") which identifies this particular job execution on this
particular device. It can be used in commands which return or update job execution information.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 setApproximateSecondsBeforeTimedOut(Long approximateSecondsBeforeTimedOut)
The estimated number of seconds that remain before the job execution status will be changed to
TIMED_OUT
. The timeout interval can be anywhere between 1 minute and 7 days (1 to 10080 minutes).
The actual job execution timeout can occur up to 60 seconds later than the estimated duration. This value will
not be included if the job execution has reached a terminal status.
approximateSecondsBeforeTimedOut
- The estimated number of seconds that remain before the job execution status will be changed to
TIMED_OUT
. The timeout interval can be anywhere between 1 minute and 7 days (1 to 10080
minutes). The actual job execution timeout can occur up to 60 seconds later than the estimated duration.
This value will not be included if the job execution has reached a terminal status.public Long getApproximateSecondsBeforeTimedOut()
The estimated number of seconds that remain before the job execution status will be changed to
TIMED_OUT
. The timeout interval can be anywhere between 1 minute and 7 days (1 to 10080 minutes).
The actual job execution timeout can occur up to 60 seconds later than the estimated duration. This value will
not be included if the job execution has reached a terminal status.
TIMED_OUT
. The timeout interval can be anywhere between 1 minute and 7 days (1 to 10080
minutes). The actual job execution timeout can occur up to 60 seconds later than the estimated duration.
This value will not be included if the job execution has reached a terminal status.public JobExecution withApproximateSecondsBeforeTimedOut(Long approximateSecondsBeforeTimedOut)
The estimated number of seconds that remain before the job execution status will be changed to
TIMED_OUT
. The timeout interval can be anywhere between 1 minute and 7 days (1 to 10080 minutes).
The actual job execution timeout can occur up to 60 seconds later than the estimated duration. This value will
not be included if the job execution has reached a terminal status.
approximateSecondsBeforeTimedOut
- The estimated number of seconds that remain before the job execution status will be changed to
TIMED_OUT
. The timeout interval can be anywhere between 1 minute and 7 days (1 to 10080
minutes). The actual job execution timeout can occur up to 60 seconds later than the estimated duration.
This value will not be included if the job execution has reached a terminal status.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.