Interface MoneySetField
- All Superinterfaces:
CustomField
A field with a money set value.
Example to create an instance using the builder pattern
MoneySetField moneySetField = MoneySetField.builder()
.plusValue(valueBuilder -> valueBuilder)
.build()
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic MoneySetFieldBuilder
builder()
builder factory method for MoneySetFieldstatic MoneySetFieldBuilder
builder
(MoneySetField template) create builder for MoneySetField instancecopyDeep()
static MoneySetField
deepCopy
(MoneySetField template) factory method to create a deep copy of MoneySetField@NotNull @Valid List<TypedMoney>
getValue()
JSON array of money values in cent precision format.static MoneySetField
of()
factory methodstatic MoneySetField
of
(MoneySetField template) factory method to create a shallow copy MoneySetFieldvoid
setValue
(TypedMoney... value) JSON array of money values in cent precision format.void
setValue
(List<TypedMoney> value) JSON array of money values in cent precision format.static com.fasterxml.jackson.core.type.TypeReference<MoneySetField>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withMoneySetField
(Function<MoneySetField, T> helper) accessor map functionMethods inherited from interface com.commercetools.importapi.models.customfields.CustomField
getType, withCustomField
-
Field Details
-
MONEY_SET
discriminator value for MoneySetField- See Also:
-
-
Method Details
-
getValue
JSON array of money values in cent precision format. The order of items in the array is not fixed.
- Returns:
- value
-
setValue
JSON array of money values in cent precision format. The order of items in the array is not fixed.
- Parameters:
value
- values to be set
-
setValue
JSON array of money values in cent precision format. The order of items in the array is not fixed.
- Parameters:
value
- values to be set
-
of
factory method- Returns:
- instance of MoneySetField
-
of
factory method to create a shallow copy MoneySetField- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
copyDeep
MoneySetField copyDeep()- Specified by:
copyDeep
in interfaceCustomField
-
deepCopy
factory method to create a deep copy of MoneySetField- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for MoneySetField- Returns:
- builder
-
builder
create builder for MoneySetField instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withMoneySetField
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
-