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