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 ofValueToStringConverter.ValueToString
that converts andInstant
to a string. * Respects theTimestampFormatTrait
if present.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
convert(Instant val, SdkField<Instant> sdkField)
Converts the value to a string.static InstantToString
create(Map<MarshallLocation,TimestampFormatTrait.Format> defaultFormats)
-
-
-
Method Detail
-
convert
public String convert(Instant val, SdkField<Instant> sdkField)
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)
-
-