Interface CustomerAddStoreAction
- All Superinterfaces:
CustomerUpdateAction
,ResourceUpdateAction<CustomerUpdateAction>
Associates the Customer with a Store.
Example to create an instance using the builder pattern
CustomerAddStoreAction customerAddStoreAction = CustomerAddStoreAction.builder()
.store(storeBuilder -> storeBuilder)
.build()
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for CustomerAddStoreActionbuilder
(CustomerAddStoreAction template) create builder for CustomerAddStoreAction instancestatic CustomerAddStoreAction
deepCopy
(CustomerAddStoreAction template) factory method to create a deep copy of CustomerAddStoreAction@NotNull @Valid StoreResourceIdentifier
getStore()
ResourceIdentifier of the Store to add.static CustomerAddStoreAction
of()
factory methodstatic CustomerAddStoreAction
of
(CustomerAddStoreAction template) factory method to create a shallow copy CustomerAddStoreActionvoid
setStore
(StoreResourceIdentifier store) ResourceIdentifier of the Store to add.static com.fasterxml.jackson.core.type.TypeReference<CustomerAddStoreAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.customer.CustomerUpdateAction
getAction, withCustomerUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
ADD_STORE
discriminator value for CustomerAddStoreAction- See Also:
-
-
Method Details
-
getStore
ResourceIdentifier of the Store to add.
- Returns:
- store
-
setStore
ResourceIdentifier of the Store to add.
- Parameters:
store
- value to be set
-
of
factory method- Returns:
- instance of CustomerAddStoreAction
-
of
factory method to create a shallow copy CustomerAddStoreAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of CustomerAddStoreAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CustomerAddStoreAction- Returns:
- builder
-
builder
create builder for CustomerAddStoreAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withCustomerAddStoreAction
accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-