Class JobExecution
- java.lang.Object
-
- software.amazon.awssdk.services.iot.model.JobExecution
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<JobExecution.Builder,JobExecution>
@Generated("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.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceJobExecution.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description LongapproximateSecondsBeforeTimedOut()The estimated number of seconds that remain before the job execution status will be changed toTIMED_OUT.static JobExecution.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)LongexecutionNumber()A string (consisting of the digits "0" through "9") which identifies this particular job execution on this particular device.BooleanforceCanceled()Will betrueif the job execution was canceled with the optionalforceparameter set totrue.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()StringjobId()The unique identifier you assigned to the job when it was created.InstantlastUpdatedAt()The time, in seconds since the epoch, when the job execution was last updated.InstantqueuedAt()The time, in seconds since the epoch, when the job execution was queued.List<SdkField<?>>sdkFields()static Class<? extends JobExecution.Builder>serializableBuilderClass()InstantstartedAt()The time, in seconds since the epoch, when the job execution started.JobExecutionStatusstatus()The status of the job execution (IN_PROGRESS, QUEUED, FAILED, SUCCEEDED, TIMED_OUT, CANCELED, or REJECTED).StringstatusAsString()The status of the job execution (IN_PROGRESS, QUEUED, FAILED, SUCCEEDED, TIMED_OUT, CANCELED, or REJECTED).JobExecutionStatusDetailsstatusDetails()A collection of name/value pairs that describe the status of the job execution.StringthingArn()The ARN of the thing on which the job execution is running.JobExecution.BuildertoBuilder()StringtoString()Returns a string representation of this object.LongversionNumber()The version of the job execution.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
jobId
public final String jobId()
The unique identifier you assigned to the job when it was created.
- Returns:
- The unique identifier you assigned to the job when it was created.
-
status
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,
statuswill returnJobExecutionStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- The status of the job execution (IN_PROGRESS, QUEUED, FAILED, SUCCEEDED, TIMED_OUT, CANCELED, or REJECTED).
- See Also:
JobExecutionStatus
-
statusAsString
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,
statuswill returnJobExecutionStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- The status of the job execution (IN_PROGRESS, QUEUED, FAILED, SUCCEEDED, TIMED_OUT, CANCELED, or REJECTED).
- See Also:
JobExecutionStatus
-
forceCanceled
public final Boolean forceCanceled()
Will be
trueif the job execution was canceled with the optionalforceparameter set totrue.- Returns:
- Will be
trueif the job execution was canceled with the optionalforceparameter set totrue.
-
statusDetails
public final JobExecutionStatusDetails statusDetails()
A collection of name/value pairs that describe the status of the job execution.
- Returns:
- A collection of name/value pairs that describe the status of the job execution.
-
thingArn
public final String thingArn()
The ARN of the thing on which the job execution is running.
- Returns:
- The ARN of the thing on which the job execution is running.
-
queuedAt
public final Instant queuedAt()
The time, in seconds since the epoch, when the job execution was queued.
- Returns:
- The time, in seconds since the epoch, when the job execution was queued.
-
startedAt
public final Instant startedAt()
The time, in seconds since the epoch, when the job execution started.
- Returns:
- The time, in seconds since the epoch, when the job execution started.
-
lastUpdatedAt
public final Instant lastUpdatedAt()
The time, in seconds since the epoch, when the job execution was last updated.
- Returns:
- The time, in seconds since the epoch, when the job execution was last updated.
-
executionNumber
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.
- Returns:
- 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.
-
versionNumber
public final Long versionNumber()
The version of the job execution. Job execution versions are incremented each time they are updated by a device.
- Returns:
- The version of the job execution. Job execution versions are incremented each time they are updated by a device.
-
approximateSecondsBeforeTimedOut
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.- Returns:
- 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.
-
toBuilder
public JobExecution.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<JobExecution.Builder,JobExecution>
-
builder
public static JobExecution.Builder builder()
-
serializableBuilderClass
public static Class<? extends JobExecution.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-