Class InstantToString
java.lang.Object
software.amazon.awssdk.protocols.core.InstantToString
- All Implemented Interfaces:
ValueToStringConverter.ValueToString<Instant>
public final class InstantToString
extends Object
implements ValueToStringConverter.ValueToString<Instant>
Implementation of
ValueToStringConverter.ValueToString
that converts and Instant
to a string. * Respects the
TimestampFormatTrait
if present.-
Method Summary
Modifier and TypeMethodDescriptionConverts the value to a string.static InstantToString
create
(Map<MarshallLocation, TimestampFormatTrait.Format> defaultFormats)
-
Method Details
-
convert
Description copied from interface:ValueToStringConverter.ValueToString
Converts the value to a string.- Specified by:
convert
in interfaceValueToStringConverter.ValueToString<Instant>
- Parameters:
val
- Value to convert.sdkField
-SdkField
containing metadata about the member being marshalled.- Returns:
- String value.
-
create
public static InstantToString create(Map<MarshallLocation, TimestampFormatTrait.Format> defaultFormats)
-