Interface DateSetField
- All Superinterfaces:
CustomField
A field with a date set value.
Example to create an instance using the builder pattern
DateSetField dateSetField = DateSetField.builder()
.plusValue(valueBuilder -> valueBuilder)
.build()
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic DateSetFieldBuilder
builder()
builder factory method for DateSetFieldstatic DateSetFieldBuilder
builder
(DateSetField template) create builder for DateSetField instancecopyDeep()
static DateSetField
deepCopy
(DateSetField template) factory method to create a deep copy of DateSetFieldgetValue()
JSON array of date values in the formatYYYY-MM-DD
without duplicates.static DateSetField
of()
factory methodstatic DateSetField
of
(DateSetField template) factory method to create a shallow copy DateSetFieldvoid
JSON array of date values in the formatYYYY-MM-DD
without duplicates.void
JSON array of date values in the formatYYYY-MM-DD
without duplicates.static com.fasterxml.jackson.core.type.TypeReference<DateSetField>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withDateSetField
(Function<DateSetField, T> helper) accessor map functionMethods inherited from interface com.commercetools.importapi.models.customfields.CustomField
getType, withCustomField
-
Field Details
-
DATE_SET
discriminator value for DateSetField- See Also:
-
-
Method Details
-
getValue
JSON array of date values in the format
YYYY-MM-DD
without duplicates. The order of items in the array is not fixed.- Returns:
- value
-
setValue
JSON array of date values in the format
YYYY-MM-DD
without duplicates. The order of items in the array is not fixed.- Parameters:
value
- values to be set
-
setValue
JSON array of date values in the format
YYYY-MM-DD
without duplicates. The order of items in the array is not fixed.- Parameters:
value
- values to be set
-
of
factory method- Returns:
- instance of DateSetField
-
of
factory method to create a shallow copy DateSetField- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
copyDeep
DateSetField copyDeep()- Specified by:
copyDeep
in interfaceCustomField
-
deepCopy
factory method to create a deep copy of DateSetField- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for DateSetField- Returns:
- builder
-
builder
create builder for DateSetField instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withDateSetField
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
-