Interface JobTemplate.Builder

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

public static interface JobTemplate.Builder extends SdkPojo, CopyableBuilder<JobTemplate.Builder,JobTemplate>
  • Method Details

    • name

      The name of the job template.

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

      The ID of the job template.

      Parameters:
      id - The ID of the job template.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • arn

      The ARN of the job template.

      Parameters:
      arn - The ARN of the job template.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • createdAt

      JobTemplate.Builder createdAt(Instant createdAt)

      The date and time when the job template was created.

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

      JobTemplate.Builder createdBy(String createdBy)

      The user who created the job template.

      Parameters:
      createdBy - The user who created the job template.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • tags

      The tags assigned to the job template.

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

      JobTemplate.Builder jobTemplateData(JobTemplateData jobTemplateData)

      The job template data which holds values of StartJobRun API request.

      Parameters:
      jobTemplateData - The job template data which holds values of StartJobRun API request.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • jobTemplateData

      default JobTemplate.Builder jobTemplateData(Consumer<JobTemplateData.Builder> jobTemplateData)

      The job template data which holds values of StartJobRun API request.

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

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

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

      JobTemplate.Builder kmsKeyArn(String kmsKeyArn)

      The KMS key ARN used to encrypt the job template.

      Parameters:
      kmsKeyArn - The KMS key ARN used to encrypt the job template.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • decryptionError

      JobTemplate.Builder decryptionError(String decryptionError)

      The error message in case the decryption of job template fails.

      Parameters:
      decryptionError - The error message in case the decryption of job template fails.
      Returns:
      Returns a reference to this object so that method calls can be chained together.