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