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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ServiceJobPreemptionSummary.BuilderpreemptedAttemptCount(Integer preemptedAttemptCount)The total number of times the service job has been preempted.ServiceJobPreemptionSummary.BuilderrecentPreemptedAttempts(Collection<ServiceJobPreemptedAttempt> recentPreemptedAttempts)A list of the most recent preemption attempts for the service job.ServiceJobPreemptionSummary.BuilderrecentPreemptedAttempts(Consumer<ServiceJobPreemptedAttempt.Builder>... recentPreemptedAttempts)A list of the most recent preemption attempts for the service job.ServiceJobPreemptionSummary.BuilderrecentPreemptedAttempts(ServiceJobPreemptedAttempt... recentPreemptedAttempts)A list of the most recent preemption attempts for the service 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 Detail
-
preemptedAttemptCount
ServiceJobPreemptionSummary.Builder preemptedAttemptCount(Integer 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 to#recentPreemptedAttempts(List.) - 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:
#recentPreemptedAttempts(java.util.Collection)
-
-