Class JobRun
- java.lang.Object
-
- software.amazon.awssdk.services.emrserverless.model.JobRun
-
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<JobRun.Builder,JobRun>
@Generated("software.amazon.awssdk:codegen") public final class JobRun extends Object implements SdkPojo, Serializable, ToCopyableBuilder<JobRun.Builder,JobRun>
Information about a job run. A job run is a unit of work, such as a Spark JAR, Hive query, or SparkSQL query, that you submit to an Amazon EMR Serverless application.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
JobRun.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
applicationId()
The ID of the application the job is running on.String
arn()
The execution role ARN of the job run.ResourceUtilization
billedResourceUtilization()
The aggregate vCPU, memory, and storage that Amazon Web Services has billed for the job run.static JobRun.Builder
builder()
ConfigurationOverrides
configurationOverrides()
The configuration settings that are used to override default configuration.Instant
createdAt()
The date and time when the job run was created.String
createdBy()
The user who created the job run.boolean
equals(Object obj)
boolean
equalsBySdkFields(Object obj)
String
executionRole()
The execution role ARN of the job run.Long
executionTimeoutMinutes()
Returns the job run timeout value from theStartJobRun
call.<T> Optional<T>
getValueForField(String fieldName, Class<T> clazz)
int
hashCode()
boolean
hasTags()
For responses, this returns true if the service returned a value for the Tags property.JobDriver
jobDriver()
The job driver for the job run.String
jobRunId()
The ID of the job run.String
name()
The optional job run name.NetworkConfiguration
networkConfiguration()
Returns the value of the NetworkConfiguration property for this object.String
releaseLabel()
The Amazon EMR release associated with the application your job is running on.List<SdkField<?>>
sdkFields()
static Class<? extends JobRun.Builder>
serializableBuilderClass()
JobRunState
state()
The state of the job run.String
stateAsString()
The state of the job run.String
stateDetails()
The state details of the job run.Map<String,String>
tags()
The tags assigned to the job run.JobRun.Builder
toBuilder()
String
toString()
Returns a string representation of this object.Integer
totalExecutionDurationSeconds()
The job run total execution duration in seconds.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.Instant
updatedAt()
The date and time when the job run was updated.-
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
-
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.
-
state
public final JobRunState state()
The state of the job run.
If the service returns an enum value that is not available in the current SDK version,
state
will returnJobRunState.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromstateAsString()
.- Returns:
- The state of the job run.
- See Also:
JobRunState
-
stateAsString
public final String stateAsString()
The state of the job run.
If the service returns an enum value that is not available in the current SDK version,
state
will returnJobRunState.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromstateAsString()
.- Returns:
- The state of the job run.
- See Also:
JobRunState
-
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 theisEmpty()
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
, orCANCELLED
state.- Returns:
- The job run total execution duration in seconds. This field is only available for job runs in a
COMPLETED
,FAILED
, orCANCELLED
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.
-
toBuilder
public JobRun.Builder toBuilder()
- Specified by:
toBuilder
in interfaceToCopyableBuilder<JobRun.Builder,JobRun>
-
builder
public static JobRun.Builder builder()
-
serializableBuilderClass
public static Class<? extends JobRun.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFields
in 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.
-
-