Class Duration
- java.lang.Object
-
- software.amazon.awssdk.services.opensearch.model.Duration
-
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<Duration.Builder,Duration>
@Generated("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.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
Duration.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Duration.Builder
builder()
boolean
equals(Object obj)
boolean
equalsBySdkFields(Object obj)
<T> Optional<T>
getValueForField(String fieldName, Class<T> clazz)
int
hashCode()
Map<String,SdkField<?>>
sdkFieldNameToField()
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.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
value
public final Long value()
Integer to specify the value of a maintenance schedule duration.
- Returns:
- Integer to specify the value of a maintenance schedule duration.
-
unit
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 returnTimeUnit.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromunitAsString()
.- Returns:
- The unit of measurement for the duration of a maintenance schedule.
- See Also:
TimeUnit
-
unitAsString
public 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 returnTimeUnit.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromunitAsString()
.- Returns:
- The unit of measurement for the duration of a maintenance schedule.
- See Also:
TimeUnit
-
toBuilder
public Duration.Builder toBuilder()
- Specified by:
toBuilder
in interfaceToCopyableBuilder<Duration.Builder,Duration>
-
builder
public static Duration.Builder builder()
-
serializableBuilderClass
public static Class<? extends Duration.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFields
in interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToField
in interfaceSdkPojo
-
-