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
-
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 CustomerSetDefaultBillingAddressAction with checking for non-null required valuesbuilds CustomerSetDefaultBillingAddressAction 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 CustomerSetDefaultBillingAddressActionBuilderof
(CustomerSetDefaultBillingAddressAction template) create builder for CustomerSetDefaultBillingAddressAction instance
-
Constructor Details
-
CustomerSetDefaultBillingAddressActionBuilder
public CustomerSetDefaultBillingAddressActionBuilder()
-
-
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 CustomerSetDefaultBillingAddressAction with checking for non-null required values- Specified by:
build
in 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
-