Class TimestampFormatTrait
java.lang.Object
software.amazon.smithy.model.traits.AbstractTrait
software.amazon.smithy.model.traits.StringTrait
software.amazon.smithy.model.traits.TimestampFormatTrait
- All Implemented Interfaces:
FromSourceLocation
,ToNode
,ToShapeId
,Trait
Defines a custom serialization format for a timestamp.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
The knowntimestampFormat
values.static final class
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTimestampFormatTrait
(String value) TimestampFormatTrait
(String value, SourceLocation sourceLocation) -
Method Summary
Modifier and TypeMethodDescriptionGets thetimestampFormat
value as aFormat
enum.Methods inherited from class software.amazon.smithy.model.traits.StringTrait
createNode, getValue
Methods inherited from class software.amazon.smithy.model.traits.AbstractTrait
equals, getSourceLocation, hashCode, setNodeCache, toNode, toShapeId, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface software.amazon.smithy.model.traits.Trait
isSynthetic
-
Field Details
-
EPOCH_SECONDS
- See Also:
-
DATE_TIME
- See Also:
-
HTTP_DATE
- See Also:
-
ID
-
-
Constructor Details
-
TimestampFormatTrait
-
TimestampFormatTrait
-
-
Method Details
-
getFormat
Gets thetimestampFormat
value as aFormat
enum.- Returns:
- Returns the
Format
enum.
-