Interface GetJobResponse.Builder

  • Method Details

    • jobId

      The unique identifier of the asynchronous job. Use the GetJob operation to check the status of the job and to retrieve its results.

      Parameters:
      jobId - The unique identifier of the asynchronous job. Use the GetJob operation to check the status of the job and to retrieve its results.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • status

      The current lifecycle status of the job.

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

      The current lifecycle status of the job.

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

      GetJobResponse.Builder operationType(String operationType)

      The type of mutating operation that created the job.

      Parameters:
      operationType - The type of mutating operation that created the job.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • createdAt

      GetJobResponse.Builder createdAt(Instant createdAt)

      The time when the resource was created, in Unix epoch time.

      Parameters:
      createdAt - The time when the resource was created, in Unix epoch time.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • updatedAt

      GetJobResponse.Builder updatedAt(Instant updatedAt)

      The time when the resource was last updated, in Unix epoch time.

      Parameters:
      updatedAt - The time when the resource was last updated, in Unix epoch time.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • brandProfileId

      GetJobResponse.Builder brandProfileId(String brandProfileId)

      The brand profile that the job operates on. This value is absent for operations that create a brand profile.

      Parameters:
      brandProfileId - The brand profile that the job operates on. This value is absent for operations that create a brand profile.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • errorCode

      GetJobResponse.Builder errorCode(String errorCode)

      A machine-readable code that identifies why the job failed. This value is present only when the job status is FAILED.

      Parameters:
      errorCode - A machine-readable code that identifies why the job failed. This value is present only when the job status is FAILED.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • errorMessage

      GetJobResponse.Builder errorMessage(String errorMessage)

      A human-readable description of why the job failed. This value is present only when the job status is FAILED.

      Parameters:
      errorMessage - A human-readable description of why the job failed. This value is present only when the job status is FAILED.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • resources

      The resources that were created or updated by the job.

      Parameters:
      resources - The resources that were created or updated by the job.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • resources

      GetJobResponse.Builder resources(JobResource... resources)

      The resources that were created or updated by the job.

      Parameters:
      resources - The resources that were created or updated by the job.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • resources

      The resources that were created or updated by the job.

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

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

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