Class BusinessUnitAddBillingAddressIdActionBuilder
java.lang.Object
com.commercetools.api.models.business_unit.BusinessUnitAddBillingAddressIdActionBuilder
- All Implemented Interfaces:
Builder<BusinessUnitAddBillingAddressIdAction>
public class BusinessUnitAddBillingAddressIdActionBuilder
extends Object
implements Builder<BusinessUnitAddBillingAddressIdAction>
BusinessUnitAddBillingAddressIdActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
BusinessUnitAddBillingAddressIdAction businessUnitAddBillingAddressIdAction = BusinessUnitAddBillingAddressIdAction.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 BusinessUnitAddBillingAddressIdAction with checking for non-null required valuesbuilds BusinessUnitAddBillingAddressIdAction 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 BusinessUnitAddBillingAddressIdActionBuilderof
(BusinessUnitAddBillingAddressIdAction template) create builder for BusinessUnitAddBillingAddressIdAction instance
-
Constructor Details
-
BusinessUnitAddBillingAddressIdActionBuilder
public BusinessUnitAddBillingAddressIdActionBuilder()
-
-
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 BusinessUnitAddBillingAddressIdAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<BusinessUnitAddBillingAddressIdAction>
- Returns:
- BusinessUnitAddBillingAddressIdAction
-
buildUnchecked
builds BusinessUnitAddBillingAddressIdAction without checking for non-null required values- Returns:
- BusinessUnitAddBillingAddressIdAction
-
of
factory method for an instance of BusinessUnitAddBillingAddressIdActionBuilder- Returns:
- builder
-
of
public static BusinessUnitAddBillingAddressIdActionBuilder of(BusinessUnitAddBillingAddressIdAction template) create builder for BusinessUnitAddBillingAddressIdAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-