Interface ProtectedJob.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<ProtectedJob.Builder,
,ProtectedJob> SdkBuilder<ProtectedJob.Builder,
,ProtectedJob> SdkPojo
- Enclosing class:
ProtectedJob
-
Method Summary
Modifier and TypeMethodDescriptioncreateTime
(Instant createTime) The creation time of the protected job.default ProtectedJob.Builder
error
(Consumer<ProtectedJobError.Builder> error) The error from the protected job.error
(ProtectedJobError error) The error from the protected job.The identifier for a protected job instance.default ProtectedJob.Builder
jobParameters
(Consumer<ProtectedJobParameters.Builder> jobParameters) The job parameters for the protected job.jobParameters
(ProtectedJobParameters jobParameters) The job parameters for the protected job.membershipArn
(String membershipArn) The ARN of the membership.membershipId
(String membershipId) he identifier for the membership.default ProtectedJob.Builder
result
(Consumer<ProtectedJobResult.Builder> result) The result of the protected job.result
(ProtectedJobResult result) The result of the protected job.default ProtectedJob.Builder
resultConfiguration
(Consumer<ProtectedJobResultConfigurationOutput.Builder> resultConfiguration) Contains any details needed to write the job results.resultConfiguration
(ProtectedJobResultConfigurationOutput resultConfiguration) Contains any details needed to write the job results.default ProtectedJob.Builder
statistics
(Consumer<ProtectedJobStatistics.Builder> statistics) The statistics of the protected job.statistics
(ProtectedJobStatistics statistics) The statistics of the protected job.The status of the protected job.status
(ProtectedJobStatus status) The status of the protected job.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, sdkFieldNameToField, sdkFields
-
Method Details
-
id
The identifier for a protected job instance.
- Parameters:
id
- The identifier for a protected job instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
membershipId
he identifier for the membership.
- Parameters:
membershipId
- he identifier for the membership.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
membershipArn
The ARN of the membership.
- Parameters:
membershipArn
- The ARN of the membership.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
createTime
The creation time of the protected job.
- Parameters:
createTime
- The creation time of the protected job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
jobParameters
The job parameters for the protected job.
- Parameters:
jobParameters
- The job parameters for the protected job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
jobParameters
The job parameters for the protected job.
This is a convenience method that creates an instance of theProtectedJobParameters.Builder
avoiding the need to create one manually viaProtectedJobParameters.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tojobParameters(ProtectedJobParameters)
.- Parameters:
jobParameters
- a consumer that will call methods onProtectedJobParameters.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
status
The status of the protected job.
- Parameters:
status
- The status of the protected job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
status
The status of the protected job.
- Parameters:
status
- The status of the protected job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
resultConfiguration
Contains any details needed to write the job results.
- Parameters:
resultConfiguration
- Contains any details needed to write the job results.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resultConfiguration
default ProtectedJob.Builder resultConfiguration(Consumer<ProtectedJobResultConfigurationOutput.Builder> resultConfiguration) Contains any details needed to write the job results.
This is a convenience method that creates an instance of theProtectedJobResultConfigurationOutput.Builder
avoiding the need to create one manually viaProtectedJobResultConfigurationOutput.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toresultConfiguration(ProtectedJobResultConfigurationOutput)
.- Parameters:
resultConfiguration
- a consumer that will call methods onProtectedJobResultConfigurationOutput.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
statistics
The statistics of the protected job.
- Parameters:
statistics
- The statistics of the protected job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
statistics
The statistics of the protected job.
This is a convenience method that creates an instance of theProtectedJobStatistics.Builder
avoiding the need to create one manually viaProtectedJobStatistics.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tostatistics(ProtectedJobStatistics)
.- Parameters:
statistics
- a consumer that will call methods onProtectedJobStatistics.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
result
The result of the protected job.
- Parameters:
result
- The result of the protected job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
result
The result of the protected job.
This is a convenience method that creates an instance of theProtectedJobResult.Builder
avoiding the need to create one manually viaProtectedJobResult.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toresult(ProtectedJobResult)
.- Parameters:
result
- a consumer that will call methods onProtectedJobResult.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
error
The error from the protected job.
- Parameters:
error
- The error from the protected job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
error
The error from the protected job.
This is a convenience method that creates an instance of theProtectedJobError.Builder
avoiding the need to create one manually viaProtectedJobError.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toerror(ProtectedJobError)
.- Parameters:
error
- a consumer that will call methods onProtectedJobError.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-