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