Class NumberToInstant
- java.lang.Object
-
- software.amazon.awssdk.protocols.core.NumberToInstant
-
@SdkProtectedApi public final class NumberToInstant extends Object
Converts a number value to anInstanttype. Respects theTimestampFormatTraitif present.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Instantconvert(Number value, SdkField<Instant> field)static NumberToInstantcreate(Map<MarshallLocation,TimestampFormatTrait.Format> defaultFormats)
-
-
-
Method Detail
-
create
public static NumberToInstant create(Map<MarshallLocation,TimestampFormatTrait.Format> defaultFormats)
- Parameters:
defaultFormats- Default formats for eachMarshallLocationas defined by the protocol.- Returns:
- New
StringToValueConverter.StringToValueforInstanttypes.
-
-