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