Class TimestampFormatTrait
- java.lang.Object
-
- software.amazon.awssdk.core.traits.TimestampFormatTrait
-
- All Implemented Interfaces:
Trait
public final class TimestampFormatTrait extends Object implements Trait
Trait that indicates a different format should be used for marshalling/unmarshalling timestamps. If not present the protocol will determine the default format to use based on the location (i.e. for JSON protocol headers are ISO8601 but timestamps in the payload are epoch seconds with millisecond decimal precision).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TimestampFormatTrait.Format
Enum of the timestamp formats we currently support.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TimestampFormatTrait
create(TimestampFormatTrait.Format timestampFormat)
TimestampFormatTrait.Format
format()
-
-
-
Method Detail
-
format
public TimestampFormatTrait.Format format()
- Returns:
- Format to use.
-
create
public static TimestampFormatTrait create(TimestampFormatTrait.Format timestampFormat)
-
-