Interface DateTimeSetField
- All Superinterfaces:
CustomField
A field with a date time set value.
Example to create an instance using the builder pattern
DateTimeSetField dateTimeSetField = DateTimeSetField.builder()
.plusValue(valueBuilder -> valueBuilder)
.build()
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic DateTimeSetFieldBuilderbuilder()builder factory method for DateTimeSetFieldstatic DateTimeSetFieldBuilderbuilder(DateTimeSetField template) create builder for DateTimeSetField instancecopyDeep()static DateTimeSetFielddeepCopy(DateTimeSetField template) factory method to create a deep copy of DateTimeSetField@NotNull List<ZonedDateTime>getValue()JSON array of date time values in the formatYYYY-MM-DDTHH:mm:ss.SSSZwithout duplicates.static DateTimeSetFieldof()factory methodstatic DateTimeSetFieldof(DateTimeSetField template) factory method to create a shallow copy DateTimeSetFieldvoidsetValue(ZonedDateTime... value) JSON array of date time values in the formatYYYY-MM-DDTHH:mm:ss.SSSZwithout duplicates.voidsetValue(List<ZonedDateTime> value) JSON array of date time values in the formatYYYY-MM-DDTHH:mm:ss.SSSZwithout duplicates.static com.fasterxml.jackson.core.type.TypeReference<DateTimeSetField>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithDateTimeSetField(Function<DateTimeSetField, T> helper) accessor map functionMethods inherited from interface com.commercetools.importapi.models.customfields.CustomField
getType, withCustomField
-
Field Details
-
DATE_TIME_SET
discriminator value for DateTimeSetField- See Also:
-
-
Method Details
-
getValue
JSON array of date time values in the format
YYYY-MM-DDTHH:mm:ss.SSSZwithout duplicates. The time zone is optional and defaults to UTC if not specified. If the time zone is specified, it must be in the format±HH:mmorZfor UTC. The order of items in the array is not fixed.- Returns:
- value
-
setValue
JSON array of date time values in the format
YYYY-MM-DDTHH:mm:ss.SSSZwithout duplicates. The time zone is optional and defaults to UTC if not specified. If the time zone is specified, it must be in the format±HH:mmorZfor UTC. The order of items in the array is not fixed.- Parameters:
value- values to be set
-
setValue
JSON array of date time values in the format
YYYY-MM-DDTHH:mm:ss.SSSZwithout duplicates. The time zone is optional and defaults to UTC if not specified. If the time zone is specified, it must be in the format±HH:mmorZfor UTC. The order of items in the array is not fixed.- Parameters:
value- values to be set
-
of
factory method- Returns:
- instance of DateTimeSetField
-
of
factory method to create a shallow copy DateTimeSetField- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
DateTimeSetField copyDeep()- Specified by:
copyDeepin interfaceCustomField
-
deepCopy
factory method to create a deep copy of DateTimeSetField- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for DateTimeSetField- Returns:
- builder
-
builder
create builder for DateTimeSetField instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withDateTimeSetField
accessor map function- Type Parameters:
T- mapped type- Parameters:
helper- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-