Interface JobRun.Builder

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