Class CustomerDefaultBillingAddressSetMessagePayloadBuilder
java.lang.Object
com.commercetools.api.models.message.CustomerDefaultBillingAddressSetMessagePayloadBuilder
- All Implemented Interfaces:
Builder<CustomerDefaultBillingAddressSetMessagePayload>
public class CustomerDefaultBillingAddressSetMessagePayloadBuilder
extends Object
implements Builder<CustomerDefaultBillingAddressSetMessagePayload>
CustomerDefaultBillingAddressSetMessagePayloadBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
CustomerDefaultBillingAddressSetMessagePayload customerDefaultBillingAddressSetMessagePayload = CustomerDefaultBillingAddressSetMessagePayload.builder()
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe address that was set as the default billing address.address
(Function<AddressBuilder, AddressBuilder> builder) The address that was set as the default billing address.build()
builds CustomerDefaultBillingAddressSetMessagePayload with checking for non-null required valuesbuilds CustomerDefaultBillingAddressSetMessagePayload without checking for non-null required valuesThe address that was set as the default billing address.of()
factory method for an instance of CustomerDefaultBillingAddressSetMessagePayloadBuildercreate builder for CustomerDefaultBillingAddressSetMessagePayload instancewithAddress
(Function<AddressBuilder, Address> builder) The address that was set as the default billing address.
-
Constructor Details
-
CustomerDefaultBillingAddressSetMessagePayloadBuilder
public CustomerDefaultBillingAddressSetMessagePayloadBuilder()
-
-
Method Details
-
address
public CustomerDefaultBillingAddressSetMessagePayloadBuilder address(Function<AddressBuilder, AddressBuilder> builder) The address that was set as the default billing address.
- Parameters:
builder
- function to build the address value- Returns:
- Builder
-
withAddress
public CustomerDefaultBillingAddressSetMessagePayloadBuilder withAddress(Function<AddressBuilder, Address> builder) The address that was set as the default billing address.
- Parameters:
builder
- function to build the address value- Returns:
- Builder
-
address
The address that was set as the default billing address.
- Parameters:
address
- value to be set- Returns:
- Builder
-
getAddress
The address that was set as the default billing address.
- Returns:
- address
-
build
builds CustomerDefaultBillingAddressSetMessagePayload with checking for non-null required values- Specified by:
build
in interfaceBuilder<CustomerDefaultBillingAddressSetMessagePayload>
- Returns:
- CustomerDefaultBillingAddressSetMessagePayload
-
buildUnchecked
builds CustomerDefaultBillingAddressSetMessagePayload without checking for non-null required values- Returns:
- CustomerDefaultBillingAddressSetMessagePayload
-
of
factory method for an instance of CustomerDefaultBillingAddressSetMessagePayloadBuilder- Returns:
- builder
-
of
public static CustomerDefaultBillingAddressSetMessagePayloadBuilder of(CustomerDefaultBillingAddressSetMessagePayload template) create builder for CustomerDefaultBillingAddressSetMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-