Class BusinessUnitChangeAddressActionBuilder
java.lang.Object
com.commercetools.api.models.business_unit.BusinessUnitChangeAddressActionBuilder
- All Implemented Interfaces:
Builder<BusinessUnitChangeAddressAction>
public class BusinessUnitChangeAddressActionBuilder
extends Object
implements Builder<BusinessUnitChangeAddressAction>
BusinessUnitChangeAddressActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
BusinessUnitChangeAddressAction businessUnitChangeAddressAction = BusinessUnitChangeAddressAction.builder()
.address(addressBuilder -> addressBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddress
(BaseAddress address) New address to set.address
(Function<BaseAddressBuilder, BaseAddressBuilder> builder) New address to set.ID of the address to change.addressKey
(String addressKey) Key of the address to change.build()
builds BusinessUnitChangeAddressAction with checking for non-null required valuesbuilds BusinessUnitChangeAddressAction without checking for non-null required valuesNew address to set.ID of the address to change.Key of the address to change.of()
factory method for an instance of BusinessUnitChangeAddressActionBuilderof
(BusinessUnitChangeAddressAction template) create builder for BusinessUnitChangeAddressAction instancewithAddress
(Function<BaseAddressBuilder, BaseAddress> builder) New address to set.
-
Constructor Details
-
BusinessUnitChangeAddressActionBuilder
public BusinessUnitChangeAddressActionBuilder()
-
-
Method Details
-
addressId
ID of the address to change. Either
addressId
oraddressKey
is required.- Parameters:
addressId
- value to be set- Returns:
- Builder
-
addressKey
Key of the address to change. Either
addressId
oraddressKey
is required.- Parameters:
addressKey
- value to be set- Returns:
- Builder
-
address
public BusinessUnitChangeAddressActionBuilder address(Function<BaseAddressBuilder, BaseAddressBuilder> builder) New address to set.
- Parameters:
builder
- function to build the address value- Returns:
- Builder
-
withAddress
public BusinessUnitChangeAddressActionBuilder withAddress(Function<BaseAddressBuilder, BaseAddress> builder) New address to set.
- Parameters:
builder
- function to build the address value- Returns:
- Builder
-
address
New address to set.
- Parameters:
address
- value to be set- Returns:
- Builder
-
getAddressId
ID of the address to change. Either
addressId
oraddressKey
is required.- Returns:
- addressId
-
getAddressKey
Key of the address to change. Either
addressId
oraddressKey
is required.- Returns:
- addressKey
-
getAddress
New address to set.
- Returns:
- address
-
build
builds BusinessUnitChangeAddressAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<BusinessUnitChangeAddressAction>
- Returns:
- BusinessUnitChangeAddressAction
-
buildUnchecked
builds BusinessUnitChangeAddressAction without checking for non-null required values- Returns:
- BusinessUnitChangeAddressAction
-
of
factory method for an instance of BusinessUnitChangeAddressActionBuilder- Returns:
- builder
-
of
create builder for BusinessUnitChangeAddressAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-