Package com.commercetools.api.models.me
Class MyCustomerChangeAddressActionBuilder
java.lang.Object
com.commercetools.api.models.me.MyCustomerChangeAddressActionBuilder
- All Implemented Interfaces:
Builder<MyCustomerChangeAddressAction>
public class MyCustomerChangeAddressActionBuilder
extends Object
implements Builder<MyCustomerChangeAddressAction>
MyCustomerChangeAddressActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
MyCustomerChangeAddressAction myCustomerChangeAddressAction = MyCustomerChangeAddressAction.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 MyCustomerChangeAddressAction with checking for non-null required valuesbuilds MyCustomerChangeAddressAction 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 MyCustomerChangeAddressActionBuilderof
(MyCustomerChangeAddressAction template) create builder for MyCustomerChangeAddressAction instancewithAddress
(Function<BaseAddressBuilder, BaseAddress> builder) Value to set.
-
Constructor Details
-
MyCustomerChangeAddressActionBuilder
public MyCustomerChangeAddressActionBuilder()
-
-
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 MyCustomerChangeAddressActionBuilder address(Function<BaseAddressBuilder, BaseAddressBuilder> builder) Value to set.
- Parameters:
builder
- function to build the address value- Returns:
- Builder
-
withAddress
public MyCustomerChangeAddressActionBuilder 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 MyCustomerChangeAddressAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<MyCustomerChangeAddressAction>
- Returns:
- MyCustomerChangeAddressAction
-
buildUnchecked
builds MyCustomerChangeAddressAction without checking for non-null required values- Returns:
- MyCustomerChangeAddressAction
-
of
factory method for an instance of MyCustomerChangeAddressActionBuilder- Returns:
- builder
-
of
create builder for MyCustomerChangeAddressAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-