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