Interface Job.Builder

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

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

    • jobName

      Job.Builder jobName(String jobName)

      The name of the job.

      Parameters:
      jobName - The name of the job.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • jobArn

      Job.Builder jobArn(String jobArn)

      The Amazon Resource Name (ARN) of the job.

      Parameters:
      jobArn - The Amazon Resource Name (ARN) of the job.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • roleArn

      Job.Builder roleArn(String roleArn)

      The ARN of the IAM role associated with the job.

      Parameters:
      roleArn - The ARN of the IAM role associated with the job.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • jobCategory

      Job.Builder jobCategory(String jobCategory)

      The category of the job.

      Parameters:
      jobCategory - The category of the job.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • jobCategory

      Job.Builder jobCategory(JobCategory jobCategory)

      The category of the job.

      Parameters:
      jobCategory - The category of the job.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • jobConfigSchemaVersion

      Job.Builder jobConfigSchemaVersion(String jobConfigSchemaVersion)

      The schema version used for the job configuration document.

      Parameters:
      jobConfigSchemaVersion - The schema version used for the job configuration document.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • jobConfigDocument

      Job.Builder jobConfigDocument(String jobConfigDocument)

      The JSON configuration document for the job.

      Parameters:
      jobConfigDocument - The JSON configuration document for the job.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • creationTime

      Job.Builder creationTime(Instant creationTime)

      The date and time that the job was created.

      Parameters:
      creationTime - The date and time that the job was created.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • lastModifiedTime

      Job.Builder lastModifiedTime(Instant lastModifiedTime)

      The date and time that the job was last modified.

      Parameters:
      lastModifiedTime - The date and time that the job was last modified.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • endTime

      Job.Builder endTime(Instant endTime)

      The date and time that the job ended.

      Parameters:
      endTime - The date and time that the job ended.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • jobStatus

      Job.Builder jobStatus(String jobStatus)

      The current status of the job.

      Parameters:
      jobStatus - The current status of the job.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • jobStatus

      Job.Builder jobStatus(JobStatus jobStatus)

      The current status of the job.

      Parameters:
      jobStatus - The current status of the job.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • secondaryStatus

      Job.Builder secondaryStatus(String secondaryStatus)

      The detailed secondary status of the job, providing more granular information about the job's progress.

      Parameters:
      secondaryStatus - The detailed secondary status of the job, providing more granular information about the job's progress.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • secondaryStatus

      Job.Builder secondaryStatus(JobSecondaryStatus secondaryStatus)

      The detailed secondary status of the job, providing more granular information about the job's progress.

      Parameters:
      secondaryStatus - The detailed secondary status of the job, providing more granular information about the job's progress.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • secondaryStatusTransitions

      Job.Builder secondaryStatusTransitions(Collection<JobSecondaryStatusTransition> secondaryStatusTransitions)

      A list of secondary status transitions for the job, with timestamps and optional status messages.

      Parameters:
      secondaryStatusTransitions - A list of secondary status transitions for the job, with timestamps and optional status messages.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • secondaryStatusTransitions

      Job.Builder secondaryStatusTransitions(JobSecondaryStatusTransition... secondaryStatusTransitions)

      A list of secondary status transitions for the job, with timestamps and optional status messages.

      Parameters:
      secondaryStatusTransitions - A list of secondary status transitions for the job, with timestamps and optional status messages.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • secondaryStatusTransitions

      Job.Builder secondaryStatusTransitions(Consumer<JobSecondaryStatusTransition.Builder>... secondaryStatusTransitions)

      A list of secondary status transitions for the job, with timestamps and optional status messages.

      This is a convenience method that creates an instance of the JobSecondaryStatusTransition.Builder avoiding the need to create one manually via JobSecondaryStatusTransition.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to secondaryStatusTransitions(List<JobSecondaryStatusTransition>).

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

      Job.Builder failureReason(String failureReason)

      If the job failed, the reason it failed.

      Parameters:
      failureReason - If the job failed, the reason it failed.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • tags

      Job.Builder tags(Collection<Tag> tags)

      The tags associated with the job.

      Parameters:
      tags - The tags associated with the job.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • tags

      Job.Builder tags(Tag... tags)

      The tags associated with the job.

      Parameters:
      tags - The tags associated with the job.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • tags

      The tags associated with the job.

      This is a convenience method that creates an instance of the Tag.Builder avoiding the need to create one manually via Tag.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to tags(List<Tag>).

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