Class DiscountCodeSetNameActionBuilder
java.lang.Object
com.commercetools.api.models.discount_code.DiscountCodeSetNameActionBuilder
- All Implemented Interfaces:
Builder<DiscountCodeSetNameAction>
public class DiscountCodeSetNameActionBuilder
extends Object
implements Builder<DiscountCodeSetNameAction>
DiscountCodeSetNameActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
DiscountCodeSetNameAction discountCodeSetNameAction = DiscountCodeSetNameAction.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds DiscountCodeSetNameAction with checking for non-null required valuesbuilds DiscountCodeSetNameAction without checking for non-null required valuesgetName()
Value to set.name
(LocalizedString name) Value to set.Value to set.of()
factory method for an instance of DiscountCodeSetNameActionBuilderof
(DiscountCodeSetNameAction template) create builder for DiscountCodeSetNameAction instanceValue to set.
-
Constructor Details
-
DiscountCodeSetNameActionBuilder
public DiscountCodeSetNameActionBuilder()
-
-
Method Details
-
name
public DiscountCodeSetNameActionBuilder name(Function<LocalizedStringBuilder, LocalizedStringBuilder> builder) Value to set. If empty, any existing value will be removed.
- Parameters:
builder
- function to build the name value- Returns:
- Builder
-
withName
public DiscountCodeSetNameActionBuilder withName(Function<LocalizedStringBuilder, LocalizedString> builder) Value to set. If empty, any existing value will be removed.
- Parameters:
builder
- function to build the name value- Returns:
- Builder
-
name
Value to set. If empty, any existing value will be removed.
- Parameters:
name
- value to be set- Returns:
- Builder
-
getName
Value to set. If empty, any existing value will be removed.
- Returns:
- name
-
build
builds DiscountCodeSetNameAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<DiscountCodeSetNameAction>
- Returns:
- DiscountCodeSetNameAction
-
buildUnchecked
builds DiscountCodeSetNameAction without checking for non-null required values- Returns:
- DiscountCodeSetNameAction
-
of
factory method for an instance of DiscountCodeSetNameActionBuilder- Returns:
- builder
-
of
create builder for DiscountCodeSetNameAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-