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