Package com.commercetools.api.models.me
Class MyBusinessUnitAddAddressActionBuilder
java.lang.Object
com.commercetools.api.models.me.MyBusinessUnitAddAddressActionBuilder
- All Implemented Interfaces:
Builder<MyBusinessUnitAddAddressAction>
public class MyBusinessUnitAddAddressActionBuilder
extends Object
implements Builder<MyBusinessUnitAddAddressAction>
MyBusinessUnitAddAddressActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
MyBusinessUnitAddAddressAction myBusinessUnitAddAddressAction = MyBusinessUnitAddAddressAction.builder()
.address(addressBuilder -> addressBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddress
(BaseAddress address) The address to add toaddresses
.address
(Function<BaseAddressBuilder, BaseAddressBuilder> builder) The address to add toaddresses
.build()
builds MyBusinessUnitAddAddressAction with checking for non-null required valuesbuilds MyBusinessUnitAddAddressAction without checking for non-null required valuesThe address to add toaddresses
.of()
factory method for an instance of MyBusinessUnitAddAddressActionBuilderof
(MyBusinessUnitAddAddressAction template) create builder for MyBusinessUnitAddAddressAction instancewithAddress
(Function<BaseAddressBuilder, BaseAddress> builder) The address to add toaddresses
.
-
Constructor Details
-
MyBusinessUnitAddAddressActionBuilder
public MyBusinessUnitAddAddressActionBuilder()
-
-
Method Details
-
address
public MyBusinessUnitAddAddressActionBuilder address(Function<BaseAddressBuilder, BaseAddressBuilder> builder) The address to add to
addresses
.- Parameters:
builder
- function to build the address value- Returns:
- Builder
-
withAddress
public MyBusinessUnitAddAddressActionBuilder withAddress(Function<BaseAddressBuilder, BaseAddress> builder) The address to add to
addresses
.- Parameters:
builder
- function to build the address value- Returns:
- Builder
-
address
The address to add to
addresses
.- Parameters:
address
- value to be set- Returns:
- Builder
-
getAddress
The address to add to
addresses
.- Returns:
- address
-
build
builds MyBusinessUnitAddAddressAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<MyBusinessUnitAddAddressAction>
- Returns:
- MyBusinessUnitAddAddressAction
-
buildUnchecked
builds MyBusinessUnitAddAddressAction without checking for non-null required values- Returns:
- MyBusinessUnitAddAddressAction
-
of
factory method for an instance of MyBusinessUnitAddAddressActionBuilder- Returns:
- builder
-
of
create builder for MyBusinessUnitAddAddressAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-