@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 |
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 milliseconds since the epoch, when the job execution was last updated.
|
Date |
getQueuedAt()
The time, in milliseconds since the epoch, when the job execution was queued.
|
Date |
getStartedAt()
The time, in milliseconds since the epoch, when the job execution started.
|
String |
getStatus()
The status of the job execution (IN_PROGRESS, QUEUED, FAILED, SUCCESS, 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 |
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 milliseconds since the epoch, when the job execution was last updated.
|
void |
setQueuedAt(Date queuedAt)
The time, in milliseconds since the epoch, when the job execution was queued.
|
void |
setStartedAt(Date startedAt)
The time, in milliseconds since the epoch, when the job execution started.
|
void |
setStatus(String status)
The status of the job execution (IN_PROGRESS, QUEUED, FAILED, SUCCESS, 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; useful for testing and debugging.
|
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 milliseconds since the epoch, when the job execution was last updated.
|
JobExecution |
withQueuedAt(Date queuedAt)
The time, in milliseconds since the epoch, when the job execution was queued.
|
JobExecution |
withStartedAt(Date startedAt)
The time, in milliseconds since the epoch, when the job execution started.
|
JobExecution |
withStatus(JobExecutionStatus status)
The status of the job execution (IN_PROGRESS, QUEUED, FAILED, SUCCESS, CANCELED, or REJECTED).
|
JobExecution |
withStatus(String status)
The status of the job execution (IN_PROGRESS, QUEUED, FAILED, SUCCESS, 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, SUCCESS, CANCELED, or REJECTED).
status
- The status of the job execution (IN_PROGRESS, QUEUED, FAILED, SUCCESS, CANCELED, or REJECTED).JobExecutionStatus
public String getStatus()
The status of the job execution (IN_PROGRESS, QUEUED, FAILED, SUCCESS, CANCELED, or REJECTED).
JobExecutionStatus
public JobExecution withStatus(String status)
The status of the job execution (IN_PROGRESS, QUEUED, FAILED, SUCCESS, CANCELED, or REJECTED).
status
- The status of the job execution (IN_PROGRESS, QUEUED, FAILED, SUCCESS, CANCELED, or REJECTED).JobExecutionStatus
public JobExecution withStatus(JobExecutionStatus status)
The status of the job execution (IN_PROGRESS, QUEUED, FAILED, SUCCESS, CANCELED, or REJECTED).
status
- The status of the job execution (IN_PROGRESS, QUEUED, FAILED, SUCCESS, 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 milliseconds since the epoch, when the job execution was queued.
queuedAt
- The time, in milliseconds since the epoch, when the job execution was queued.public Date getQueuedAt()
The time, in milliseconds since the epoch, when the job execution was queued.
public JobExecution withQueuedAt(Date queuedAt)
The time, in milliseconds since the epoch, when the job execution was queued.
queuedAt
- The time, in milliseconds since the epoch, when the job execution was queued.public void setStartedAt(Date startedAt)
The time, in milliseconds since the epoch, when the job execution started.
startedAt
- The time, in milliseconds since the epoch, when the job execution started.public Date getStartedAt()
The time, in milliseconds since the epoch, when the job execution started.
public JobExecution withStartedAt(Date startedAt)
The time, in milliseconds since the epoch, when the job execution started.
startedAt
- The time, in milliseconds since the epoch, when the job execution started.public void setLastUpdatedAt(Date 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 Date getLastUpdatedAt()
The time, in milliseconds since the epoch, when the job execution was last updated.
public JobExecution withLastUpdatedAt(Date 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 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 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.