Class RetryStrategy
- java.lang.Object
-
- software.amazon.awssdk.services.sagemaker.model.RetryStrategy
-
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<RetryStrategy.Builder,RetryStrategy>
@Generated("software.amazon.awssdk:codegen") public final class RetryStrategy extends Object implements SdkPojo, Serializable, ToCopyableBuilder<RetryStrategy.Builder,RetryStrategy>
The retry strategy to use when a training job fails due to an
InternalServerError
.RetryStrategy
is specified as part of theCreateTrainingJob
andCreateHyperParameterTuningJob
requests. You can add theStoppingCondition
parameter to the request to limit the training time for the complete job.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
RetryStrategy.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RetryStrategy.Builder
builder()
boolean
equals(Object obj)
boolean
equalsBySdkFields(Object obj)
<T> Optional<T>
getValueForField(String fieldName, Class<T> clazz)
int
hashCode()
Integer
maximumRetryAttempts()
The number of times to retry the job.List<SdkField<?>>
sdkFields()
static Class<? extends RetryStrategy.Builder>
serializableBuilderClass()
RetryStrategy.Builder
toBuilder()
String
toString()
Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
maximumRetryAttempts
public final Integer maximumRetryAttempts()
The number of times to retry the job. When the job is retried, it's
SecondaryStatus
is changed toSTARTING
.- Returns:
- The number of times to retry the job. When the job is retried, it's
SecondaryStatus
is changed toSTARTING
.
-
toBuilder
public RetryStrategy.Builder toBuilder()
- Specified by:
toBuilder
in interfaceToCopyableBuilder<RetryStrategy.Builder,RetryStrategy>
-
builder
public static RetryStrategy.Builder builder()
-
serializableBuilderClass
public static Class<? extends RetryStrategy.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFields
in interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-