@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Duration extends Object implements Serializable, Cloneable, StructuredPojo
The duration of a maintenance schedule. For more information, see Auto-Tune for Amazon OpenSearch Service.
Constructor and Description |
---|
Duration() |
Modifier and Type | Method and Description |
---|---|
Duration |
clone() |
boolean |
equals(Object obj) |
String |
getUnit()
The unit of measurement for the duration of a maintenance schedule.
|
Long |
getValue()
Integer to specify the value of a maintenance schedule duration.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setUnit(String unit)
The unit of measurement for the duration of a maintenance schedule.
|
void |
setValue(Long value)
Integer to specify the value of a maintenance schedule duration.
|
String |
toString()
Returns a string representation of this object.
|
Duration |
withUnit(String unit)
The unit of measurement for the duration of a maintenance schedule.
|
Duration |
withUnit(TimeUnit unit)
The unit of measurement for the duration of a maintenance schedule.
|
Duration |
withValue(Long value)
Integer to specify the value of a maintenance schedule duration.
|
public void setValue(Long value)
Integer to specify the value of a maintenance schedule duration.
value
- Integer to specify the value of a maintenance schedule duration.public Long getValue()
Integer to specify the value of a maintenance schedule duration.
public Duration withValue(Long value)
Integer to specify the value of a maintenance schedule duration.
value
- Integer to specify the value of a maintenance schedule duration.public void setUnit(String unit)
The unit of measurement for the duration of a maintenance schedule.
unit
- The unit of measurement for the duration of a maintenance schedule.TimeUnit
public String getUnit()
The unit of measurement for the duration of a maintenance schedule.
TimeUnit
public Duration withUnit(String unit)
The unit of measurement for the duration of a maintenance schedule.
unit
- The unit of measurement for the duration of a maintenance schedule.TimeUnit
public Duration withUnit(TimeUnit unit)
The unit of measurement for the duration of a maintenance schedule.
unit
- The unit of measurement for the duration of a maintenance schedule.TimeUnit
public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.