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 toRUNNABLE
status.evaluateOnExit
(Collection<ServiceJobEvaluateOnExit> evaluateOnExit) Array ofServiceJobEvaluateOnExit
objects that specify conditions under which the service job should be retried or failed.evaluateOnExit
(Consumer<ServiceJobEvaluateOnExit.Builder>... evaluateOnExit) Array ofServiceJobEvaluateOnExit
objects that specify conditions under which the service job should be retried or failed.evaluateOnExit
(ServiceJobEvaluateOnExit... evaluateOnExit) Array ofServiceJobEvaluateOnExit
objects 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 Details
-
attempts
The number of times to move a service job to
RUNNABLE
status. You can specify between 1 and 10 attempts.- Parameters:
attempts
- The number of times to move a service job toRUNNABLE
status. 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
ServiceJobEvaluateOnExit
objects that specify conditions under which the service job should be retried or failed.- Parameters:
evaluateOnExit
- Array ofServiceJobEvaluateOnExit
objects 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
ServiceJobEvaluateOnExit
objects that specify conditions under which the service job should be retried or failed.- Parameters:
evaluateOnExit
- Array ofServiceJobEvaluateOnExit
objects 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 theServiceJobEvaluateOnExit
objects that specify conditions under which the service job should be retried or failed.ServiceJobEvaluateOnExit.Builder
avoiding the need to create one manually viaServiceJobEvaluateOnExit.builder()
.When the
Consumer
completes,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:
-