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.ValueToStringthat converts andInstantto a string. * Respects theTimestampFormatTraitif present.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringconvert(Instant val, SdkField<Instant> sdkField)Converts the value to a string.static InstantToStringcreate(Map<MarshallLocation,TimestampFormatTrait.Format> defaultFormats)
-
-
-
Method Detail
-
convert
public String convert(Instant val, SdkField<Instant> sdkField)
Description copied from interface:ValueToStringConverter.ValueToStringConverts the value to a string.- Specified by:
convertin interfaceValueToStringConverter.ValueToString<Instant>- Parameters:
val- Value to convert.sdkField-SdkFieldcontaining metadata about the member being marshalled.- Returns:
- String value.
-
create
public static InstantToString create(Map<MarshallLocation,TimestampFormatTrait.Format> defaultFormats)
-
-