Package com.commercetools.api.models.me
Class MyShoppingListChangeTextLineItemQuantityActionBuilder
java.lang.Object
com.commercetools.api.models.me.MyShoppingListChangeTextLineItemQuantityActionBuilder
- All Implemented Interfaces:
Builder<MyShoppingListChangeTextLineItemQuantityAction>
public class MyShoppingListChangeTextLineItemQuantityActionBuilder
extends Object
implements Builder<MyShoppingListChangeTextLineItemQuantityAction>
MyShoppingListChangeTextLineItemQuantityActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
MyShoppingListChangeTextLineItemQuantityAction myShoppingListChangeTextLineItemQuantityAction = MyShoppingListChangeTextLineItemQuantityAction.builder()
.quantity(0.3)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds MyShoppingListChangeTextLineItemQuantityAction with checking for non-null required valuesbuilds MyShoppingListChangeTextLineItemQuantityAction without checking for non-null required valuesNew value to set.Theid
of the TextLineItem to update.Thekey
of the TextLineItem to update.of()
factory method for an instance of MyShoppingListChangeTextLineItemQuantityActionBuildercreate builder for MyShoppingListChangeTextLineItemQuantityAction instanceNew value to set.textLineItemId
(String textLineItemId) Theid
of the TextLineItem to update.textLineItemKey
(String textLineItemKey) Thekey
of the TextLineItem to update.
-
Constructor Details
-
MyShoppingListChangeTextLineItemQuantityActionBuilder
public MyShoppingListChangeTextLineItemQuantityActionBuilder()
-
-
Method Details
-
textLineItemId
public MyShoppingListChangeTextLineItemQuantityActionBuilder 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 MyShoppingListChangeTextLineItemQuantityActionBuilder textLineItemKey(@Nullable String textLineItemKey) The
key
of the TextLineItem to update. EitherlineItemId
orlineItemKey
is required.- Parameters:
textLineItemKey
- value to be set- Returns:
- Builder
-
quantity
New value to set. If
0
, the TextLineItem is removed from the ShoppingList.- Parameters:
quantity
- 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
-
getQuantity
New value to set. If
0
, the TextLineItem is removed from the ShoppingList.- Returns:
- quantity
-
build
builds MyShoppingListChangeTextLineItemQuantityAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<MyShoppingListChangeTextLineItemQuantityAction>
- Returns:
- MyShoppingListChangeTextLineItemQuantityAction
-
buildUnchecked
builds MyShoppingListChangeTextLineItemQuantityAction without checking for non-null required values- Returns:
- MyShoppingListChangeTextLineItemQuantityAction
-
of
factory method for an instance of MyShoppingListChangeTextLineItemQuantityActionBuilder- Returns:
- builder
-
of
public static MyShoppingListChangeTextLineItemQuantityActionBuilder of(MyShoppingListChangeTextLineItemQuantityAction template) create builder for MyShoppingListChangeTextLineItemQuantityAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-