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.BuilderjobError(Consumer<JobError.Builder> jobError) The job error for the policy generation request.The job error for the policy generation request.TheJobIdthat is returned by theStartPolicyGenerationoperation.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
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
jobId
The
JobIdthat is returned by theStartPolicyGenerationoperation. TheJobIdcan be used withGetGeneratedPolicyto retrieve the generated policies or used withCancelPolicyGenerationto cancel the policy generation request.- Parameters:
jobId- TheJobIdthat is returned by theStartPolicyGenerationoperation. TheJobIdcan be used withGetGeneratedPolicyto retrieve the generated policies or used withCancelPolicyGenerationto 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.Builderavoiding the need to create one manually viaJobError.builder().When the
Consumercompletes,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:
-