Class JobExecution

    • 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, status will return JobExecutionStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from statusAsString().

        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, status will return JobExecutionStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from statusAsString().

        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 true if the job execution was canceled with the optional force parameter set to true.

        Returns:
        Will be true if the job execution was canceled with the optional force parameter set to true.
      • 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.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • 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.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)