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