@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Duration extends Object implements Serializable, Cloneable, StructuredPojo
An object representing the duration between retry attempts.
| Constructor and Description |
|---|
Duration() |
| Modifier and Type | Method and Description |
|---|---|
Duration |
clone() |
boolean |
equals(Object obj) |
String |
getUnit()
The unit of time between retry attempts.
|
Long |
getValue()
The duration of time between retry attempts.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setUnit(String unit)
The unit of time between retry attempts.
|
void |
setValue(Long value)
The duration of time between retry attempts.
|
String |
toString()
Returns a string representation of this object.
|
Duration |
withUnit(DurationUnit unit)
The unit of time between retry attempts.
|
Duration |
withUnit(String unit)
The unit of time between retry attempts.
|
Duration |
withValue(Long value)
The duration of time between retry attempts.
|
public void setUnit(String unit)
The unit of time between retry attempts.
unit - The unit of time between retry attempts.DurationUnitpublic String getUnit()
The unit of time between retry attempts.
DurationUnitpublic Duration withUnit(String unit)
The unit of time between retry attempts.
unit - The unit of time between retry attempts.DurationUnitpublic Duration withUnit(DurationUnit unit)
The unit of time between retry attempts.
unit - The unit of time between retry attempts.DurationUnitpublic void setValue(Long value)
The duration of time between retry attempts.
value - The duration of time between retry attempts.public Long getValue()
The duration of time between retry attempts.
public Duration withValue(Long value)
The duration of time between retry attempts.
value - The duration of time between retry attempts.public String toString()
toString in class ObjectObject.toString()public void marshall(ProtocolMarshaller protocolMarshaller)
marshall in interface StructuredPojoCopyright © 2019. All rights reserved.