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