Class CartDiscountChangeNameActionBuilder
java.lang.Object
com.commercetools.api.models.cart_discount.CartDiscountChangeNameActionBuilder
- All Implemented Interfaces:
Builder<CartDiscountChangeNameAction>
public class CartDiscountChangeNameActionBuilder
extends Object
implements Builder<CartDiscountChangeNameAction>
CartDiscountChangeNameActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
CartDiscountChangeNameAction cartDiscountChangeNameAction = CartDiscountChangeNameAction.builder()
.name(nameBuilder -> nameBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds CartDiscountChangeNameAction with checking for non-null required valuesbuilds CartDiscountChangeNameAction without checking for non-null required valuesgetName()
New value to set.name
(LocalizedString name) New value to set.New value to set.of()
factory method for an instance of CartDiscountChangeNameActionBuilderof
(CartDiscountChangeNameAction template) create builder for CartDiscountChangeNameAction instanceNew value to set.
-
Constructor Details
-
CartDiscountChangeNameActionBuilder
public CartDiscountChangeNameActionBuilder()
-
-
Method Details
-
name
public CartDiscountChangeNameActionBuilder name(Function<LocalizedStringBuilder, LocalizedStringBuilder> builder) New value to set.
- Parameters:
builder
- function to build the name value- Returns:
- Builder
-
withName
public CartDiscountChangeNameActionBuilder withName(Function<LocalizedStringBuilder, LocalizedString> builder) New value to set.
- Parameters:
builder
- function to build the name value- Returns:
- Builder
-
name
New value to set.
- Parameters:
name
- value to be set- Returns:
- Builder
-
getName
New value to set.
- Returns:
- name
-
build
builds CartDiscountChangeNameAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<CartDiscountChangeNameAction>
- Returns:
- CartDiscountChangeNameAction
-
buildUnchecked
builds CartDiscountChangeNameAction without checking for non-null required values- Returns:
- CartDiscountChangeNameAction
-
of
factory method for an instance of CartDiscountChangeNameActionBuilder- Returns:
- builder
-
of
create builder for CartDiscountChangeNameAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-