Enum TimestampFormatTrait.Format
- java.lang.Object
-
- java.lang.Enum<TimestampFormatTrait.Format>
-
- software.amazon.smithy.model.traits.TimestampFormatTrait.Format
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<TimestampFormatTrait.Format>
- Enclosing class:
- TimestampFormatTrait
public static enum TimestampFormatTrait.Format extends java.lang.Enum<TimestampFormatTrait.Format>
The knowntimestampFormat
values.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DATE_TIME
EPOCH_SECONDS
HTTP_DATE
UNKNOWN
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TimestampFormatTrait.Format
fromString(java.lang.String value)
Create aFormat
from a string that would appear in a model.java.lang.String
toString()
static TimestampFormatTrait.Format
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static TimestampFormatTrait.Format[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
EPOCH_SECONDS
public static final TimestampFormatTrait.Format EPOCH_SECONDS
-
DATE_TIME
public static final TimestampFormatTrait.Format DATE_TIME
-
HTTP_DATE
public static final TimestampFormatTrait.Format HTTP_DATE
-
UNKNOWN
public static final TimestampFormatTrait.Format UNKNOWN
-
-
Method Detail
-
values
public static TimestampFormatTrait.Format[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (TimestampFormatTrait.Format c : TimestampFormatTrait.Format.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TimestampFormatTrait.Format valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
fromString
public static TimestampFormatTrait.Format fromString(java.lang.String value)
Create aFormat
from a string that would appear in a model.Any unknown value is returned as
Unknown
.- Parameters:
value
- Value from a trait or model.- Returns:
- Returns the Format enum value.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Enum<TimestampFormatTrait.Format>
-
-