Package com.commercetools.api.models.me
Class MyShoppingListSetTextLineItemDescriptionActionBuilder
java.lang.Object
com.commercetools.api.models.me.MyShoppingListSetTextLineItemDescriptionActionBuilder
- All Implemented Interfaces:
Builder<MyShoppingListSetTextLineItemDescriptionAction>
public class MyShoppingListSetTextLineItemDescriptionActionBuilder
extends Object
implements Builder<MyShoppingListSetTextLineItemDescriptionAction>
MyShoppingListSetTextLineItemDescriptionActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
MyShoppingListSetTextLineItemDescriptionAction myShoppingListSetTextLineItemDescriptionAction = MyShoppingListSetTextLineItemDescriptionAction.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds MyShoppingListSetTextLineItemDescriptionAction with checking for non-null required valuesbuilds MyShoppingListSetTextLineItemDescriptionAction without checking for non-null required valuesdescription
(LocalizedString description) Value to set.Value to set.Value to set.Theid
of the TextLineItem to update.Thekey
of the TextLineItem to update.of()
factory method for an instance of MyShoppingListSetTextLineItemDescriptionActionBuildercreate builder for MyShoppingListSetTextLineItemDescriptionAction instancetextLineItemId
(String textLineItemId) Theid
of the TextLineItem to update.textLineItemKey
(String textLineItemKey) Thekey
of the TextLineItem to update.Value to set.
-
Constructor Details
-
MyShoppingListSetTextLineItemDescriptionActionBuilder
public MyShoppingListSetTextLineItemDescriptionActionBuilder()
-
-
Method Details
-
textLineItemId
public MyShoppingListSetTextLineItemDescriptionActionBuilder textLineItemId(@Nullable String textLineItemId) The
id
of the TextLineItem to update. EitherlineItemId
orlineItemKey
is required.- Parameters:
textLineItemId
- value to be set- Returns:
- Builder
-
textLineItemKey
public MyShoppingListSetTextLineItemDescriptionActionBuilder textLineItemKey(@Nullable String textLineItemKey) The
key
of the TextLineItem to update. EitherlineItemId
orlineItemKey
is required.- Parameters:
textLineItemKey
- value to be set- Returns:
- Builder
-
description
public MyShoppingListSetTextLineItemDescriptionActionBuilder 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 MyShoppingListSetTextLineItemDescriptionActionBuilder 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 MyShoppingListSetTextLineItemDescriptionActionBuilder description(@Nullable LocalizedString description) Value to set. If empty, any existing value will be removed.
- Parameters:
description
- value to be set- Returns:
- Builder
-
getTextLineItemId
The
id
of the TextLineItem to update. EitherlineItemId
orlineItemKey
is required.- Returns:
- textLineItemId
-
getTextLineItemKey
The
key
of the TextLineItem to update. EitherlineItemId
orlineItemKey
is required.- Returns:
- textLineItemKey
-
getDescription
Value to set. If empty, any existing value will be removed.
- Returns:
- description
-
build
builds MyShoppingListSetTextLineItemDescriptionAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<MyShoppingListSetTextLineItemDescriptionAction>
- Returns:
- MyShoppingListSetTextLineItemDescriptionAction
-
buildUnchecked
builds MyShoppingListSetTextLineItemDescriptionAction without checking for non-null required values- Returns:
- MyShoppingListSetTextLineItemDescriptionAction
-
of
factory method for an instance of MyShoppingListSetTextLineItemDescriptionActionBuilder- Returns:
- builder
-
of
public static MyShoppingListSetTextLineItemDescriptionActionBuilder of(MyShoppingListSetTextLineItemDescriptionAction template) create builder for MyShoppingListSetTextLineItemDescriptionAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-