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