Package com.commercetools.api.models.me
Class MyShoppingListRemoveTextLineItemActionBuilder
java.lang.Object
com.commercetools.api.models.me.MyShoppingListRemoveTextLineItemActionBuilder
- All Implemented Interfaces:
io.vrap.rmf.base.client.Builder<MyShoppingListRemoveTextLineItemAction>
public class MyShoppingListRemoveTextLineItemActionBuilder
extends Object
implements io.vrap.rmf.base.client.Builder<MyShoppingListRemoveTextLineItemAction>
MyShoppingListRemoveTextLineItemActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
MyShoppingListRemoveTextLineItemAction myShoppingListRemoveTextLineItemAction = MyShoppingListRemoveTextLineItemAction.builder()
.textLineItemId("{textLineItemId}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds MyShoppingListRemoveTextLineItemAction with checking for non-null required valuesbuilds MyShoppingListRemoveTextLineItemAction without checking for non-null required valuesAmount to remove from thequantity
of the TextLineItem.Theid
of the TextLineItem to update.of()
factory method for an instance of MyShoppingListRemoveTextLineItemActionBuilderof
(MyShoppingListRemoveTextLineItemAction template) create builder for MyShoppingListRemoveTextLineItemAction instanceAmount to remove from thequantity
of the TextLineItem.textLineItemId
(String textLineItemId) Theid
of the TextLineItem to update.
-
Constructor Details
-
MyShoppingListRemoveTextLineItemActionBuilder
-
-
Method Details
-
textLineItemId
The
id
of the TextLineItem to update.- Parameters:
textLineItemId
- value to be set- Returns:
- Builder
-
quantity
Amount to remove from the
quantity
of the TextLineItem. If not set, the TextLineItem is removed from the ShoppingList. If this value matches or exceeds the currentquantity
of the TextLineItem, 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
Amount to remove from the
quantity
of the TextLineItem. If not set, the TextLineItem is removed from the ShoppingList. If this value matches or exceeds the currentquantity
of the TextLineItem, the TextLineItem is removed from the ShoppingList.- Returns:
- quantity
-
build
builds MyShoppingListRemoveTextLineItemAction with checking for non-null required values- Specified by:
build
in interfaceio.vrap.rmf.base.client.Builder<MyShoppingListRemoveTextLineItemAction>
- Returns:
- MyShoppingListRemoveTextLineItemAction
-
buildUnchecked
builds MyShoppingListRemoveTextLineItemAction without checking for non-null required values- Returns:
- MyShoppingListRemoveTextLineItemAction
-
of
factory method for an instance of MyShoppingListRemoveTextLineItemActionBuilder- Returns:
- builder
-
of
public static MyShoppingListRemoveTextLineItemActionBuilder of(MyShoppingListRemoveTextLineItemAction template) create builder for MyShoppingListRemoveTextLineItemAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-