Class DeliveryRemovedMessagePayloadBuilder
java.lang.Object
com.commercetools.api.models.message.DeliveryRemovedMessagePayloadBuilder
- All Implemented Interfaces:
Builder<DeliveryRemovedMessagePayload>
public class DeliveryRemovedMessagePayloadBuilder
extends Object
implements Builder<DeliveryRemovedMessagePayload>
DeliveryRemovedMessagePayloadBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
DeliveryRemovedMessagePayload deliveryRemovedMessagePayload = DeliveryRemovedMessagePayload.builder()
.delivery(deliveryBuilder -> deliveryBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds DeliveryRemovedMessagePayload with checking for non-null required valuesbuilds DeliveryRemovedMessagePayload without checking for non-null required valuesThe Delivery that was removed from the Order.delivery
(Function<DeliveryBuilder, DeliveryBuilder> builder) The Delivery that was removed from the Order.The Delivery that was removed from the Order.User-defined unique identifier of the Shipping Method in a Cart withMultiple
ShippingMode.of()
factory method for an instance of DeliveryRemovedMessagePayloadBuilderof
(DeliveryRemovedMessagePayload template) create builder for DeliveryRemovedMessagePayload instanceshippingKey
(String shippingKey) User-defined unique identifier of the Shipping Method in a Cart withMultiple
ShippingMode.withDelivery
(Function<DeliveryBuilder, Delivery> builder) The Delivery that was removed from the Order.
-
Constructor Details
-
DeliveryRemovedMessagePayloadBuilder
public DeliveryRemovedMessagePayloadBuilder()
-
-
Method Details
-
delivery
public DeliveryRemovedMessagePayloadBuilder delivery(Function<DeliveryBuilder, DeliveryBuilder> builder) The Delivery that was removed from the Order.
- Parameters:
builder
- function to build the delivery value- Returns:
- Builder
-
withDelivery
public DeliveryRemovedMessagePayloadBuilder withDelivery(Function<DeliveryBuilder, Delivery> builder) The Delivery that was removed from the Order.
- Parameters:
builder
- function to build the delivery value- Returns:
- Builder
-
delivery
The Delivery that was removed from the Order.
- Parameters:
delivery
- value to be set- Returns:
- Builder
-
shippingKey
User-defined unique identifier of the Shipping Method in a Cart with
Multiple
ShippingMode.- Parameters:
shippingKey
- value to be set- Returns:
- Builder
-
getDelivery
The Delivery that was removed from the Order.
- Returns:
- delivery
-
getShippingKey
User-defined unique identifier of the Shipping Method in a Cart with
Multiple
ShippingMode.- Returns:
- shippingKey
-
build
builds DeliveryRemovedMessagePayload with checking for non-null required values- Specified by:
build
in interfaceBuilder<DeliveryRemovedMessagePayload>
- Returns:
- DeliveryRemovedMessagePayload
-
buildUnchecked
builds DeliveryRemovedMessagePayload without checking for non-null required values- Returns:
- DeliveryRemovedMessagePayload
-
of
factory method for an instance of DeliveryRemovedMessagePayloadBuilder- Returns:
- builder
-
of
create builder for DeliveryRemovedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-