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 enumThe knowntimestampFormatvalues.static final class -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTimestampFormatTrait(String value) TimestampFormatTrait(String value, SourceLocation sourceLocation) -
Method Summary
Modifier and TypeMethodDescriptionGets thetimestampFormatvalue as aFormatenum.Methods inherited from class software.amazon.smithy.model.traits.StringTrait
createNode, getValueMethods inherited from class software.amazon.smithy.model.traits.AbstractTrait
equals, getSourceLocation, hashCode, setNodeCache, toNode, toShapeId, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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 thetimestampFormatvalue as aFormatenum.- Returns:
- Returns the
Formatenum.
-