Class CartEstimatedDeliverySetMessagePayloadBuilder
java.lang.Object
com.commercetools.api.models.message.CartEstimatedDeliverySetMessagePayloadBuilder
- All Implemented Interfaces:
Builder<CartEstimatedDeliverySetMessagePayload>
public class CartEstimatedDeliverySetMessagePayloadBuilder
extends Object
implements Builder<CartEstimatedDeliverySetMessagePayload>
CartEstimatedDeliverySetMessagePayloadBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
CartEstimatedDeliverySetMessagePayload cartEstimatedDeliverySetMessagePayload = CartEstimatedDeliverySetMessagePayload.builder()
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds CartEstimatedDeliverySetMessagePayload with checking for non-null required valuesbuilds CartEstimatedDeliverySetMessagePayload without checking for non-null required valuesestimatedDelivery(EstimatedDelivery estimatedDelivery) Estimated delivery window on the Cart after the Set Estimated Delivery update action.Estimated delivery window on the Cart after the Set Estimated Delivery update action.Estimated delivery window on the Cart after the Set Estimated Delivery update action.keyof the Shipping that was updated.of()factory method for an instance of CartEstimatedDeliverySetMessagePayloadBuilderof(CartEstimatedDeliverySetMessagePayload template) create builder for CartEstimatedDeliverySetMessagePayload instanceshippingKey(String shippingKey) keyof the Shipping that was updated.Estimated delivery window on the Cart after the Set Estimated Delivery update action.
-
Constructor Details
-
CartEstimatedDeliverySetMessagePayloadBuilder
public CartEstimatedDeliverySetMessagePayloadBuilder()
-
-
Method Details
-
estimatedDelivery
public CartEstimatedDeliverySetMessagePayloadBuilder estimatedDelivery(Function<EstimatedDeliveryBuilder, EstimatedDeliveryBuilder> builder) Estimated delivery window on the Cart after the Set Estimated Delivery update action.
- Parameters:
builder- function to build the estimatedDelivery value- Returns:
- Builder
-
withEstimatedDelivery
public CartEstimatedDeliverySetMessagePayloadBuilder withEstimatedDelivery(Function<EstimatedDeliveryBuilder, EstimatedDelivery> builder) Estimated delivery window on the Cart after the Set Estimated Delivery update action.
- Parameters:
builder- function to build the estimatedDelivery value- Returns:
- Builder
-
estimatedDelivery
public CartEstimatedDeliverySetMessagePayloadBuilder estimatedDelivery(@Nullable EstimatedDelivery estimatedDelivery) Estimated delivery window on the Cart after the Set Estimated Delivery update action.
- Parameters:
estimatedDelivery- value to be set- Returns:
- Builder
-
shippingKey
keyof the Shipping that was updated. Only present for Carts withMultipleShippingMode.- Parameters:
shippingKey- value to be set- Returns:
- Builder
-
getEstimatedDelivery
Estimated delivery window on the Cart after the Set Estimated Delivery update action.
- Returns:
- estimatedDelivery
-
getShippingKey
keyof the Shipping that was updated. Only present for Carts withMultipleShippingMode.- Returns:
- shippingKey
-
build
builds CartEstimatedDeliverySetMessagePayload with checking for non-null required values- Specified by:
buildin interfaceBuilder<CartEstimatedDeliverySetMessagePayload>- Returns:
- CartEstimatedDeliverySetMessagePayload
-
buildUnchecked
builds CartEstimatedDeliverySetMessagePayload without checking for non-null required values- Returns:
- CartEstimatedDeliverySetMessagePayload
-
of
factory method for an instance of CartEstimatedDeliverySetMessagePayloadBuilder- Returns:
- builder
-
of
public static CartEstimatedDeliverySetMessagePayloadBuilder of(CartEstimatedDeliverySetMessagePayload template) create builder for CartEstimatedDeliverySetMessagePayload instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-