Class JobRun

    • Method Detail

      • applicationId

        public final String applicationId()

        The ID of the application the job is running on.

        Returns:
        The ID of the application the job is running on.
      • jobRunId

        public final String jobRunId()

        The ID of the job run.

        Returns:
        The ID of the job run.
      • name

        public final String name()

        The optional job run name. This doesn't have to be unique.

        Returns:
        The optional job run name. This doesn't have to be unique.
      • arn

        public final String arn()

        The execution role ARN of the job run.

        Returns:
        The execution role ARN of the job run.
      • createdBy

        public final String createdBy()

        The user who created the job run.

        Returns:
        The user who created the job run.
      • createdAt

        public final Instant createdAt()

        The date and time when the job run was created.

        Returns:
        The date and time when the job run was created.
      • updatedAt

        public final Instant updatedAt()

        The date and time when the job run was updated.

        Returns:
        The date and time when the job run was updated.
      • executionRole

        public final String executionRole()

        The execution role ARN of the job run.

        Returns:
        The execution role ARN of the job run.
      • stateDetails

        public final String stateDetails()

        The state details of the job run.

        Returns:
        The state details of the job run.
      • releaseLabel

        public final String releaseLabel()

        The Amazon EMR release associated with the application your job is running on.

        Returns:
        The Amazon EMR release associated with the application your job is running on.
      • configurationOverrides

        public final ConfigurationOverrides configurationOverrides()

        The configuration settings that are used to override default configuration.

        Returns:
        The configuration settings that are used to override default configuration.
      • jobDriver

        public final JobDriver jobDriver()

        The job driver for the job run.

        Returns:
        The job driver for the job run.
      • hasTags

        public final boolean hasTags()
        For responses, this returns true if the service returned a value for the Tags property. This DOES NOT check that the value is non-empty (for which, you should check the isEmpty() method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
      • tags

        public final Map<String,​String> tags()

        The tags assigned to the job run.

        Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.

        This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the hasTags() method.

        Returns:
        The tags assigned to the job run.
      • totalResourceUtilization

        public final TotalResourceUtilization totalResourceUtilization()

        The aggregate vCPU, memory, and storage resources used from the time the job starts to execute, until the time the job terminates, rounded up to the nearest second.

        Returns:
        The aggregate vCPU, memory, and storage resources used from the time the job starts to execute, until the time the job terminates, rounded up to the nearest second.
      • networkConfiguration

        public final NetworkConfiguration networkConfiguration()
        Returns the value of the NetworkConfiguration property for this object.
        Returns:
        The value of the NetworkConfiguration property for this object.
      • totalExecutionDurationSeconds

        public final Integer totalExecutionDurationSeconds()

        The job run total execution duration in seconds. This field is only available for job runs in a COMPLETED, FAILED, or CANCELLED state.

        Returns:
        The job run total execution duration in seconds. This field is only available for job runs in a COMPLETED, FAILED, or CANCELLED state.
      • executionTimeoutMinutes

        public final Long executionTimeoutMinutes()

        Returns the job run timeout value from the StartJobRun call. If no timeout was specified, then it returns the default timeout of 720 minutes.

        Returns:
        Returns the job run timeout value from the StartJobRun call. If no timeout was specified, then it returns the default timeout of 720 minutes.
      • billedResourceUtilization

        public final ResourceUtilization billedResourceUtilization()

        The aggregate vCPU, memory, and storage that Amazon Web Services has billed for the job run. The billed resources include a 1-minute minimum usage for workers, plus additional storage over 20 GB per worker. Note that billed resources do not include usage for idle pre-initialized workers.

        Returns:
        The aggregate vCPU, memory, and storage that Amazon Web Services has billed for the job run. The billed resources include a 1-minute minimum usage for workers, plus additional storage over 20 GB per worker. Note that billed resources do not include usage for idle pre-initialized workers.
      • serializableBuilderClass

        public static Class<? extends JobRun.Builder> serializableBuilderClass()
      • 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)