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