Interface JobDetails.Builder

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

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

    • jobId

      JobDetails.Builder jobId(String jobId)

      The JobId that is returned by the StartPolicyGeneration operation. The JobId can be used with GetGeneratedPolicy to retrieve the generated policies or used with CancelPolicyGeneration to cancel the policy generation request.

      Parameters:
      jobId - The JobId that is returned by the StartPolicyGeneration operation. The JobId can be used with GetGeneratedPolicy to retrieve the generated policies or used with CancelPolicyGeneration to cancel the policy generation request.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • status

      JobDetails.Builder status(String status)

      The status of the job request.

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

      JobDetails.Builder status(JobStatus status)

      The status of the job request.

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

      JobDetails.Builder startedOn(Instant startedOn)

      A timestamp of when the job was started.

      Parameters:
      startedOn - A timestamp of when the job was started.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • completedOn

      JobDetails.Builder completedOn(Instant completedOn)

      A timestamp of when the job was completed.

      Parameters:
      completedOn - A timestamp of when the job was completed.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • jobError

      JobDetails.Builder jobError(JobError jobError)

      The job error for the policy generation request.

      Parameters:
      jobError - The job error for the policy generation request.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • jobError

      default JobDetails.Builder jobError(Consumer<JobError.Builder> jobError)

      The job error for the policy generation request.

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

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

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