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