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