Interface ServiceJobPreemptionSummary.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<ServiceJobPreemptionSummary.Builder,,ServiceJobPreemptionSummary> SdkBuilder<ServiceJobPreemptionSummary.Builder,,ServiceJobPreemptionSummary> SdkPojo
- Enclosing class:
ServiceJobPreemptionSummary
@Mutable
@NotThreadSafe
public static interface ServiceJobPreemptionSummary.Builder
extends SdkPojo, CopyableBuilder<ServiceJobPreemptionSummary.Builder,ServiceJobPreemptionSummary>
-
Method Summary
Modifier and TypeMethodDescriptionpreemptedAttemptCount(Integer preemptedAttemptCount) The total number of times the service job has been preempted.recentPreemptedAttempts(Collection<ServiceJobPreemptedAttempt> recentPreemptedAttempts) A list of the most recent preemption attempts for the service job.recentPreemptedAttempts(Consumer<ServiceJobPreemptedAttempt.Builder>... recentPreemptedAttempts) A list of the most recent preemption attempts for the service job.recentPreemptedAttempts(ServiceJobPreemptedAttempt... recentPreemptedAttempts) A list of the most recent preemption attempts for the service job.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, sdkFieldNameToField, sdkFields
-
Method Details
-
preemptedAttemptCount
The total number of times the service job has been preempted.
- Parameters:
preemptedAttemptCount- The total number of times the service job has been preempted.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
recentPreemptedAttempts
ServiceJobPreemptionSummary.Builder recentPreemptedAttempts(Collection<ServiceJobPreemptedAttempt> recentPreemptedAttempts) A list of the most recent preemption attempts for the service job.
- Parameters:
recentPreemptedAttempts- A list of the most recent preemption attempts for the service job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
recentPreemptedAttempts
ServiceJobPreemptionSummary.Builder recentPreemptedAttempts(ServiceJobPreemptedAttempt... recentPreemptedAttempts) A list of the most recent preemption attempts for the service job.
- Parameters:
recentPreemptedAttempts- A list of the most recent preemption attempts for the service job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
recentPreemptedAttempts
ServiceJobPreemptionSummary.Builder recentPreemptedAttempts(Consumer<ServiceJobPreemptedAttempt.Builder>... recentPreemptedAttempts) A list of the most recent preemption attempts for the service job.
This is a convenience method that creates an instance of theServiceJobPreemptedAttempt.Builderavoiding the need to create one manually viaServiceJobPreemptedAttempt.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed torecentPreemptedAttempts(List<ServiceJobPreemptedAttempt>).- Parameters:
recentPreemptedAttempts- a consumer that will call methods onServiceJobPreemptedAttempt.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-