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 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()
List<SdkField<?>>
sdkFields()
static Class<? extends Duration.Builder>
serializableBuilderClass()
Duration.Builder
toBuilder()
String
toString()
Returns a string representation of this object.TimeUnit
unit()
Specifies the unit of a maintenance schedule duration.String
unitAsString()
Specifies the unit of a maintenance schedule duration.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. 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,
unit
will 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,
unit
will 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:
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.
-
-