Class DeliveryAddressSetMessagePayloadBuilder
java.lang.Object
com.commercetools.api.models.message.DeliveryAddressSetMessagePayloadBuilder
- All Implemented Interfaces:
Builder<DeliveryAddressSetMessagePayload>
public class DeliveryAddressSetMessagePayloadBuilder
extends Object
implements Builder<DeliveryAddressSetMessagePayload>
DeliveryAddressSetMessagePayloadBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
DeliveryAddressSetMessagePayload deliveryAddressSetMessagePayload = DeliveryAddressSetMessagePayload.builder()
.deliveryId("{deliveryId}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionAddress after the Set Delivery Address update action.address
(Function<AddressBuilder, AddressBuilder> builder) Address after the Set Delivery Address update action.build()
builds DeliveryAddressSetMessagePayload with checking for non-null required valuesbuilds DeliveryAddressSetMessagePayload without checking for non-null required valuesdeliveryId
(String deliveryId) Unique identifier of the Delivery.Address after the Set Delivery Address update action.Unique identifier of the Delivery.Address before the Set Delivery Address update action.User-defined unique identifier of the Shipping Method in a Cart withMultiple
ShippingMode.of()
factory method for an instance of DeliveryAddressSetMessagePayloadBuilderof
(DeliveryAddressSetMessagePayload template) create builder for DeliveryAddressSetMessagePayload instanceoldAddress
(Address oldAddress) Address before the Set Delivery Address update action.oldAddress
(Function<AddressBuilder, AddressBuilder> builder) Address before the Set Delivery Address update action.shippingKey
(String shippingKey) User-defined unique identifier of the Shipping Method in a Cart withMultiple
ShippingMode.withAddress
(Function<AddressBuilder, Address> builder) Address after the Set Delivery Address update action.withOldAddress
(Function<AddressBuilder, Address> builder) Address before the Set Delivery Address update action.
-
Constructor Details
-
DeliveryAddressSetMessagePayloadBuilder
public DeliveryAddressSetMessagePayloadBuilder()
-
-
Method Details
-
deliveryId
Unique identifier of the Delivery.
- Parameters:
deliveryId
- value to be set- Returns:
- Builder
-
address
public DeliveryAddressSetMessagePayloadBuilder address(Function<AddressBuilder, AddressBuilder> builder) Address after the Set Delivery Address update action.
- Parameters:
builder
- function to build the address value- Returns:
- Builder
-
withAddress
public DeliveryAddressSetMessagePayloadBuilder withAddress(Function<AddressBuilder, Address> builder) Address after the Set Delivery Address update action.
- Parameters:
builder
- function to build the address value- Returns:
- Builder
-
address
Address after the Set Delivery Address update action.
- Parameters:
address
- value to be set- Returns:
- Builder
-
oldAddress
public DeliveryAddressSetMessagePayloadBuilder oldAddress(Function<AddressBuilder, AddressBuilder> builder) Address before the Set Delivery Address update action.
- Parameters:
builder
- function to build the oldAddress value- Returns:
- Builder
-
withOldAddress
public DeliveryAddressSetMessagePayloadBuilder withOldAddress(Function<AddressBuilder, Address> builder) Address before the Set Delivery Address update action.
- Parameters:
builder
- function to build the oldAddress value- Returns:
- Builder
-
oldAddress
Address before the Set Delivery Address update action.
- Parameters:
oldAddress
- 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
-
getDeliveryId
Unique identifier of the Delivery.
- Returns:
- deliveryId
-
getAddress
Address after the Set Delivery Address update action.
- Returns:
- address
-
getOldAddress
Address before the Set Delivery Address update action.
- Returns:
- oldAddress
-
getShippingKey
User-defined unique identifier of the Shipping Method in a Cart with
Multiple
ShippingMode.- Returns:
- shippingKey
-
build
builds DeliveryAddressSetMessagePayload with checking for non-null required values- Specified by:
build
in interfaceBuilder<DeliveryAddressSetMessagePayload>
- Returns:
- DeliveryAddressSetMessagePayload
-
buildUnchecked
builds DeliveryAddressSetMessagePayload without checking for non-null required values- Returns:
- DeliveryAddressSetMessagePayload
-
of
factory method for an instance of DeliveryAddressSetMessagePayloadBuilder- Returns:
- builder
-
of
create builder for DeliveryAddressSetMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-