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 Details

    • 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

      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:
    • 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:
    • 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 the ConfigurationOverrides.Builder avoiding the need to create one manually via ConfigurationOverrides.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to configurationOverrides(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:
    • 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 the JobDriver.Builder avoiding the need to create one manually via JobDriver.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to jobDriver(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:
    • 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

      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:
    • 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 the RetryPolicyConfiguration.Builder avoiding the need to create one manually via RetryPolicyConfiguration.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to retryPolicyConfiguration(RetryPolicyConfiguration).

      Parameters:
      retryPolicyConfiguration - a consumer that will call methods on RetryPolicyConfiguration.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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 the RetryPolicyExecution.Builder avoiding the need to create one manually via RetryPolicyExecution.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to retryPolicyExecution(RetryPolicyExecution).

      Parameters:
      retryPolicyExecution - a consumer that will call methods on RetryPolicyExecution.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: