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