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