Class MoneySetFieldBuilder
java.lang.Object
com.commercetools.importapi.models.customfields.MoneySetFieldBuilder
- All Implemented Interfaces:
Builder<MoneySetField>
MoneySetFieldBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
MoneySetField moneySetField = MoneySetField.builder()
.plusValue(valueBuilder -> valueBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddValue
(Function<MoneyBuilder, Money> builder) add the value to the value using the builder functionbuild()
builds MoneySetField with checking for non-null required valuesbuilds MoneySetField without checking for non-null required valuesgetValue()
value of value}static MoneySetFieldBuilder
of()
factory method for an instance of MoneySetFieldBuilderstatic MoneySetFieldBuilder
of
(MoneySetField template) create builder for MoneySetField instanceadd values to the valueplusValue
(Function<MoneyBuilder, MoneyBuilder> builder) add the value to the value using the builder functionsetValue
(Function<MoneyBuilder, Money> builder) set the value to the value using the builder functionset values to the valueset value to the valuewithValue
(Function<MoneyBuilder, MoneyBuilder> builder) set the value to the value using the builder function
-
Constructor Details
-
MoneySetFieldBuilder
public MoneySetFieldBuilder()
-
-
Method Details
-
value
set values to the value- Parameters:
value
- value to be set- Returns:
- Builder
-
value
set value to the value- Parameters:
value
- value to be set- Returns:
- Builder
-
plusValue
add values to the value- Parameters:
value
- value to be set- Returns:
- Builder
-
plusValue
add the value to the value using the builder function- Parameters:
builder
- function to build the value value- Returns:
- Builder
-
withValue
set the value to the value using the builder function- Parameters:
builder
- function to build the value value- Returns:
- Builder
-
addValue
add the value to the value using the builder function- Parameters:
builder
- function to build the value value- Returns:
- Builder
-
setValue
set the value to the value using the builder function- Parameters:
builder
- function to build the value value- Returns:
- Builder
-
getValue
value of value}- Returns:
- value
-
build
builds MoneySetField with checking for non-null required values- Specified by:
build
in interfaceBuilder<MoneySetField>
- Returns:
- MoneySetField
-
buildUnchecked
builds MoneySetField without checking for non-null required values- Returns:
- MoneySetField
-
of
factory method for an instance of MoneySetFieldBuilder- Returns:
- builder
-
of
create builder for MoneySetField instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-