Class CustomerAddAddressActionBuilder
java.lang.Object
com.commercetools.api.models.customer.CustomerAddAddressActionBuilder
- All Implemented Interfaces:
Builder<CustomerAddAddressAction>
public class CustomerAddAddressActionBuilder
extends Object
implements Builder<CustomerAddAddressAction>
CustomerAddAddressActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
CustomerAddAddressAction customerAddAddressAction = CustomerAddAddressAction.builder()
.address(addressBuilder -> addressBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddress
(BaseAddress address) Value to append to theaddresses
array.address
(Function<BaseAddressBuilder, BaseAddressBuilder> builder) Value to append to theaddresses
array.build()
builds CustomerAddAddressAction with checking for non-null required valuesbuilds CustomerAddAddressAction without checking for non-null required valuesValue to append to theaddresses
array.of()
factory method for an instance of CustomerAddAddressActionBuilderof
(CustomerAddAddressAction template) create builder for CustomerAddAddressAction instancewithAddress
(Function<BaseAddressBuilder, BaseAddress> builder) Value to append to theaddresses
array.
-
Constructor Details
-
CustomerAddAddressActionBuilder
public CustomerAddAddressActionBuilder()
-
-
Method Details
-
address
public CustomerAddAddressActionBuilder address(Function<BaseAddressBuilder, BaseAddressBuilder> builder) Value to append to the
addresses
array.- Parameters:
builder
- function to build the address value- Returns:
- Builder
-
withAddress
public CustomerAddAddressActionBuilder withAddress(Function<BaseAddressBuilder, BaseAddress> builder) Value to append to the
addresses
array.- Parameters:
builder
- function to build the address value- Returns:
- Builder
-
address
Value to append to the
addresses
array.- Parameters:
address
- value to be set- Returns:
- Builder
-
getAddress
Value to append to the
addresses
array.- Returns:
- address
-
build
builds CustomerAddAddressAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<CustomerAddAddressAction>
- Returns:
- CustomerAddAddressAction
-
buildUnchecked
builds CustomerAddAddressAction without checking for non-null required values- Returns:
- CustomerAddAddressAction
-
of
factory method for an instance of CustomerAddAddressActionBuilder- Returns:
- builder
-
of
create builder for CustomerAddAddressAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-