Class Duration
- java.lang.Object
-
- software.amazon.awssdk.services.elasticsearch.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>
Specifies maintenance schedule duration: duration value and duration unit. See the Developer Guide for more information.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceDuration.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Duration.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends Duration.Builder>serializableBuilderClass()Duration.BuildertoBuilder()StringtoString()Returns a string representation of this object.TimeUnitunit()Specifies the unit of a maintenance schedule duration.StringunitAsString()Specifies the unit of a maintenance schedule duration.Longvalue()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. See the Developer Guide for more information.
- Returns:
- Integer to specify the value of a maintenance schedule duration. See the Developer Guide for more information.
-
unit
public final TimeUnit unit()
Specifies the unit of a maintenance schedule duration. Valid value is HOURS. See the Developer Guide for more information.
If the service returns an enum value that is not available in the current SDK version,
unitwill returnTimeUnit.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromunitAsString().- Returns:
- Specifies the unit of a maintenance schedule duration. Valid value is HOURS. See the Developer Guide for more information.
- See Also:
TimeUnit
-
unitAsString
public final String unitAsString()
Specifies the unit of a maintenance schedule duration. Valid value is HOURS. See the Developer Guide for more information.
If the service returns an enum value that is not available in the current SDK version,
unitwill returnTimeUnit.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromunitAsString().- Returns:
- Specifies the unit of a maintenance schedule duration. Valid value is HOURS. See the Developer Guide for more information.
- See Also:
TimeUnit
-
toBuilder
public Duration.Builder toBuilder()
- Specified by:
toBuilderin 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:
equalsBySdkFieldsin 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:
sdkFieldNameToFieldin interfaceSdkPojo
-
-