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