Interface TimeSetAttribute
- All Superinterfaces:
Attribute
This type represents an attribute whose value is a set of times.
Example to create an instance using the builder pattern
TimeSetAttribute timeSetAttribute = TimeSetAttribute.builder()
.plusValue(valueBuilder -> valueBuilder)
.build()
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic TimeSetAttributeBuilder
builder()
builder factory method for TimeSetAttributestatic TimeSetAttributeBuilder
builder
(TimeSetAttribute template) create builder for TimeSetAttribute instancestatic TimeSetAttribute
deepCopy
(TimeSetAttribute template) factory method to create a deep copy of TimeSetAttributegetValue()
static TimeSetAttribute
of()
factory methodstatic TimeSetAttribute
of
(TimeSetAttribute template) factory method to create a shallow copy TimeSetAttributevoid
set valuevoid
set valuestatic com.fasterxml.jackson.core.type.TypeReference<TimeSetAttribute>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withTimeSetAttribute
(Function<TimeSetAttribute, T> helper) accessor map functionMethods inherited from interface com.commercetools.importapi.models.productvariants.Attribute
getName, getType, setName, withAttribute
-
Field Details
-
TIME_SET
discriminator value for TimeSetAttribute- 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 TimeSetAttribute
-
of
factory method to create a shallow copy TimeSetAttribute- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of TimeSetAttribute- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for TimeSetAttribute- Returns:
- builder
-
builder
create builder for TimeSetAttribute instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withTimeSetAttribute
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
-