Interface JobRun.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<JobRun.Builder,
,JobRun> SdkBuilder<JobRun.Builder,
,JobRun> SdkPojo
- Enclosing class:
JobRun
-
Method Summary
Modifier and TypeMethodDescriptionapplicationId
(String applicationId) The ID of the application the job is running on.The execution role ARN of the job run.The attempt of the job run.attemptCreatedAt
(Instant attemptCreatedAt) The date and time of when the job run attempt was created.attemptUpdatedAt
(Instant attemptUpdatedAt) The date and time of when the job run attempt was last updated.default JobRun.Builder
billedResourceUtilization
(Consumer<ResourceUtilization.Builder> billedResourceUtilization) The aggregate vCPU, memory, and storage that Amazon Web Services has billed for the job run.billedResourceUtilization
(ResourceUtilization billedResourceUtilization) The aggregate vCPU, memory, and storage that Amazon Web Services has billed for the job run.default JobRun.Builder
configurationOverrides
(Consumer<ConfigurationOverrides.Builder> configurationOverrides) The configuration settings that are used to override default configuration.configurationOverrides
(ConfigurationOverrides configurationOverrides) The configuration settings that are used to override default configuration.The date and time when the job run was created.The user who created the job run.The date and time when the job was terminated.default JobRun.Builder
executionIamPolicy
(Consumer<JobRunExecutionIamPolicy.Builder> executionIamPolicy) Sets the value of the ExecutionIamPolicy property for this object.executionIamPolicy
(JobRunExecutionIamPolicy executionIamPolicy) Sets the value of the ExecutionIamPolicy property for this object.executionRole
(String executionRole) The execution role ARN of the job run.executionTimeoutMinutes
(Long executionTimeoutMinutes) Returns the job run timeout value from theStartJobRun
call.default JobRun.Builder
jobDriver
(Consumer<JobDriver.Builder> jobDriver) The job driver for the job run.The job driver for the job run.The ID of the job run.The mode of the job run.mode
(JobRunMode mode) The mode of the job run.The optional job run name.default JobRun.Builder
networkConfiguration
(Consumer<NetworkConfiguration.Builder> networkConfiguration) Sets the value of the NetworkConfiguration property for this object.networkConfiguration
(NetworkConfiguration networkConfiguration) Sets the value of the NetworkConfiguration property for this object.queuedDurationMilliseconds
(Long queuedDurationMilliseconds) The total time for a job in the QUEUED state in milliseconds.releaseLabel
(String releaseLabel) The Amazon EMR release associated with the application your job is running on.default JobRun.Builder
retryPolicy
(Consumer<RetryPolicy.Builder> retryPolicy) The retry policy of the job run.retryPolicy
(RetryPolicy retryPolicy) The retry policy of the job run.The date and time when the job moved to the RUNNING state.The state of the job run.state
(JobRunState state) The state of the job run.stateDetails
(String stateDetails) The state details of the job run.The tags assigned to the job run.totalExecutionDurationSeconds
(Integer totalExecutionDurationSeconds) The job run total execution duration in seconds.default JobRun.Builder
totalResourceUtilization
(Consumer<TotalResourceUtilization.Builder> 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.totalResourceUtilization
(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.The date and time when the job run was updated.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
applicationId
The ID of the application the job is running on.
- Parameters:
applicationId
- The ID of the application the job is running on.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
jobRunId
The ID of the job run.
- Parameters:
jobRunId
- The ID of the job run.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
The optional job run name. This doesn't have to be unique.
- Parameters:
name
- The optional job run name. This doesn't have to be unique.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
arn
The execution role ARN of the job run.
- Parameters:
arn
- The execution role ARN of the job run.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
createdBy
The user who created the job run.
- Parameters:
createdBy
- The user who created the job run.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
createdAt
The date and time when the job run was created.
- Parameters:
createdAt
- The date and time when the job run was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
updatedAt
The date and time when the job run was updated.
- Parameters:
updatedAt
- The date and time when the job run was updated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
executionRole
The execution role ARN of the job run.
- Parameters:
executionRole
- The execution role ARN of the job run.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
executionIamPolicy
Sets the value of the ExecutionIamPolicy property for this object.- Parameters:
executionIamPolicy
- The new value for the ExecutionIamPolicy property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
executionIamPolicy
default JobRun.Builder executionIamPolicy(Consumer<JobRunExecutionIamPolicy.Builder> executionIamPolicy) Sets the value of the ExecutionIamPolicy property for this object. This is a convenience method that creates an instance of theJobRunExecutionIamPolicy.Builder
avoiding the need to create one manually viaJobRunExecutionIamPolicy.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toexecutionIamPolicy(JobRunExecutionIamPolicy)
.- Parameters:
executionIamPolicy
- a consumer that will call methods onJobRunExecutionIamPolicy.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
state
The state of the job run.
- Parameters:
state
- The state of the job run.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
state
The state of the job run.
- Parameters:
state
- The state of the job run.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
stateDetails
The state details of the job run.
- Parameters:
stateDetails
- The state details of the job run.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
releaseLabel
The Amazon EMR release associated with the application your job is running on.
- Parameters:
releaseLabel
- The Amazon EMR release associated with the application your job is running on.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
configurationOverrides
The configuration settings that are used to override default configuration.
- Parameters:
configurationOverrides
- The configuration settings that are used to override default configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
configurationOverrides
default JobRun.Builder configurationOverrides(Consumer<ConfigurationOverrides.Builder> configurationOverrides) The configuration settings that are used to override default configuration.
This is a convenience method that creates an instance of theConfigurationOverrides.Builder
avoiding the need to create one manually viaConfigurationOverrides.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toconfigurationOverrides(ConfigurationOverrides)
.- Parameters:
configurationOverrides
- a consumer that will call methods onConfigurationOverrides.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
jobDriver
The job driver for the job run.
- Parameters:
jobDriver
- The job driver for the job run.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
jobDriver
The job driver for the job run.
This is a convenience method that creates an instance of theJobDriver.Builder
avoiding the need to create one manually viaJobDriver.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tojobDriver(JobDriver)
.- Parameters:
jobDriver
- a consumer that will call methods onJobDriver.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
tags
The tags assigned to the job run.
- Parameters:
tags
- The tags assigned to the job run.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
- Parameters:
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:
- Returns a reference to this object so that method calls can be chained together.
-
totalResourceUtilization
default JobRun.Builder totalResourceUtilization(Consumer<TotalResourceUtilization.Builder> 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.
This is a convenience method that creates an instance of theTotalResourceUtilization.Builder
avoiding the need to create one manually viaTotalResourceUtilization.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tototalResourceUtilization(TotalResourceUtilization)
.- Parameters:
totalResourceUtilization
- a consumer that will call methods onTotalResourceUtilization.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
networkConfiguration
Sets the value of the NetworkConfiguration property for this object.- Parameters:
networkConfiguration
- The new value for the NetworkConfiguration property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
networkConfiguration
default JobRun.Builder networkConfiguration(Consumer<NetworkConfiguration.Builder> networkConfiguration) Sets the value of the NetworkConfiguration property for this object. This is a convenience method that creates an instance of theNetworkConfiguration.Builder
avoiding the need to create one manually viaNetworkConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tonetworkConfiguration(NetworkConfiguration)
.- Parameters:
networkConfiguration
- a consumer that will call methods onNetworkConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
totalExecutionDurationSeconds
The job run total execution duration in seconds. This field is only available for job runs in a
COMPLETED
,FAILED
, orCANCELLED
state.- Parameters:
totalExecutionDurationSeconds
- The job run total execution duration in seconds. This field is only available for job runs in aCOMPLETED
,FAILED
, orCANCELLED
state.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.- Parameters:
executionTimeoutMinutes
- Returns the job run timeout value from theStartJobRun
call. If no timeout was specified, then it returns the default timeout of 720 minutes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
- Parameters:
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:
- Returns a reference to this object so that method calls can be chained together.
-
billedResourceUtilization
default JobRun.Builder billedResourceUtilization(Consumer<ResourceUtilization.Builder> 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.
This is a convenience method that creates an instance of theResourceUtilization.Builder
avoiding the need to create one manually viaResourceUtilization.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tobilledResourceUtilization(ResourceUtilization)
.- Parameters:
billedResourceUtilization
- a consumer that will call methods onResourceUtilization.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
mode
The mode of the job run.
- Parameters:
mode
- The mode of the job run.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
mode
The mode of the job run.
- Parameters:
mode
- The mode of the job run.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
retryPolicy
The retry policy of the job run.
- Parameters:
retryPolicy
- The retry policy of the job run.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
retryPolicy
The retry policy of the job run.
This is a convenience method that creates an instance of theRetryPolicy.Builder
avoiding the need to create one manually viaRetryPolicy.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toretryPolicy(RetryPolicy)
.- Parameters:
retryPolicy
- a consumer that will call methods onRetryPolicy.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
attempt
The attempt of the job run.
- Parameters:
attempt
- The attempt of the job run.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
attemptCreatedAt
The date and time of when the job run attempt was created.
- Parameters:
attemptCreatedAt
- The date and time of when the job run attempt was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
attemptUpdatedAt
The date and time of when the job run attempt was last updated.
- Parameters:
attemptUpdatedAt
- The date and time of when the job run attempt was last updated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
startedAt
The date and time when the job moved to the RUNNING state.
- Parameters:
startedAt
- The date and time when the job moved to the RUNNING state.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
endedAt
The date and time when the job was terminated.
- Parameters:
endedAt
- The date and time when the job was terminated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
queuedDurationMilliseconds
The total time for a job in the QUEUED state in milliseconds.
- Parameters:
queuedDurationMilliseconds
- The total time for a job in the QUEUED state in milliseconds.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-