Class ProductDiscountChangeNameActionBuilder
java.lang.Object
com.commercetools.api.models.product_discount.ProductDiscountChangeNameActionBuilder
- All Implemented Interfaces:
Builder<ProductDiscountChangeNameAction>
public class ProductDiscountChangeNameActionBuilder
extends Object
implements Builder<ProductDiscountChangeNameAction>
ProductDiscountChangeNameActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductDiscountChangeNameAction productDiscountChangeNameAction = ProductDiscountChangeNameAction.builder()
.name(nameBuilder -> nameBuilder)
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds ProductDiscountChangeNameAction with checking for non-null required valuesbuilds ProductDiscountChangeNameAction 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 ProductDiscountChangeNameActionBuilderof(ProductDiscountChangeNameAction template) create builder for ProductDiscountChangeNameAction instanceNew value to set.
-
Constructor Details
-
ProductDiscountChangeNameActionBuilder
public ProductDiscountChangeNameActionBuilder()
-
-
Method Details
-
name
public ProductDiscountChangeNameActionBuilder name(Function<LocalizedStringBuilder, LocalizedStringBuilder> builder) New value to set. Must not be empty.
- Parameters:
builder- function to build the name value- Returns:
- Builder
-
withName
public ProductDiscountChangeNameActionBuilder withName(Function<LocalizedStringBuilder, LocalizedString> builder) New value to set. Must not be empty.
- Parameters:
builder- function to build the name value- Returns:
- Builder
-
name
New value to set. Must not be empty.
- Parameters:
name- value to be set- Returns:
- Builder
-
getName
New value to set. Must not be empty.
- Returns:
- name
-
build
builds ProductDiscountChangeNameAction with checking for non-null required values- Specified by:
buildin interfaceBuilder<ProductDiscountChangeNameAction>- Returns:
- ProductDiscountChangeNameAction
-
buildUnchecked
builds ProductDiscountChangeNameAction without checking for non-null required values- Returns:
- ProductDiscountChangeNameAction
-
of
factory method for an instance of ProductDiscountChangeNameActionBuilder- Returns:
- builder
-
of
create builder for ProductDiscountChangeNameAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-