public class JobExecution
extends java.lang.Object
implements java.io.Serializable
The job execution object represents the execution of a job on a particular device.
Constructor and Description |
---|
JobExecution() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.Long |
getApproximateSecondsBeforeTimedOut()
The estimated number of seconds that remain before the job execution
status will be changed to
TIMED_OUT . |
java.lang.Long |
getExecutionNumber()
A string (consisting of the digits "0" through "9") which identifies this
particular job execution on this particular device.
|
java.lang.Boolean |
getForceCanceled()
Will be
true if the job execution was canceled with the
optional force parameter set to true . |
java.lang.String |
getJobId()
The unique identifier you assigned to the job when it was created.
|
java.util.Date |
getLastUpdatedAt()
The time, in seconds since the epoch, when the job execution was last
updated.
|
java.util.Date |
getQueuedAt()
The time, in seconds since the epoch, when the job execution was queued.
|
java.util.Date |
getStartedAt()
The time, in seconds since the epoch, when the job execution started.
|
java.lang.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.
|
java.lang.String |
getThingArn()
The ARN of the thing on which the job execution is running.
|
java.lang.Long |
getVersionNumber()
The version of the job execution.
|
int |
hashCode() |
java.lang.Boolean |
isForceCanceled()
Will be
true if the job execution was canceled with the
optional force parameter set to true . |
void |
setApproximateSecondsBeforeTimedOut(java.lang.Long approximateSecondsBeforeTimedOut)
The estimated number of seconds that remain before the job execution
status will be changed to
TIMED_OUT . |
void |
setExecutionNumber(java.lang.Long executionNumber)
A string (consisting of the digits "0" through "9") which identifies this
particular job execution on this particular device.
|
void |
setForceCanceled(java.lang.Boolean forceCanceled)
Will be
true if the job execution was canceled with the
optional force parameter set to true . |
void |
setJobId(java.lang.String jobId)
The unique identifier you assigned to the job when it was created.
|
void |
setLastUpdatedAt(java.util.Date lastUpdatedAt)
The time, in seconds since the epoch, when the job execution was last
updated.
|
void |
setQueuedAt(java.util.Date queuedAt)
The time, in seconds since the epoch, when the job execution was queued.
|
void |
setStartedAt(java.util.Date startedAt)
The time, in seconds since the epoch, when the job execution started.
|
void |
setStatus(JobExecutionStatus status)
The status of the job execution (IN_PROGRESS, QUEUED, FAILED, SUCCEEDED,
TIMED_OUT, CANCELED, or REJECTED).
|
void |
setStatus(java.lang.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(java.lang.String thingArn)
The ARN of the thing on which the job execution is running.
|
void |
setVersionNumber(java.lang.Long versionNumber)
The version of the job execution.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
JobExecution |
withApproximateSecondsBeforeTimedOut(java.lang.Long approximateSecondsBeforeTimedOut)
The estimated number of seconds that remain before the job execution
status will be changed to
TIMED_OUT . |
JobExecution |
withExecutionNumber(java.lang.Long executionNumber)
A string (consisting of the digits "0" through "9") which identifies this
particular job execution on this particular device.
|
JobExecution |
withForceCanceled(java.lang.Boolean forceCanceled)
Will be
true if the job execution was canceled with the
optional force parameter set to true . |
JobExecution |
withJobId(java.lang.String jobId)
The unique identifier you assigned to the job when it was created.
|
JobExecution |
withLastUpdatedAt(java.util.Date lastUpdatedAt)
The time, in seconds since the epoch, when the job execution was last
updated.
|
JobExecution |
withQueuedAt(java.util.Date queuedAt)
The time, in seconds since the epoch, when the job execution was queued.
|
JobExecution |
withStartedAt(java.util.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(java.lang.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(java.lang.String thingArn)
The ARN of the thing on which the job execution is running.
|
JobExecution |
withVersionNumber(java.lang.Long versionNumber)
The version of the job execution.
|
public java.lang.String getJobId()
The unique identifier you assigned to the job when it was created.
Constraints:
Length: 1 - 64
Pattern: [a-zA-Z0-9_-]+
The unique identifier you assigned to the job when it was created.
public void setJobId(java.lang.String jobId)
The unique identifier you assigned to the job when it was created.
Constraints:
Length: 1 - 64
Pattern: [a-zA-Z0-9_-]+
jobId
- The unique identifier you assigned to the job when it was created.
public JobExecution withJobId(java.lang.String jobId)
The unique identifier you assigned to the job when it was created.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 64
Pattern: [a-zA-Z0-9_-]+
jobId
- The unique identifier you assigned to the job when it was created.
public java.lang.String getStatus()
The status of the job execution (IN_PROGRESS, QUEUED, FAILED, SUCCEEDED, TIMED_OUT, CANCELED, or REJECTED).
Constraints:
Allowed Values: QUEUED, IN_PROGRESS, SUCCEEDED, FAILED, TIMED_OUT,
REJECTED, REMOVED, CANCELED
The status of the job execution (IN_PROGRESS, QUEUED, FAILED, SUCCEEDED, TIMED_OUT, CANCELED, or REJECTED).
JobExecutionStatus
public void setStatus(java.lang.String status)
The status of the job execution (IN_PROGRESS, QUEUED, FAILED, SUCCEEDED, TIMED_OUT, CANCELED, or REJECTED).
Constraints:
Allowed Values: QUEUED, IN_PROGRESS, SUCCEEDED, FAILED, TIMED_OUT,
REJECTED, REMOVED, CANCELED
status
- The status of the job execution (IN_PROGRESS, QUEUED, FAILED, SUCCEEDED, TIMED_OUT, CANCELED, or REJECTED).
JobExecutionStatus
public JobExecution withStatus(java.lang.String status)
The status of the job execution (IN_PROGRESS, QUEUED, FAILED, SUCCEEDED, TIMED_OUT, CANCELED, or REJECTED).
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: QUEUED, IN_PROGRESS, SUCCEEDED, FAILED, TIMED_OUT,
REJECTED, REMOVED, CANCELED
status
- The status of the job execution (IN_PROGRESS, QUEUED, FAILED, SUCCEEDED, TIMED_OUT, CANCELED, or REJECTED).
JobExecutionStatus
public void setStatus(JobExecutionStatus status)
The status of the job execution (IN_PROGRESS, QUEUED, FAILED, SUCCEEDED, TIMED_OUT, CANCELED, or REJECTED).
Constraints:
Allowed Values: QUEUED, IN_PROGRESS, SUCCEEDED, FAILED, TIMED_OUT,
REJECTED, REMOVED, CANCELED
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).
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: QUEUED, IN_PROGRESS, SUCCEEDED, FAILED, TIMED_OUT,
REJECTED, REMOVED, CANCELED
status
- The status of the job execution (IN_PROGRESS, QUEUED, FAILED, SUCCEEDED, TIMED_OUT, CANCELED, or REJECTED).
JobExecutionStatus
public java.lang.Boolean isForceCanceled()
Will be true
if the job execution was canceled with the
optional force
parameter set to true
.
Will be true
if the job execution was canceled with
the optional force
parameter set to
true
.
public java.lang.Boolean getForceCanceled()
Will be true
if the job execution was canceled with the
optional force
parameter set to true
.
Will be true
if the job execution was canceled with
the optional force
parameter set to
true
.
public void setForceCanceled(java.lang.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 JobExecution withForceCanceled(java.lang.Boolean forceCanceled)
Will be true
if the job execution was canceled with the
optional force
parameter set to true
.
Returns a reference to this object so that method calls can be chained together.
forceCanceled
-
Will be true
if the job execution was canceled
with the optional force
parameter set to
true
.
public JobExecutionStatusDetails getStatusDetails()
A collection of name/value pairs that describe the status of the job execution.
A collection of name/value pairs that describe the status of the job execution.
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 JobExecution withStatusDetails(JobExecutionStatusDetails statusDetails)
A collection of name/value pairs that describe the status of the job execution.
Returns a reference to this object so that method calls can be chained together.
statusDetails
- A collection of name/value pairs that describe the status of the job execution.
public java.lang.String getThingArn()
The ARN of the thing on which the job execution is running.
The ARN of the thing on which the job execution is running.
public void setThingArn(java.lang.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 JobExecution withThingArn(java.lang.String thingArn)
The ARN of the thing on which the job execution is running.
Returns a reference to this object so that method calls can be chained together.
thingArn
- The ARN of the thing on which the job execution is running.
public java.util.Date getQueuedAt()
The time, in seconds since the epoch, when the job execution was queued.
The time, in seconds since the epoch, when the job execution was queued.
public void setQueuedAt(java.util.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 JobExecution withQueuedAt(java.util.Date queuedAt)
The time, in seconds since the epoch, when the job execution was queued.
Returns a reference to this object so that method calls can be chained together.
queuedAt
- The time, in seconds since the epoch, when the job execution was queued.
public java.util.Date getStartedAt()
The time, in seconds since the epoch, when the job execution started.
The time, in seconds since the epoch, when the job execution started.
public void setStartedAt(java.util.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 JobExecution withStartedAt(java.util.Date startedAt)
The time, in seconds since the epoch, when the job execution started.
Returns a reference to this object so that method calls can be chained together.
startedAt
- The time, in seconds since the epoch, when the job execution started.
public java.util.Date getLastUpdatedAt()
The time, in seconds since the epoch, when the job execution was last updated.
The time, in seconds since the epoch, when the job execution was last updated.
public void setLastUpdatedAt(java.util.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 JobExecution withLastUpdatedAt(java.util.Date lastUpdatedAt)
The time, in seconds since the epoch, when the job execution was last updated.
Returns a reference to this object so that method calls can be chained together.
lastUpdatedAt
- The time, in seconds since the epoch, when the job execution was last updated.
public java.lang.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.
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 setExecutionNumber(java.lang.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 JobExecution withExecutionNumber(java.lang.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.
Returns a reference to this object so that method calls can be chained together.
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 java.lang.Long getVersionNumber()
The version of the job execution. Job execution versions are incremented each time they are updated by a device.
The version of the job execution. Job execution versions are incremented each time they are updated by a device.
public void setVersionNumber(java.lang.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 JobExecution withVersionNumber(java.lang.Long versionNumber)
The version of the job execution. Job execution versions are incremented each time they are updated by a device.
Returns a reference to this object so that method calls can be chained together.
versionNumber
- The version of the job execution. Job execution versions are incremented each time they are updated by a device.
public java.lang.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.
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 void setApproximateSecondsBeforeTimedOut(java.lang.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 JobExecution withApproximateSecondsBeforeTimedOut(java.lang.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.
Returns a reference to this object so that method calls can be chained together.
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 java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.