Class CannotCreateReservationWarningBuilder
- All Implemented Interfaces:
Builder<CannotCreateReservationWarning>
Example to create an instance using the builder pattern
CannotCreateReservationWarning cannotCreateReservationWarning = CannotCreateReservationWarning.builder()
.message("{message}")
.productId("{productId}")
.quantity(0.3)
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds CannotCreateReservationWarning with checking for non-null required valuesbuilds CannotCreateReservationWarning without checking for non-null required values"Failed to create a reservation for product $productId (SKU: $sku, Supply Channel: $supplyChannel) with quantity $quantity."The ID of the Product for which the reservation could not be created.The quantity for which the reservation could not be created.getSku()The SKU of the Product Variant for which the reservation could not be created.The ID of the Supply Channel for which the reservation could not be created."Failed to create a reservation for product $productId (SKU: $sku, Supply Channel: $supplyChannel) with quantity $quantity."of()factory method for an instance of CannotCreateReservationWarningBuilderof(CannotCreateReservationWarning template) create builder for CannotCreateReservationWarning instanceThe ID of the Product for which the reservation could not be created.The quantity for which the reservation could not be created.The SKU of the Product Variant for which the reservation could not be created.supplyChannel(String supplyChannel) The ID of the Supply Channel for which the reservation could not be created.
-
Constructor Details
-
CannotCreateReservationWarningBuilder
public CannotCreateReservationWarningBuilder()
-
-
Method Details
-
message
"Failed to create a reservation for product $productId (SKU: $sku, Supply Channel: $supplyChannel) with quantity $quantity."- Parameters:
message- value to be set- Returns:
- Builder
-
productId
The ID of the Product for which the reservation could not be created.
- Parameters:
productId- value to be set- Returns:
- Builder
-
sku
The SKU of the Product Variant for which the reservation could not be created.
- Parameters:
sku- value to be set- Returns:
- Builder
-
supplyChannel
The ID of the Supply Channel for which the reservation could not be created.
- Parameters:
supplyChannel- value to be set- Returns:
- Builder
-
quantity
The quantity for which the reservation could not be created.
- Parameters:
quantity- value to be set- Returns:
- Builder
-
getMessage
"Failed to create a reservation for product $productId (SKU: $sku, Supply Channel: $supplyChannel) with quantity $quantity."- Returns:
- message
-
getProductId
The ID of the Product for which the reservation could not be created.
- Returns:
- productId
-
getSku
The SKU of the Product Variant for which the reservation could not be created.
- Returns:
- sku
-
getSupplyChannel
The ID of the Supply Channel for which the reservation could not be created.
- Returns:
- supplyChannel
-
getQuantity
The quantity for which the reservation could not be created.
- Returns:
- quantity
-
build
builds CannotCreateReservationWarning with checking for non-null required values- Specified by:
buildin interfaceBuilder<CannotCreateReservationWarning>- Returns:
- CannotCreateReservationWarning
-
buildUnchecked
builds CannotCreateReservationWarning without checking for non-null required values- Returns:
- CannotCreateReservationWarning
-
of
factory method for an instance of CannotCreateReservationWarningBuilder- Returns:
- builder
-
of
create builder for CannotCreateReservationWarning instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-