Interface DateAttribute
- All Superinterfaces:
Attribute
This type represents an attribute whose value is a date.
Example to create an instance using the builder pattern
DateAttribute dateAttribute = DateAttribute.builder()
.value(LocalDate.parse("2022-01-01"))
.build()
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic DateAttributeBuilder
builder()
builder factory method for DateAttributestatic DateAttributeBuilder
builder
(DateAttribute template) create builder for DateAttribute instancestatic DateAttribute
deepCopy
(DateAttribute template) factory method to create a deep copy of DateAttribute@NotNull LocalDate
getValue()
static DateAttribute
of()
factory methodstatic DateAttribute
of
(DateAttribute template) factory method to create a shallow copy DateAttributevoid
set valuestatic com.fasterxml.jackson.core.type.TypeReference<DateAttribute>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withDateAttribute
(Function<DateAttribute, T> helper) accessor map functionMethods inherited from interface com.commercetools.importapi.models.productvariants.Attribute
getName, getType, setName, withAttribute
-
Field Details
-
DATE
discriminator value for DateAttribute- See Also:
-
-
Method Details
-
getValue
- Returns:
- value
-
setValue
set value- Parameters:
value
- value to be set
-
of
factory method- Returns:
- instance of DateAttribute
-
of
factory method to create a shallow copy DateAttribute- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of DateAttribute- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for DateAttribute- Returns:
- builder
-
builder
create builder for DateAttribute instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withDateAttribute
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
-