@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Duration extends Object implements Serializable, Cloneable, StructuredPojo
The maintenance schedule duration: duration value and duration unit. See Auto-Tune for Amazon OpenSearch Service for more information.
| Constructor and Description |
|---|
Duration() |
| Modifier and Type | Method and Description |
|---|---|
Duration |
clone() |
boolean |
equals(Object obj) |
String |
getUnit()
The unit of a maintenance schedule duration.
|
Long |
getValue()
Integer to specify the value of a maintenance schedule duration.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setUnit(String unit)
The unit of a maintenance schedule duration.
|
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 a maintenance schedule duration.
|
Duration |
withUnit(TimeUnit unit)
The unit of a maintenance schedule duration.
|
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. See Auto-Tune for Amazon OpenSearch Service for more information.
value - Integer to specify the value of a maintenance schedule duration. See Auto-Tune for Amazon OpenSearch Service for more information.public Long getValue()
Integer to specify the value of a maintenance schedule duration. See Auto-Tune for Amazon OpenSearch Service for more information.
public Duration withValue(Long value)
Integer to specify the value of a maintenance schedule duration. See Auto-Tune for Amazon OpenSearch Service for more information.
value - Integer to specify the value of a maintenance schedule duration. See Auto-Tune for Amazon OpenSearch Service for more information.public void setUnit(String unit)
The unit of a maintenance schedule duration. Valid value is HOURS. See Auto-Tune for Amazon OpenSearch Service for more information.
unit - The unit of a maintenance schedule duration. Valid value is HOURS. See Auto-Tune for Amazon OpenSearch Service for more information.TimeUnitpublic String getUnit()
The unit of a maintenance schedule duration. Valid value is HOURS. See Auto-Tune for Amazon OpenSearch Service for more information.
TimeUnitpublic Duration withUnit(String unit)
The unit of a maintenance schedule duration. Valid value is HOURS. See Auto-Tune for Amazon OpenSearch Service for more information.
unit - The unit of a maintenance schedule duration. Valid value is HOURS. See Auto-Tune for Amazon OpenSearch Service for more information.TimeUnitpublic Duration withUnit(TimeUnit unit)
The unit of a maintenance schedule duration. Valid value is HOURS. See Auto-Tune for Amazon OpenSearch Service for more information.
unit - The unit of a maintenance schedule duration. Valid value is HOURS. See Auto-Tune for Amazon OpenSearch Service for more information.TimeUnitpublic String toString()
toString in class ObjectObject.toString()public void marshall(ProtocolMarshaller protocolMarshaller)
marshall in interface StructuredPojoCopyright © 2022. All rights reserved.