@Generated(value="software.amazon.awssdk:codegen") public final class JobExecution extends Object implements SdkPojo, Serializable, ToCopyableBuilder<JobExecution.Builder,JobExecution>
The job execution object represents the execution of a job on a particular device.
Modifier and Type | Class and Description |
---|---|
static interface |
JobExecution.Builder |
Modifier and Type | Method and Description |
---|---|
Long |
approximateSecondsBeforeTimedOut()
The estimated number of seconds that remain before the job execution status will be changed to
TIMED_OUT . |
static JobExecution.Builder |
builder() |
boolean |
equals(Object obj) |
Long |
executionNumber()
A string (consisting of the digits "0" through "9") which identifies this particular job execution on this
particular device.
|
Boolean |
forceCanceled()
Will be
true if the job execution was canceled with the optional force parameter set to
true . |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
jobId()
The unique identifier you assigned to the job when it was created.
|
Instant |
lastUpdatedAt()
The time, in milliseconds since the epoch, when the job execution was last updated.
|
Instant |
queuedAt()
The time, in milliseconds since the epoch, when the job execution was queued.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends JobExecution.Builder> |
serializableBuilderClass() |
Instant |
startedAt()
The time, in milliseconds since the epoch, when the job execution started.
|
JobExecutionStatus |
status()
The status of the job execution (IN_PROGRESS, QUEUED, FAILED, SUCCEEDED, TIMED_OUT, CANCELED, or REJECTED).
|
String |
statusAsString()
The status of the job execution (IN_PROGRESS, QUEUED, FAILED, SUCCEEDED, TIMED_OUT, CANCELED, or REJECTED).
|
JobExecutionStatusDetails |
statusDetails()
A collection of name/value pairs that describe the status of the job execution.
|
String |
thingArn()
The ARN of the thing on which the job execution is running.
|
JobExecution.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
Long |
versionNumber()
The version of the job execution.
|
copy
public String jobId()
The unique identifier you assigned to the job when it was created.
public JobExecutionStatus status()
The status of the job execution (IN_PROGRESS, QUEUED, FAILED, SUCCEEDED, TIMED_OUT, CANCELED, or REJECTED).
If the service returns an enum value that is not available in the current SDK version, status
will
return JobExecutionStatus.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
statusAsString()
.
JobExecutionStatus
public String statusAsString()
The status of the job execution (IN_PROGRESS, QUEUED, FAILED, SUCCEEDED, TIMED_OUT, CANCELED, or REJECTED).
If the service returns an enum value that is not available in the current SDK version, status
will
return JobExecutionStatus.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
statusAsString()
.
JobExecutionStatus
public Boolean forceCanceled()
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 JobExecutionStatusDetails statusDetails()
A collection of name/value pairs that describe the status of the job execution.
public String thingArn()
The ARN of the thing on which the job execution is running.
public Instant queuedAt()
The time, in milliseconds since the epoch, when the job execution was queued.
public Instant startedAt()
The time, in milliseconds since the epoch, when the job execution started.
public Instant lastUpdatedAt()
The time, in milliseconds since the epoch, when the job execution was last updated.
public 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.
public Long versionNumber()
The version of the job execution. Job execution versions are incremented each time they are updated by a device.
public 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.
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.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<JobExecution.Builder,JobExecution>
public static JobExecution.Builder builder()
public static Class<? extends JobExecution.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.