Serializable
, Comparable<Duration>
@Generated("software.amazon.awssdk:codegen") public enum Duration extends Enum<Duration>
Modifier and Type | Method | Description |
---|---|---|
static Duration |
fromValue(String value) |
Use this in place of valueOf.
|
String |
toString() |
|
static Duration |
valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static Duration[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Duration HR_24
public static final Duration DAY_7
public static final Duration DAY_14
public static final Duration DAY_30
public static Duration[] values()
for (Duration c : Duration.values()) System.out.println(c);
public static Duration valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2017 Amazon Web Services, Inc. All Rights Reserved.