Class OrderShippingAddressSetMessagePayloadBuilder
java.lang.Object
com.commercetools.api.models.message.OrderShippingAddressSetMessagePayloadBuilder
- All Implemented Interfaces:
Builder<OrderShippingAddressSetMessagePayload>
public class OrderShippingAddressSetMessagePayloadBuilder
extends Object
implements Builder<OrderShippingAddressSetMessagePayload>
OrderShippingAddressSetMessagePayloadBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
OrderShippingAddressSetMessagePayload orderShippingAddressSetMessagePayload = OrderShippingAddressSetMessagePayload.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionShipping address on the Order after the Set Shipping Address update action.address
(Function<AddressBuilder, AddressBuilder> builder) Shipping address on the Order after the Set Shipping Address update action.build()
builds OrderShippingAddressSetMessagePayload with checking for non-null required valuesbuilds OrderShippingAddressSetMessagePayload without checking for non-null required valuesShipping address on the Order after the Set Shipping Address update action.Shipping address on the Order before the Set Shipping Address update action.of()
factory method for an instance of OrderShippingAddressSetMessagePayloadBuilderof
(OrderShippingAddressSetMessagePayload template) create builder for OrderShippingAddressSetMessagePayload instanceoldAddress
(Address oldAddress) Shipping address on the Order before the Set Shipping Address update action.oldAddress
(Function<AddressBuilder, AddressBuilder> builder) Shipping address on the Order before the Set Shipping Address update action.withAddress
(Function<AddressBuilder, Address> builder) Shipping address on the Order after the Set Shipping Address update action.withOldAddress
(Function<AddressBuilder, Address> builder) Shipping address on the Order before the Set Shipping Address update action.
-
Constructor Details
-
OrderShippingAddressSetMessagePayloadBuilder
public OrderShippingAddressSetMessagePayloadBuilder()
-
-
Method Details
-
address
public OrderShippingAddressSetMessagePayloadBuilder address(Function<AddressBuilder, AddressBuilder> builder) Shipping address on the Order after the Set Shipping Address update action.
- Parameters:
builder
- function to build the address value- Returns:
- Builder
-
withAddress
public OrderShippingAddressSetMessagePayloadBuilder withAddress(Function<AddressBuilder, Address> builder) Shipping address on the Order after the Set Shipping Address update action.
- Parameters:
builder
- function to build the address value- Returns:
- Builder
-
address
Shipping address on the Order after the Set Shipping Address update action.
- Parameters:
address
- value to be set- Returns:
- Builder
-
oldAddress
public OrderShippingAddressSetMessagePayloadBuilder oldAddress(Function<AddressBuilder, AddressBuilder> builder) Shipping address on the Order before the Set Shipping Address update action.
- Parameters:
builder
- function to build the oldAddress value- Returns:
- Builder
-
withOldAddress
public OrderShippingAddressSetMessagePayloadBuilder withOldAddress(Function<AddressBuilder, Address> builder) Shipping address on the Order before the Set Shipping Address update action.
- Parameters:
builder
- function to build the oldAddress value- Returns:
- Builder
-
oldAddress
Shipping address on the Order before the Set Shipping Address update action.
- Parameters:
oldAddress
- value to be set- Returns:
- Builder
-
getAddress
Shipping address on the Order after the Set Shipping Address update action.
- Returns:
- address
-
getOldAddress
Shipping address on the Order before the Set Shipping Address update action.
- Returns:
- oldAddress
-
build
builds OrderShippingAddressSetMessagePayload with checking for non-null required values- Specified by:
build
in interfaceBuilder<OrderShippingAddressSetMessagePayload>
- Returns:
- OrderShippingAddressSetMessagePayload
-
buildUnchecked
builds OrderShippingAddressSetMessagePayload without checking for non-null required values- Returns:
- OrderShippingAddressSetMessagePayload
-
of
factory method for an instance of OrderShippingAddressSetMessagePayloadBuilder- Returns:
- builder
-
of
public static OrderShippingAddressSetMessagePayloadBuilder of(OrderShippingAddressSetMessagePayload template) create builder for OrderShippingAddressSetMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-