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
-
Method Summary
Modifier and TypeMethodDescriptionstatic DateTimeSetFieldBuilder
builder()
builder factory method for DateTimeSetFieldstatic DateTimeSetFieldBuilder
builder
(DateTimeSetField template) create builder for DateTimeSetField instancestatic DateTimeSetField
deepCopy
(DateTimeSetField template) factory method to create a deep copy of DateTimeSetField@NotNull List<ZonedDateTime>
getValue()
static DateTimeSetField
of()
factory methodstatic DateTimeSetField
of
(DateTimeSetField template) factory method to create a shallow copy DateTimeSetFieldvoid
setValue
(ZonedDateTime... value) set valuevoid
setValue
(List<ZonedDateTime> value) set valuestatic 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
- Returns:
- value
-
setValue
set value- Parameters:
value
- values to be set
-
setValue
set value- 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
-
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
-