Class CartDiscountSetDescriptionActionBuilder
java.lang.Object
com.commercetools.api.models.cart_discount.CartDiscountSetDescriptionActionBuilder
- All Implemented Interfaces:
Builder<CartDiscountSetDescriptionAction>
public class CartDiscountSetDescriptionActionBuilder
extends Object
implements Builder<CartDiscountSetDescriptionAction>
CartDiscountSetDescriptionActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
CartDiscountSetDescriptionAction cartDiscountSetDescriptionAction = CartDiscountSetDescriptionAction.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds CartDiscountSetDescriptionAction with checking for non-null required valuesbuilds CartDiscountSetDescriptionAction 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 CartDiscountSetDescriptionActionBuilderof
(CartDiscountSetDescriptionAction template) create builder for CartDiscountSetDescriptionAction instanceValue to set.
-
Constructor Details
-
CartDiscountSetDescriptionActionBuilder
public CartDiscountSetDescriptionActionBuilder()
-
-
Method Details
-
description
public CartDiscountSetDescriptionActionBuilder 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 CartDiscountSetDescriptionActionBuilder 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 CartDiscountSetDescriptionAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<CartDiscountSetDescriptionAction>
- Returns:
- CartDiscountSetDescriptionAction
-
buildUnchecked
builds CartDiscountSetDescriptionAction without checking for non-null required values- Returns:
- CartDiscountSetDescriptionAction
-
of
factory method for an instance of CartDiscountSetDescriptionActionBuilder- Returns:
- builder
-
of
create builder for CartDiscountSetDescriptionAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-