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 Summary
Modifier and TypeMethodDescriptioncompletedOn
(Instant completedOn) A timestamp of when the job was completed.default JobDetails.Builder
jobError
(Consumer<JobError.Builder> jobError) The job error for the policy generation request.The job error for the policy generation request.TheJobId
that is returned by theStartPolicyGeneration
operation.A timestamp of when the job was started.The status of the job request.The status of the job request.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
jobId
The
JobId
that is returned by theStartPolicyGeneration
operation. TheJobId
can be used withGetGeneratedPolicy
to retrieve the generated policies or used withCancelPolicyGeneration
to cancel the policy generation request.- Parameters:
jobId
- TheJobId
that is returned by theStartPolicyGeneration
operation. TheJobId
can be used withGetGeneratedPolicy
to retrieve the generated policies or used withCancelPolicyGeneration
to cancel the policy generation request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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
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
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
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
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
The job error for the policy generation request.
This is a convenience method that creates an instance of theJobError.Builder
avoiding the need to create one manually viaJobError.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tojobError(JobError)
.- Parameters:
jobError
- a consumer that will call methods onJobError.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-