@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)
Marshalls this structured data using the given
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.TimeUnit
public String getUnit()
The unit of a maintenance schedule duration. Valid value is HOURS. See Auto-Tune for Amazon OpenSearch Service for more information.
TimeUnit
public 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.TimeUnit
public 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.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.