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