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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionidof the Address to become the default billing address.addressKey(String addressKey) keyof 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 valuesidof the Address to become the default billing address.keyof 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
idof the Address to become the default billing address.- Parameters:
addressId- value to be set- Returns:
- Builder
-
addressKey
keyof the Address to become the default billing address.- Parameters:
addressKey- value to be set- Returns:
- Builder
-
getAddressId
idof the Address to become the default billing address.- Returns:
- addressId
-
getAddressKey
keyof the Address to become the default billing address.- Returns:
- addressKey
-
build
builds MyCustomerSetDefaultBillingAddressAction with checking for non-null required values- Specified by:
buildin 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
-