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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ServiceJobRetryStrategy.Builderattempts(Integer attempts)The number of times to move a service job toRUNNABLEstatus.ServiceJobRetryStrategy.BuilderevaluateOnExit(Collection<ServiceJobEvaluateOnExit> evaluateOnExit)Array ofServiceJobEvaluateOnExitobjects that specify conditions under which the service job should be retried or failed.ServiceJobRetryStrategy.BuilderevaluateOnExit(Consumer<ServiceJobEvaluateOnExit.Builder>... evaluateOnExit)Array ofServiceJobEvaluateOnExitobjects that specify conditions under which the service job should be retried or failed.ServiceJobRetryStrategy.BuilderevaluateOnExit(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
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
-
attempts
ServiceJobRetryStrategy.Builder attempts(Integer 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
ServiceJobRetryStrategy.Builder evaluateOnExit(Collection<ServiceJobEvaluateOnExit> 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(ServiceJobEvaluateOnExit... 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 to#evaluateOnExit(List.) - 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:
#evaluateOnExit(java.util.Collection)
-
-