@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class RetryStrategy extends Object implements Serializable, Cloneable, StructuredPojo
The retry strategy to use when a training job fails due to an InternalServerError
.
RetryStrategy
is specified as part of the CreateTrainingJob
and
CreateHyperParameterTuningJob
requests. You can add the StoppingCondition
parameter to the
request to limit the training time for the complete job.
Constructor and Description |
---|
RetryStrategy() |
Modifier and Type | Method and Description |
---|---|
RetryStrategy |
clone() |
boolean |
equals(Object obj) |
Integer |
getMaximumRetryAttempts()
The number of times to retry the job.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setMaximumRetryAttempts(Integer maximumRetryAttempts)
The number of times to retry the job.
|
String |
toString()
Returns a string representation of this object.
|
RetryStrategy |
withMaximumRetryAttempts(Integer maximumRetryAttempts)
The number of times to retry the job.
|
public void setMaximumRetryAttempts(Integer maximumRetryAttempts)
The number of times to retry the job. When the job is retried, it's SecondaryStatus
is changed to
STARTING
.
maximumRetryAttempts
- The number of times to retry the job. When the job is retried, it's SecondaryStatus
is
changed to STARTING
.public Integer getMaximumRetryAttempts()
The number of times to retry the job. When the job is retried, it's SecondaryStatus
is changed to
STARTING
.
SecondaryStatus
is
changed to STARTING
.public RetryStrategy withMaximumRetryAttempts(Integer maximumRetryAttempts)
The number of times to retry the job. When the job is retried, it's SecondaryStatus
is changed to
STARTING
.
maximumRetryAttempts
- The number of times to retry the job. When the job is retried, it's SecondaryStatus
is
changed to STARTING
.public String toString()
toString
in class Object
Object.toString()
public RetryStrategy clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.