public final class InstantToString extends Object implements ValueToStringConverter.ValueToString<Instant>
ValueToStringConverter.ValueToString that converts and Instant to a string. * Respects the
TimestampFormatTrait if present.| Modifier and Type | Method and Description |
|---|---|
String |
convert(Instant val,
SdkField<Instant> sdkField)
Converts the value to a string.
|
static InstantToString |
create(Map<MarshallLocation,TimestampFormatTrait.Format> defaultFormats) |
public String convert(Instant val, SdkField<Instant> sdkField)
ValueToStringConverter.ValueToStringconvert in interface ValueToStringConverter.ValueToString<Instant>val - Value to convert.sdkField - SdkField containing metadata about the member being marshalled.public static InstantToString create(Map<MarshallLocation,TimestampFormatTrait.Format> defaultFormats)
Copyright © 2021. All rights reserved.