Interface JobRun.Builder
- All Superinterfaces:
- Buildable,- CopyableBuilder<JobRun.Builder,,- JobRun> - SdkBuilder<JobRun.Builder,,- JobRun> - SdkPojo
- Enclosing class:
- JobRun
- 
Method SummaryModifier 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.BuilderbilledResourceUtilization(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.BuilderconfigurationOverrides(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.BuilderexecutionIamPolicy(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 theStartJobRuncall.default JobRun.BuilderjobDriver(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.BuildernetworkConfiguration(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.BuilderretryPolicy(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.BuildertotalResourceUtilization(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.CopyableBuildercopyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilderapplyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojoequalsBySdkFields, sdkFieldNameToField, sdkFields
- 
Method Details- 
applicationIdThe 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.
 
- 
jobRunIdThe 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.
 
- 
nameThe 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.
 
- 
arnThe 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.
 
- 
createdByThe 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.
 
- 
createdAtThe 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.
 
- 
updatedAtThe 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.
 
- 
executionRoleThe 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.
 
- 
executionIamPolicySets 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.
 
- 
executionIamPolicydefault 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.Builderavoiding the need to create one manually viaJobRunExecutionIamPolicy.builder().When the Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toexecutionIamPolicy(JobRunExecutionIamPolicy).- Parameters:
- executionIamPolicy- a consumer that will call methods on- JobRunExecutionIamPolicy.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
stateThe 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:
 
- 
stateThe 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:
 
- 
stateDetailsThe 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.
 
- 
releaseLabelThe 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.
 
- 
configurationOverridesThe 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.
 
- 
configurationOverridesdefault 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.Builderavoiding the need to create one manually viaConfigurationOverrides.builder().When the Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toconfigurationOverrides(ConfigurationOverrides).- Parameters:
- configurationOverrides- a consumer that will call methods on- ConfigurationOverrides.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
jobDriverThe 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.
 
- 
jobDriverThe job driver for the job run. This is a convenience method that creates an instance of theJobDriver.Builderavoiding the need to create one manually viaJobDriver.builder().When the Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tojobDriver(JobDriver).- Parameters:
- jobDriver- a consumer that will call methods on- JobDriver.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
tagsThe 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.
 
- 
totalResourceUtilizationThe 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.
 
- 
totalResourceUtilizationdefault 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.Builderavoiding the need to create one manually viaTotalResourceUtilization.builder().When the Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tototalResourceUtilization(TotalResourceUtilization).- Parameters:
- totalResourceUtilization- a consumer that will call methods on- TotalResourceUtilization.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
networkConfigurationSets 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.
 
- 
networkConfigurationdefault 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.Builderavoiding the need to create one manually viaNetworkConfiguration.builder().When the Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tonetworkConfiguration(NetworkConfiguration).- Parameters:
- networkConfiguration- a consumer that will call methods on- NetworkConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
totalExecutionDurationSecondsThe job run total execution duration in seconds. This field is only available for job runs in a COMPLETED,FAILED, orCANCELLEDstate.- Parameters:
- totalExecutionDurationSeconds- The job run total execution duration in seconds. This field is only available for job runs in a- COMPLETED,- FAILED, or- CANCELLEDstate.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
executionTimeoutMinutesReturns the job run timeout value from the StartJobRuncall. If no timeout was specified, then it returns the default timeout of 720 minutes.- Parameters:
- executionTimeoutMinutes- Returns the job run timeout value from the- StartJobRuncall. 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.
 
- 
billedResourceUtilizationThe 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.
 
- 
billedResourceUtilizationdefault 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.Builderavoiding the need to create one manually viaResourceUtilization.builder().When the Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tobilledResourceUtilization(ResourceUtilization).- Parameters:
- billedResourceUtilization- a consumer that will call methods on- ResourceUtilization.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
modeThe 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:
 
- 
modeThe 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:
 
- 
retryPolicyThe 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.
 
- 
retryPolicyThe retry policy of the job run. This is a convenience method that creates an instance of theRetryPolicy.Builderavoiding the need to create one manually viaRetryPolicy.builder().When the Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toretryPolicy(RetryPolicy).- Parameters:
- retryPolicy- a consumer that will call methods on- RetryPolicy.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
attemptThe 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.
 
- 
attemptCreatedAtThe 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.
 
- 
attemptUpdatedAtThe 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.
 
- 
startedAtThe 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.
 
- 
endedAtThe 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.
 
- 
queuedDurationMillisecondsThe 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.
 
 
-