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
Constructors -
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.Theidof the TextLineItem to update.Thekeyof the TextLineItem to update.of()factory method for an instance of MyShoppingListSetTextLineItemDescriptionActionBuildercreate builder for MyShoppingListSetTextLineItemDescriptionAction instancetextLineItemId(String textLineItemId) Theidof the TextLineItem to update.textLineItemKey(String textLineItemKey) Thekeyof the TextLineItem to update.Value to set.
-
Constructor Details
-
MyShoppingListSetTextLineItemDescriptionActionBuilder
public MyShoppingListSetTextLineItemDescriptionActionBuilder()
-
-
Method Details
-
textLineItemId
public MyShoppingListSetTextLineItemDescriptionActionBuilder textLineItemId(@Nullable String textLineItemId) The
idof the TextLineItem to update. EitherlineItemIdorlineItemKeyis required.- Parameters:
textLineItemId- value to be set- Returns:
- Builder
-
textLineItemKey
public MyShoppingListSetTextLineItemDescriptionActionBuilder textLineItemKey(@Nullable String textLineItemKey) The
keyof the TextLineItem to update. EitherlineItemIdorlineItemKeyis 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
idof the TextLineItem to update. EitherlineItemIdorlineItemKeyis required.- Returns:
- textLineItemId
-
getTextLineItemKey
The
keyof the TextLineItem to update. EitherlineItemIdorlineItemKeyis 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:
buildin 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
-