@Generated(value="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.
| 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()
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.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final Long value()
Integer to specify the value of a maintenance schedule duration. See the Developer Guide for more information.
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 return
TimeUnit.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
unitAsString().
TimeUnitpublic 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 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 © 2023. All rights reserved.