Package com.commercetools.api.models.me
Interface MyCustomerAddShippingAddressIdAction
- All Superinterfaces:
MyCustomerUpdateAction
,ResourceUpdateAction<MyCustomerUpdateAction>
Adds an address from the addresses
array to shippingAddressIds
. Either addressId
or addressKey
is required.
Example to create an instance using the builder pattern
MyCustomerAddShippingAddressIdAction myCustomerAddShippingAddressIdAction = MyCustomerAddShippingAddressIdAction.builder()
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for MyCustomerAddShippingAddressIdAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for MyCustomerAddShippingAddressIdActionbuilder
(MyCustomerAddShippingAddressIdAction template) create builder for MyCustomerAddShippingAddressIdAction instancedeepCopy
(MyCustomerAddShippingAddressIdAction template) factory method to create a deep copy of MyCustomerAddShippingAddressIdActionid
of the Address to become a shipping address.key
of the Address to become a shipping address.of()
factory methodof
(MyCustomerAddShippingAddressIdAction template) factory method to create a shallow copy MyCustomerAddShippingAddressIdActionvoid
setAddressId
(String addressId) id
of the Address to become a shipping address.void
setAddressKey
(String addressKey) key
of the Address to become a shipping address.static com.fasterxml.jackson.core.type.TypeReference<MyCustomerAddShippingAddressIdAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.me.MyCustomerUpdateAction
getAction, withMyCustomerUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
ADD_SHIPPING_ADDRESS_ID
discriminator value for MyCustomerAddShippingAddressIdAction- See Also:
-
-
Method Details
-
getAddressId
String getAddressId()id
of the Address to become a shipping address.- Returns:
- addressId
-
getAddressKey
String getAddressKey()key
of the Address to become a shipping address.- Returns:
- addressKey
-
setAddressId
id
of the Address to become a shipping address.- Parameters:
addressId
- value to be set
-
setAddressKey
key
of the Address to become a shipping address.- Parameters:
addressKey
- value to be set
-
of
factory method- Returns:
- instance of MyCustomerAddShippingAddressIdAction
-
of
factory method to create a shallow copy MyCustomerAddShippingAddressIdAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static MyCustomerAddShippingAddressIdAction deepCopy(@Nullable MyCustomerAddShippingAddressIdAction template) factory method to create a deep copy of MyCustomerAddShippingAddressIdAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for MyCustomerAddShippingAddressIdAction- Returns:
- builder
-
builder
static MyCustomerAddShippingAddressIdActionBuilder builder(MyCustomerAddShippingAddressIdAction template) create builder for MyCustomerAddShippingAddressIdAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withMyCustomerAddShippingAddressIdAction
default <T> T withMyCustomerAddShippingAddressIdAction(Function<MyCustomerAddShippingAddressIdAction, T> helper) accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
static com.fasterxml.jackson.core.type.TypeReference<MyCustomerAddShippingAddressIdAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-