@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) |
boolean |
equalsBySdkFields(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 seconds since the epoch, when the job execution was last updated.
|
Instant |
queuedAt()
The time, in seconds since the epoch, when the job execution was queued.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends JobExecution.Builder> |
serializableBuilderClass() |
Instant |
startedAt()
The time, in seconds 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() |
String |
toString()
Returns a string representation of this object.
|
Long |
versionNumber()
The version of the job execution.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
copy
public final String jobId()
The unique identifier you assigned to the job when it was created.
public final 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 final 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 final 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 final JobExecutionStatusDetails statusDetails()
A collection of name/value pairs that describe the status of the job execution.
public final String thingArn()
The ARN of the thing on which the job execution is running.
public final Instant queuedAt()
The time, in seconds since the epoch, when the job execution was queued.
public final Instant startedAt()
The time, in seconds since the epoch, when the job execution started.
public final Instant lastUpdatedAt()
The time, in seconds since the epoch, when the job execution was last updated.
public final 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 final Long versionNumber()
The version of the job execution. Job execution versions are incremented each time they are updated by a device.
public final 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()
toBuilder
in interface ToCopyableBuilder<JobExecution.Builder,JobExecution>
public static JobExecution.Builder builder()
public static Class<? extends JobExecution.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields
in interface SdkPojo
public final String toString()
Copyright © 2021. All rights reserved.