Interface JobRun.Builder

All Superinterfaces:
Buildable, CopyableBuilder<JobRun.Builder,JobRun>, SdkBuilder<JobRun.Builder,JobRun>, SdkPojo
Enclosing class:
JobRun

@Mutable @NotThreadSafe public static interface JobRun.Builder extends SdkPojo, CopyableBuilder<JobRun.Builder,JobRun>
  • Method Details

    • 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

      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.
    • executionIamPolicy

      JobRun.Builder executionIamPolicy(JobRunExecutionIamPolicy 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 the JobRunExecutionIamPolicy.Builder avoiding the need to create one manually via JobRunExecutionIamPolicy.builder().

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

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

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

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

      Parameters:
      totalExecutionDurationSeconds - The job run total execution duration in seconds. This field is only available for job runs in a COMPLETED, FAILED, or CANCELLED 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 the StartJobRun 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 the ResourceUtilization.Builder avoiding the need to create one manually via ResourceUtilization.builder().

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

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

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