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.Builderarn(String arn)The ARN of job run.JobRun.BuilderclientToken(String clientToken)The client token used to start a job run.default JobRun.BuilderconfigurationOverrides(Consumer<ConfigurationOverrides.Builder> configurationOverrides)The configuration settings that are used to override default configuration.JobRun.BuilderconfigurationOverrides(ConfigurationOverrides configurationOverrides)The configuration settings that are used to override default configuration.JobRun.BuildercreatedAt(Instant createdAt)The date and time when the job run was created.JobRun.BuildercreatedBy(String createdBy)The user who created the job run.JobRun.BuilderexecutionRoleArn(String executionRoleArn)The execution role ARN of the job run.JobRun.BuilderfailureReason(String failureReason)The reasons why the job run has failed.JobRun.BuilderfailureReason(FailureReason failureReason)The reasons why the job run has failed.JobRun.BuilderfinishedAt(Instant finishedAt)The date and time when the job run has finished.JobRun.Builderid(String id)The ID of the job run.default JobRun.BuilderjobDriver(Consumer<JobDriver.Builder> jobDriver)Parameters of job driver for the job run.JobRun.BuilderjobDriver(JobDriver jobDriver)Parameters of job driver for the job run.JobRun.Buildername(String name)The name of the job run.JobRun.BuilderreleaseLabel(String releaseLabel)The release version of Amazon EMR.default JobRun.BuilderretryPolicyConfiguration(Consumer<RetryPolicyConfiguration.Builder> retryPolicyConfiguration)The configuration of the retry policy that the job runs on.JobRun.BuilderretryPolicyConfiguration(RetryPolicyConfiguration retryPolicyConfiguration)The configuration of the retry policy that the job runs on.default JobRun.BuilderretryPolicyExecution(Consumer<RetryPolicyExecution.Builder> retryPolicyExecution)The current status of the retry policy executed on the job.JobRun.BuilderretryPolicyExecution(RetryPolicyExecution retryPolicyExecution)The current status of the retry policy executed on the job.JobRun.Builderstate(String state)The state of the job run.JobRun.Builderstate(JobRunState state)The state of the job run.JobRun.BuilderstateDetails(String stateDetails)Additional details of the job run state.JobRun.Buildertags(Map<String,String> tags)The assigned tags of the job run.JobRun.BuildervirtualClusterId(String virtualClusterId)The ID of the job run's virtual cluster.-
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
-
id
JobRun.Builder id(String id)
The ID of the job run.
- Parameters:
id- 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 name of the job run.
- Parameters:
name- The name of the job run.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
virtualClusterId
JobRun.Builder virtualClusterId(String virtualClusterId)
The ID of the job run's virtual cluster.
- Parameters:
virtualClusterId- The ID of the job run's virtual cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
arn
JobRun.Builder arn(String arn)
The ARN of job run.
- Parameters:
arn- The ARN of 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
-
clientToken
JobRun.Builder clientToken(String clientToken)
The client token used to start a job run.
- Parameters:
clientToken- The client token used to start a job run.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
executionRoleArn
JobRun.Builder executionRoleArn(String executionRoleArn)
The execution role ARN of the job run.
- Parameters:
executionRoleArn- The execution role ARN 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 release version of Amazon EMR.
- Parameters:
releaseLabel- The release version of Amazon EMR.- 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.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 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)
Parameters of job driver for the job run.
- Parameters:
jobDriver- Parameters of 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)
Parameters of 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 onJobDriver.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
jobDriver(JobDriver)
-
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.
-
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.
-
finishedAt
JobRun.Builder finishedAt(Instant finishedAt)
The date and time when the job run has finished.
- Parameters:
finishedAt- The date and time when the job run has finished.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
stateDetails
JobRun.Builder stateDetails(String stateDetails)
Additional details of the job run state.
- Parameters:
stateDetails- Additional details of the job run state.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
failureReason
JobRun.Builder failureReason(String failureReason)
The reasons why the job run has failed.
- Parameters:
failureReason- The reasons why the job run has failed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
FailureReason,FailureReason
-
failureReason
JobRun.Builder failureReason(FailureReason failureReason)
The reasons why the job run has failed.
- Parameters:
failureReason- The reasons why the job run has failed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
FailureReason,FailureReason
-
tags
JobRun.Builder tags(Map<String,String> tags)
The assigned tags of the job run.
- Parameters:
tags- The assigned tags of the job run.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
retryPolicyConfiguration
JobRun.Builder retryPolicyConfiguration(RetryPolicyConfiguration retryPolicyConfiguration)
The configuration of the retry policy that the job runs on.
- Parameters:
retryPolicyConfiguration- The configuration of the retry policy that the job runs on.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
retryPolicyConfiguration
default JobRun.Builder retryPolicyConfiguration(Consumer<RetryPolicyConfiguration.Builder> retryPolicyConfiguration)
The configuration of the retry policy that the job runs on.
This is a convenience method that creates an instance of theRetryPolicyConfiguration.Builderavoiding the need to create one manually viaRetryPolicyConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toretryPolicyConfiguration(RetryPolicyConfiguration).- Parameters:
retryPolicyConfiguration- a consumer that will call methods onRetryPolicyConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
retryPolicyConfiguration(RetryPolicyConfiguration)
-
retryPolicyExecution
JobRun.Builder retryPolicyExecution(RetryPolicyExecution retryPolicyExecution)
The current status of the retry policy executed on the job.
- Parameters:
retryPolicyExecution- The current status of the retry policy executed on the job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
retryPolicyExecution
default JobRun.Builder retryPolicyExecution(Consumer<RetryPolicyExecution.Builder> retryPolicyExecution)
The current status of the retry policy executed on the job.
This is a convenience method that creates an instance of theRetryPolicyExecution.Builderavoiding the need to create one manually viaRetryPolicyExecution.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toretryPolicyExecution(RetryPolicyExecution).- Parameters:
retryPolicyExecution- a consumer that will call methods onRetryPolicyExecution.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
retryPolicyExecution(RetryPolicyExecution)
-
-