Interface JobRun.Builder
-
- All Superinterfaces:
Buildable
,CopyableBuilder<JobRun.Builder,JobRun>
,SdkBuilder<JobRun.Builder,JobRun>
,SdkPojo
- Enclosing class:
- JobRun
public static interface JobRun.Builder extends SdkPojo, CopyableBuilder<JobRun.Builder,JobRun>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description JobRun.Builder
applicationId(String applicationId)
The ID of the application the job is running on.JobRun.Builder
arn(String arn)
The execution role ARN of the job run.JobRun.Builder
attempt(Integer attempt)
The attempt of the job run.JobRun.Builder
attemptCreatedAt(Instant attemptCreatedAt)
The date and time of when the job run attempt was created.JobRun.Builder
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.JobRun.Builder
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.JobRun.Builder
configurationOverrides(ConfigurationOverrides configurationOverrides)
The configuration settings that are used to override default configuration.JobRun.Builder
createdAt(Instant createdAt)
The date and time when the job run was created.JobRun.Builder
createdBy(String createdBy)
The user who created the job run.JobRun.Builder
endedAt(Instant endedAt)
The date and time when the job was terminated.JobRun.Builder
executionRole(String executionRole)
The execution role ARN of the job run.JobRun.Builder
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.JobRun.Builder
jobDriver(JobDriver jobDriver)
The job driver for the job run.JobRun.Builder
jobRunId(String jobRunId)
The ID of the job run.JobRun.Builder
mode(String mode)
The mode of the job run.JobRun.Builder
mode(JobRunMode mode)
The mode of the job run.JobRun.Builder
name(String name)
The optional job run name.default JobRun.Builder
networkConfiguration(Consumer<NetworkConfiguration.Builder> networkConfiguration)
Sets the value of the NetworkConfiguration property for this object.JobRun.Builder
networkConfiguration(NetworkConfiguration networkConfiguration)
Sets the value of the NetworkConfiguration property for this object.JobRun.Builder
queuedDurationMilliseconds(Long queuedDurationMilliseconds)
The total time for a job in the QUEUED state in milliseconds.JobRun.Builder
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.JobRun.Builder
retryPolicy(RetryPolicy retryPolicy)
The retry policy of the job run.JobRun.Builder
startedAt(Instant startedAt)
The date and time when the job moved to the RUNNING state.JobRun.Builder
state(String state)
The state of the job run.JobRun.Builder
state(JobRunState state)
The state of the job run.JobRun.Builder
stateDetails(String stateDetails)
The state details of the job run.JobRun.Builder
tags(Map<String,String> tags)
The tags assigned to the job run.JobRun.Builder
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.JobRun.Builder
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.JobRun.Builder
updatedAt(Instant updatedAt)
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, sdkFields
-
-
-
-
Method Detail
-
applicationId
JobRun.Builder applicationId(String 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
JobRun.Builder jobRunId(String 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
JobRun.Builder name(String 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
JobRun.Builder arn(String 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
JobRun.Builder createdBy(String 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
JobRun.Builder createdAt(Instant 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
JobRun.Builder updatedAt(Instant 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
JobRun.Builder executionRole(String 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.
-
state
JobRun.Builder state(String 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:
JobRunState
,JobRunState
-
state
JobRun.Builder state(JobRunState 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:
JobRunState
,JobRunState
-
stateDetails
JobRun.Builder stateDetails(String 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
JobRun.Builder releaseLabel(String 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
JobRun.Builder configurationOverrides(ConfigurationOverrides 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:
configurationOverrides(ConfigurationOverrides)
-
jobDriver
JobRun.Builder jobDriver(JobDriver 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
default JobRun.Builder jobDriver(Consumer<JobDriver.Builder> 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:
jobDriver(JobDriver)
-
tags
JobRun.Builder tags(Map<String,String> 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
JobRun.Builder 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.
- 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:
totalResourceUtilization(TotalResourceUtilization)
-
networkConfiguration
JobRun.Builder networkConfiguration(NetworkConfiguration 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:
networkConfiguration(NetworkConfiguration)
-
totalExecutionDurationSeconds
JobRun.Builder totalExecutionDurationSeconds(Integer 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
JobRun.Builder executionTimeoutMinutes(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.- 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
JobRun.Builder billedResourceUtilization(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.
- 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:
billedResourceUtilization(ResourceUtilization)
-
mode
JobRun.Builder mode(String 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:
JobRunMode
,JobRunMode
-
mode
JobRun.Builder mode(JobRunMode 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:
JobRunMode
,JobRunMode
-
retryPolicy
JobRun.Builder retryPolicy(RetryPolicy 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
default JobRun.Builder retryPolicy(Consumer<RetryPolicy.Builder> 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:
retryPolicy(RetryPolicy)
-
attempt
JobRun.Builder attempt(Integer 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
JobRun.Builder attemptCreatedAt(Instant 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
JobRun.Builder attemptUpdatedAt(Instant 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
JobRun.Builder startedAt(Instant 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
JobRun.Builder endedAt(Instant 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
JobRun.Builder queuedDurationMilliseconds(Long 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.
-
-