Class NumberToInstant
- java.lang.Object
-
- software.amazon.awssdk.protocols.core.NumberToInstant
-
public final class NumberToInstant extends Object
Converts a number value to anInstant
type. Respects theTimestampFormatTrait
if present.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Instant
convert(Number value, SdkField<Instant> field)
static NumberToInstant
create(Map<MarshallLocation,TimestampFormatTrait.Format> defaultFormats)
-
-
-
Method Detail
-
create
public static NumberToInstant create(Map<MarshallLocation,TimestampFormatTrait.Format> defaultFormats)
- Parameters:
defaultFormats
- Default formats for eachMarshallLocation
as defined by the protocol.- Returns:
- New
StringToValueConverter.StringToValue
forInstant
types.
-
-