Class DiscountCodeSetDescriptionActionBuilder
java.lang.Object
com.commercetools.api.models.discount_code.DiscountCodeSetDescriptionActionBuilder
- All Implemented Interfaces:
io.vrap.rmf.base.client.Builder<DiscountCodeSetDescriptionAction>
public class DiscountCodeSetDescriptionActionBuilder
extends Object
implements io.vrap.rmf.base.client.Builder<DiscountCodeSetDescriptionAction>
DiscountCodeSetDescriptionActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
DiscountCodeSetDescriptionAction discountCodeSetDescriptionAction = DiscountCodeSetDescriptionAction.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds DiscountCodeSetDescriptionAction with checking for non-null required valuesbuilds DiscountCodeSetDescriptionAction without checking for non-null required valuesdescription
(LocalizedString description) Value to set.Value to set.Value to set.of()
factory method for an instance of DiscountCodeSetDescriptionActionBuilderof
(DiscountCodeSetDescriptionAction template) create builder for DiscountCodeSetDescriptionAction instanceValue to set.
-
Constructor Details
-
DiscountCodeSetDescriptionActionBuilder
public DiscountCodeSetDescriptionActionBuilder()
-
-
Method Details
-
description
public DiscountCodeSetDescriptionActionBuilder description(Function<LocalizedStringBuilder, LocalizedStringBuilder> builder) Value to set. If empty, any existing value will be removed.
- Parameters:
builder
- function to build the description value- Returns:
- Builder
-
withDescription
public DiscountCodeSetDescriptionActionBuilder withDescription(Function<LocalizedStringBuilder, LocalizedString> builder) Value to set. If empty, any existing value will be removed.
- Parameters:
builder
- function to build the description value- Returns:
- Builder
-
description
Value to set. If empty, any existing value will be removed.
- Parameters:
description
- value to be set- Returns:
- Builder
-
getDescription
Value to set. If empty, any existing value will be removed.
- Returns:
- description
-
build
builds DiscountCodeSetDescriptionAction with checking for non-null required values- Specified by:
build
in interfaceio.vrap.rmf.base.client.Builder<DiscountCodeSetDescriptionAction>
- Returns:
- DiscountCodeSetDescriptionAction
-
buildUnchecked
builds DiscountCodeSetDescriptionAction without checking for non-null required values- Returns:
- DiscountCodeSetDescriptionAction
-
of
factory method for an instance of DiscountCodeSetDescriptionActionBuilder- Returns:
- builder
-
of
create builder for DiscountCodeSetDescriptionAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-