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