Interface ServiceJobRetryStrategy.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<ServiceJobRetryStrategy.Builder,,ServiceJobRetryStrategy> SdkBuilder<ServiceJobRetryStrategy.Builder,,ServiceJobRetryStrategy> SdkPojo
- Enclosing class:
ServiceJobRetryStrategy
@Mutable
@NotThreadSafe
public static interface ServiceJobRetryStrategy.Builder
extends SdkPojo, CopyableBuilder<ServiceJobRetryStrategy.Builder,ServiceJobRetryStrategy>
-
Method Summary
Modifier and TypeMethodDescriptionThe number of times to move a service job toRUNNABLEstatus.evaluateOnExit(Collection<ServiceJobEvaluateOnExit> evaluateOnExit) Array ofServiceJobEvaluateOnExitobjects that specify conditions under which the service job should be retried or failed.evaluateOnExit(Consumer<ServiceJobEvaluateOnExit.Builder>... evaluateOnExit) Array ofServiceJobEvaluateOnExitobjects that specify conditions under which the service job should be retried or failed.evaluateOnExit(ServiceJobEvaluateOnExit... evaluateOnExit) Array ofServiceJobEvaluateOnExitobjects that specify conditions under which the service job should be retried or failed.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
-
attempts
The number of times to move a service job to
RUNNABLEstatus. You can specify between 1 and 10 attempts.- Parameters:
attempts- The number of times to move a service job toRUNNABLEstatus. You can specify between 1 and 10 attempts.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
evaluateOnExit
Array of
ServiceJobEvaluateOnExitobjects that specify conditions under which the service job should be retried or failed.- Parameters:
evaluateOnExit- Array ofServiceJobEvaluateOnExitobjects that specify conditions under which the service job should be retried or failed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
evaluateOnExit
Array of
ServiceJobEvaluateOnExitobjects that specify conditions under which the service job should be retried or failed.- Parameters:
evaluateOnExit- Array ofServiceJobEvaluateOnExitobjects that specify conditions under which the service job should be retried or failed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
evaluateOnExit
ServiceJobRetryStrategy.Builder evaluateOnExit(Consumer<ServiceJobEvaluateOnExit.Builder>... evaluateOnExit) Array of
This is a convenience method that creates an instance of theServiceJobEvaluateOnExitobjects that specify conditions under which the service job should be retried or failed.ServiceJobEvaluateOnExit.Builderavoiding the need to create one manually viaServiceJobEvaluateOnExit.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toevaluateOnExit(List<ServiceJobEvaluateOnExit>).- Parameters:
evaluateOnExit- a consumer that will call methods onServiceJobEvaluateOnExit.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-