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