Class CannotUpdateReservationWarningBuilder
- All Implemented Interfaces:
Builder<CannotUpdateReservationWarning>
Example to create an instance using the builder pattern
CannotUpdateReservationWarning cannotUpdateReservationWarning = CannotUpdateReservationWarning.builder()
.message("{message}")
.lineItemId("{lineItemId}")
.requestedQuantity(0.3)
.reservedQuantity(0.3)
.productId("{productId}")
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds CannotUpdateReservationWarning with checking for non-null required valuesbuilds CannotUpdateReservationWarning without checking for non-null required valuesThe ID of the Line Item."Failed to update the reservation for line item $lineItemId (Product ID: $productId, SKU: $sku, Supply Channel: $supplyChannel) to a quantity of $requestedQuantity.The ID of the Product associated with the Line Item.The quantity that was requested for the Line Item.The quantity that remains reserved for the Line Item.getSku()The SKU of the Product Variant associated with the Line Item.The ID of the Supply Channel associated with the reservation.lineItemId(String lineItemId) The ID of the Line Item."Failed to update the reservation for line item $lineItemId (Product ID: $productId, SKU: $sku, Supply Channel: $supplyChannel) to a quantity of $requestedQuantity.of()factory method for an instance of CannotUpdateReservationWarningBuilderof(CannotUpdateReservationWarning template) create builder for CannotUpdateReservationWarning instanceThe ID of the Product associated with the Line Item.requestedQuantity(Double requestedQuantity) The quantity that was requested for the Line Item.reservedQuantity(Double reservedQuantity) The quantity that remains reserved for the Line Item.The SKU of the Product Variant associated with the Line Item.supplyChannel(String supplyChannel) The ID of the Supply Channel associated with the reservation.
-
Constructor Details
-
CannotUpdateReservationWarningBuilder
public CannotUpdateReservationWarningBuilder()
-
-
Method Details
-
message
"Failed to update the reservation for line item $lineItemId (Product ID: $productId, SKU: $sku, Supply Channel: $supplyChannel) to a quantity of $requestedQuantity. The reserved amount is still $reservedQuantity."- Parameters:
message- value to be set- Returns:
- Builder
-
lineItemId
The ID of the Line Item.
- Parameters:
lineItemId- value to be set- Returns:
- Builder
-
requestedQuantity
The quantity that was requested for the Line Item.
- Parameters:
requestedQuantity- value to be set- Returns:
- Builder
-
reservedQuantity
The quantity that remains reserved for the Line Item.
- Parameters:
reservedQuantity- value to be set- Returns:
- Builder
-
productId
The ID of the Product associated with the Line Item.
- Parameters:
productId- value to be set- Returns:
- Builder
-
sku
The SKU of the Product Variant associated with the Line Item.
- Parameters:
sku- value to be set- Returns:
- Builder
-
supplyChannel
The ID of the Supply Channel associated with the reservation.
- Parameters:
supplyChannel- value to be set- Returns:
- Builder
-
getMessage
"Failed to update the reservation for line item $lineItemId (Product ID: $productId, SKU: $sku, Supply Channel: $supplyChannel) to a quantity of $requestedQuantity. The reserved amount is still $reservedQuantity."- Returns:
- message
-
getLineItemId
The ID of the Line Item.
- Returns:
- lineItemId
-
getRequestedQuantity
The quantity that was requested for the Line Item.
- Returns:
- requestedQuantity
-
getReservedQuantity
The quantity that remains reserved for the Line Item.
- Returns:
- reservedQuantity
-
getProductId
The ID of the Product associated with the Line Item.
- Returns:
- productId
-
getSku
The SKU of the Product Variant associated with the Line Item.
- Returns:
- sku
-
getSupplyChannel
The ID of the Supply Channel associated with the reservation.
- Returns:
- supplyChannel
-
build
builds CannotUpdateReservationWarning with checking for non-null required values- Specified by:
buildin interfaceBuilder<CannotUpdateReservationWarning>- Returns:
- CannotUpdateReservationWarning
-
buildUnchecked
builds CannotUpdateReservationWarning without checking for non-null required values- Returns:
- CannotUpdateReservationWarning
-
of
factory method for an instance of CannotUpdateReservationWarningBuilder- Returns:
- builder
-
of
create builder for CannotUpdateReservationWarning instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-