Package com.commercetools.api.models.me
Class MyBusinessUnitAddBillingAddressIdActionBuilder
java.lang.Object
com.commercetools.api.models.me.MyBusinessUnitAddBillingAddressIdActionBuilder
- All Implemented Interfaces:
Builder<MyBusinessUnitAddBillingAddressIdAction>
public class MyBusinessUnitAddBillingAddressIdActionBuilder
extends Object
implements Builder<MyBusinessUnitAddBillingAddressIdAction>
MyBusinessUnitAddBillingAddressIdActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
MyBusinessUnitAddBillingAddressIdAction myBusinessUnitAddBillingAddressIdAction = MyBusinessUnitAddBillingAddressIdAction.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionID of the address to add as a billing address.addressKey
(String addressKey) Key of the address to add as a billing address.build()
builds MyBusinessUnitAddBillingAddressIdAction with checking for non-null required valuesbuilds MyBusinessUnitAddBillingAddressIdAction without checking for non-null required valuesID of the address to add as a billing address.Key of the address to add as a billing address.of()
factory method for an instance of MyBusinessUnitAddBillingAddressIdActionBuilderof
(MyBusinessUnitAddBillingAddressIdAction template) create builder for MyBusinessUnitAddBillingAddressIdAction instance
-
Constructor Details
-
MyBusinessUnitAddBillingAddressIdActionBuilder
public MyBusinessUnitAddBillingAddressIdActionBuilder()
-
-
Method Details
-
addressId
ID of the address to add as a billing address. Either
addressId
oraddressKey
is required.- Parameters:
addressId
- value to be set- Returns:
- Builder
-
addressKey
Key of the address to add as a billing address. Either
addressId
oraddressKey
is required.- Parameters:
addressKey
- value to be set- Returns:
- Builder
-
getAddressId
ID of the address to add as a billing address. Either
addressId
oraddressKey
is required.- Returns:
- addressId
-
getAddressKey
Key of the address to add as a billing address. Either
addressId
oraddressKey
is required.- Returns:
- addressKey
-
build
builds MyBusinessUnitAddBillingAddressIdAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<MyBusinessUnitAddBillingAddressIdAction>
- Returns:
- MyBusinessUnitAddBillingAddressIdAction
-
buildUnchecked
builds MyBusinessUnitAddBillingAddressIdAction without checking for non-null required values- Returns:
- MyBusinessUnitAddBillingAddressIdAction
-
of
factory method for an instance of MyBusinessUnitAddBillingAddressIdActionBuilder- Returns:
- builder
-
of
public static MyBusinessUnitAddBillingAddressIdActionBuilder of(MyBusinessUnitAddBillingAddressIdAction template) create builder for MyBusinessUnitAddBillingAddressIdAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-