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