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 SummaryNested ClassesModifier and TypeClassDescriptionstatic enumThe knowntimestampFormatvalues.static final class
- 
Field SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionTimestampFormatTrait(String value) TimestampFormatTrait(String value, SourceLocation sourceLocation) 
- 
Method SummaryModifier and TypeMethodDescriptionGets thetimestampFormatvalue as aFormatenum.Methods inherited from class software.amazon.smithy.model.traits.StringTraitcreateNode, getValueMethods inherited from class software.amazon.smithy.model.traits.AbstractTraitequals, getSourceLocation, hashCode, setNodeCache, toNode, toShapeId, toStringMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.smithy.model.traits.TraitisSynthetic
- 
Field Details- 
EPOCH_SECONDS- See Also:
 
- 
DATE_TIME- See Also:
 
- 
HTTP_DATE- See Also:
 
- 
ID
 
- 
- 
Constructor Details- 
TimestampFormatTrait
- 
TimestampFormatTrait
 
- 
- 
Method Details- 
getFormatGets thetimestampFormatvalue as aFormatenum.- Returns:
- Returns the Formatenum.
 
 
-