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 DateTimeSetFieldBuilder
builder()
builder factory method for DateTimeSetFieldstatic DateTimeSetFieldBuilder
builder
(DateTimeSetField template) create builder for DateTimeSetField instancecopyDeep()
static DateTimeSetField
deepCopy
(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.SSSZ
without duplicates.static DateTimeSetField
of()
factory methodstatic DateTimeSetField
of
(DateTimeSetField template) factory method to create a shallow copy DateTimeSetFieldvoid
setValue
(ZonedDateTime... value) JSON array of date time values in the formatYYYY-MM-DDTHH:mm:ss.SSSZ
without duplicates.void
setValue
(List<ZonedDateTime> value) JSON array of date time values in the formatYYYY-MM-DDTHH:mm:ss.SSSZ
without duplicates.static com.fasterxml.jackson.core.type.TypeReference<DateTimeSetField>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withDateTimeSetField
(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.SSSZ
without 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:mm
orZ
for 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.SSSZ
without 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:mm
orZ
for 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.SSSZ
without 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:mm
orZ
for 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:
copyDeep
in 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
-