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