Class ShoppingListChangeTextLineItemQuantityActionBuilder
java.lang.Object
com.commercetools.api.models.shopping_list.ShoppingListChangeTextLineItemQuantityActionBuilder
- All Implemented Interfaces:
io.vrap.rmf.base.client.Builder<ShoppingListChangeTextLineItemQuantityAction>
public class ShoppingListChangeTextLineItemQuantityActionBuilder
extends Object
implements io.vrap.rmf.base.client.Builder<ShoppingListChangeTextLineItemQuantityAction>
ShoppingListChangeTextLineItemQuantityActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ShoppingListChangeTextLineItemQuantityAction shoppingListChangeTextLineItemQuantityAction = ShoppingListChangeTextLineItemQuantityAction.builder()
.textLineItemId("{textLineItemId}")
.quantity(0.3)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ShoppingListChangeTextLineItemQuantityAction with checking for non-null required valuesbuilds ShoppingListChangeTextLineItemQuantityAction without checking for non-null required valuesNew value to set.Theid
of the TextLineItem to update.of()
factory method for an instance of ShoppingListChangeTextLineItemQuantityActionBuildercreate builder for ShoppingListChangeTextLineItemQuantityAction instanceNew value to set.textLineItemId
(String textLineItemId) Theid
of the TextLineItem to update.
-
Constructor Details
-
ShoppingListChangeTextLineItemQuantityActionBuilder
-
-
Method Details
-
textLineItemId
The
id
of the TextLineItem to update.- Parameters:
textLineItemId
- 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.- Returns:
- textLineItemId
-
getQuantity
New value to set. If
0
, the TextLineItem is removed from the ShoppingList.- Returns:
- quantity
-
build
builds ShoppingListChangeTextLineItemQuantityAction with checking for non-null required values- Specified by:
build
in interfaceio.vrap.rmf.base.client.Builder<ShoppingListChangeTextLineItemQuantityAction>
- Returns:
- ShoppingListChangeTextLineItemQuantityAction
-
buildUnchecked
builds ShoppingListChangeTextLineItemQuantityAction without checking for non-null required values- Returns:
- ShoppingListChangeTextLineItemQuantityAction
-
of
factory method for an instance of ShoppingListChangeTextLineItemQuantityActionBuilder- Returns:
- builder
-
of
public static ShoppingListChangeTextLineItemQuantityActionBuilder of(ShoppingListChangeTextLineItemQuantityAction template) create builder for ShoppingListChangeTextLineItemQuantityAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-