Class CustomerChangeAddressActionBuilder
java.lang.Object
com.commercetools.api.models.customer.CustomerChangeAddressActionBuilder
- All Implemented Interfaces:
Builder<CustomerChangeAddressAction>
public class CustomerChangeAddressActionBuilder
extends Object
implements Builder<CustomerChangeAddressAction>
CustomerChangeAddressActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
CustomerChangeAddressAction customerChangeAddressAction = CustomerChangeAddressAction.builder()
.address(addressBuilder -> addressBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddress
(BaseAddress address) Value to set.address
(Function<BaseAddressBuilder, BaseAddressBuilder> builder) Value to set.id
of the Address to change.addressKey
(String addressKey) key
of the Address to change.build()
builds CustomerChangeAddressAction with checking for non-null required valuesbuilds CustomerChangeAddressAction without checking for non-null required valuesValue to set.id
of the Address to change.key
of the Address to change.of()
factory method for an instance of CustomerChangeAddressActionBuilderof
(CustomerChangeAddressAction template) create builder for CustomerChangeAddressAction instancewithAddress
(Function<BaseAddressBuilder, BaseAddress> builder) Value to set.
-
Constructor Details
-
CustomerChangeAddressActionBuilder
public CustomerChangeAddressActionBuilder()
-
-
Method Details
-
addressId
id
of the Address to change.- Parameters:
addressId
- value to be set- Returns:
- Builder
-
addressKey
key
of the Address to change.- Parameters:
addressKey
- value to be set- Returns:
- Builder
-
address
public CustomerChangeAddressActionBuilder address(Function<BaseAddressBuilder, BaseAddressBuilder> builder) Value to set.
- Parameters:
builder
- function to build the address value- Returns:
- Builder
-
withAddress
public CustomerChangeAddressActionBuilder withAddress(Function<BaseAddressBuilder, BaseAddress> builder) Value to set.
- Parameters:
builder
- function to build the address value- Returns:
- Builder
-
address
Value to set.
- Parameters:
address
- value to be set- Returns:
- Builder
-
getAddressId
id
of the Address to change.- Returns:
- addressId
-
getAddressKey
key
of the Address to change.- Returns:
- addressKey
-
getAddress
Value to set.
- Returns:
- address
-
build
builds CustomerChangeAddressAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<CustomerChangeAddressAction>
- Returns:
- CustomerChangeAddressAction
-
buildUnchecked
builds CustomerChangeAddressAction without checking for non-null required values- Returns:
- CustomerChangeAddressAction
-
of
factory method for an instance of CustomerChangeAddressActionBuilder- Returns:
- builder
-
of
create builder for CustomerChangeAddressAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-