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