@Generated(value="software.amazon.awssdk:codegen") public final class Duration extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Duration.Builder,Duration>
The duration of a maintenance schedule. For more information, see Auto-Tune for Amazon OpenSearch Service.
| Modifier and Type | Class and Description |
|---|---|
static interface |
Duration.Builder |
| Modifier and Type | Method and Description |
|---|---|
static Duration.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
List<SdkField<?>> |
sdkFields() |
static Class<? extends Duration.Builder> |
serializableBuilderClass() |
Duration.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
TimeUnit |
unit()
The unit of measurement for the duration of a maintenance schedule.
|
String |
unitAsString()
The unit of measurement for the duration of a maintenance schedule.
|
Long |
value()
Integer to specify the value of a maintenance schedule duration.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final Long value()
Integer to specify the value of a maintenance schedule duration.
public final TimeUnit unit()
The unit of measurement for the duration of a maintenance schedule.
If the service returns an enum value that is not available in the current SDK version, unit will return
TimeUnit.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
unitAsString().
TimeUnitpublic final String unitAsString()
The unit of measurement for the duration of a maintenance schedule.
If the service returns an enum value that is not available in the current SDK version, unit will return
TimeUnit.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
unitAsString().
TimeUnitpublic Duration.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<Duration.Builder,Duration>public static Duration.Builder builder()
public static Class<? extends Duration.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2022. All rights reserved.