Package com.commercetools.api.models.me
Class MyCustomerSetDefaultBillingAddressActionBuilder
java.lang.Object
com.commercetools.api.models.me.MyCustomerSetDefaultBillingAddressActionBuilder
- All Implemented Interfaces:
Builder<MyCustomerSetDefaultBillingAddressAction>
public class MyCustomerSetDefaultBillingAddressActionBuilder
extends Object
implements Builder<MyCustomerSetDefaultBillingAddressAction>
MyCustomerSetDefaultBillingAddressActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
MyCustomerSetDefaultBillingAddressAction myCustomerSetDefaultBillingAddressAction = MyCustomerSetDefaultBillingAddressAction.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionid
of the Address to become the default billing address.addressKey
(String addressKey) key
of the Address to become the default billing address.build()
builds MyCustomerSetDefaultBillingAddressAction with checking for non-null required valuesbuilds MyCustomerSetDefaultBillingAddressAction without checking for non-null required valuesid
of the Address to become the default billing address.key
of the Address to become the default billing address.of()
factory method for an instance of MyCustomerSetDefaultBillingAddressActionBuilderof
(MyCustomerSetDefaultBillingAddressAction template) create builder for MyCustomerSetDefaultBillingAddressAction instance
-
Constructor Details
-
MyCustomerSetDefaultBillingAddressActionBuilder
public MyCustomerSetDefaultBillingAddressActionBuilder()
-
-
Method Details
-
addressId
id
of the Address to become the default billing address.- Parameters:
addressId
- value to be set- Returns:
- Builder
-
addressKey
key
of the Address to become the default billing address.- Parameters:
addressKey
- value to be set- Returns:
- Builder
-
getAddressId
id
of the Address to become the default billing address.- Returns:
- addressId
-
getAddressKey
key
of the Address to become the default billing address.- Returns:
- addressKey
-
build
builds MyCustomerSetDefaultBillingAddressAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<MyCustomerSetDefaultBillingAddressAction>
- Returns:
- MyCustomerSetDefaultBillingAddressAction
-
buildUnchecked
builds MyCustomerSetDefaultBillingAddressAction without checking for non-null required values- Returns:
- MyCustomerSetDefaultBillingAddressAction
-
of
factory method for an instance of MyCustomerSetDefaultBillingAddressActionBuilder- Returns:
- builder
-
of
public static MyCustomerSetDefaultBillingAddressActionBuilder of(MyCustomerSetDefaultBillingAddressAction template) create builder for MyCustomerSetDefaultBillingAddressAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-