Class InventoryEntryAddQuantityActionBuilder
java.lang.Object
com.commercetools.api.models.inventory.InventoryEntryAddQuantityActionBuilder
- All Implemented Interfaces:
Builder<InventoryEntryAddQuantityAction>
public class InventoryEntryAddQuantityActionBuilder
extends Object
implements Builder<InventoryEntryAddQuantityAction>
InventoryEntryAddQuantityActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
InventoryEntryAddQuantityAction inventoryEntryAddQuantityAction = InventoryEntryAddQuantityAction.builder()
.quantity(0.3)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds InventoryEntryAddQuantityAction with checking for non-null required valuesbuilds InventoryEntryAddQuantityAction without checking for non-null required valuesValue to add toquantityOnStock
.of()
factory method for an instance of InventoryEntryAddQuantityActionBuilderof
(InventoryEntryAddQuantityAction template) create builder for InventoryEntryAddQuantityAction instanceValue to add toquantityOnStock
.
-
Constructor Details
-
InventoryEntryAddQuantityActionBuilder
public InventoryEntryAddQuantityActionBuilder()
-
-
Method Details
-
quantity
Value to add to
quantityOnStock
.- Parameters:
quantity
- value to be set- Returns:
- Builder
-
getQuantity
Value to add to
quantityOnStock
.- Returns:
- quantity
-
build
builds InventoryEntryAddQuantityAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<InventoryEntryAddQuantityAction>
- Returns:
- InventoryEntryAddQuantityAction
-
buildUnchecked
builds InventoryEntryAddQuantityAction without checking for non-null required values- Returns:
- InventoryEntryAddQuantityAction
-
of
factory method for an instance of InventoryEntryAddQuantityActionBuilder- Returns:
- builder
-
of
create builder for InventoryEntryAddQuantityAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-