Interface DateTimeSetAttribute
- All Superinterfaces:
Attribute
This type represents an attribute whose value is a set of dates with time.
Example to create an instance using the builder pattern
DateTimeSetAttribute dateTimeSetAttribute = DateTimeSetAttribute.builder()
.plusValue(valueBuilder -> valueBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for DateTimeSetAttribute -
Method Summary
Modifier and TypeMethodDescriptionstatic DateTimeSetAttributeBuilder
builder()
builder factory method for DateTimeSetAttributestatic DateTimeSetAttributeBuilder
builder
(DateTimeSetAttribute template) create builder for DateTimeSetAttribute instancestatic DateTimeSetAttribute
deepCopy
(DateTimeSetAttribute template) factory method to create a deep copy of DateTimeSetAttribute@NotNull List<ZonedDateTime>
getValue()
static DateTimeSetAttribute
of()
factory methodstatic DateTimeSetAttribute
of
(DateTimeSetAttribute template) factory method to create a shallow copy DateTimeSetAttributevoid
setValue
(ZonedDateTime... value) set valuevoid
setValue
(List<ZonedDateTime> value) set valuestatic com.fasterxml.jackson.core.type.TypeReference<DateTimeSetAttribute>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withDateTimeSetAttribute
(Function<DateTimeSetAttribute, T> helper) accessor map functionMethods inherited from interface com.commercetools.importapi.models.productvariants.Attribute
getName, getType, setName, withAttribute
-
Field Details
-
DATETIME_SET
discriminator value for DateTimeSetAttribute- 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 DateTimeSetAttribute
-
of
factory method to create a shallow copy DateTimeSetAttribute- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of DateTimeSetAttribute- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for DateTimeSetAttribute- Returns:
- builder
-
builder
create builder for DateTimeSetAttribute instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withDateTimeSetAttribute
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
-