Interface ProductSelectionRemoveProductAction
- All Superinterfaces:
ProductSelectionUpdateAction
,ResourceUpdateAction<ProductSelectionUpdateAction>
ProductSelectionRemoveProductAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductSelectionRemoveProductAction productSelectionRemoveProductAction = ProductSelectionRemoveProductAction.builder()
.product(productBuilder -> productBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for ProductSelectionRemoveProductAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ProductSelectionRemoveProductActionbuilder
(ProductSelectionRemoveProductAction template) create builder for ProductSelectionRemoveProductAction instancedeepCopy
(ProductSelectionRemoveProductAction template) factory method to create a deep copy of ProductSelectionRemoveProductAction@NotNull @Valid ProductResourceIdentifier
ResourceIdentifier of the Productof()
factory methodof
(ProductSelectionRemoveProductAction template) factory method to create a shallow copy ProductSelectionRemoveProductActionvoid
setProduct
(ProductResourceIdentifier product) ResourceIdentifier of the Productstatic com.fasterxml.jackson.core.type.TypeReference<ProductSelectionRemoveProductAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.product_selection.ProductSelectionUpdateAction
getAction, withProductSelectionUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
REMOVE_PRODUCT
discriminator value for ProductSelectionRemoveProductAction- See Also:
-
-
Method Details
-
getProduct
ResourceIdentifier of the Product
- Returns:
- product
-
setProduct
ResourceIdentifier of the Product
- Parameters:
product
- value to be set
-
of
factory method- Returns:
- instance of ProductSelectionRemoveProductAction
-
of
factory method to create a shallow copy ProductSelectionRemoveProductAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static ProductSelectionRemoveProductAction deepCopy(@Nullable ProductSelectionRemoveProductAction template) factory method to create a deep copy of ProductSelectionRemoveProductAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProductSelectionRemoveProductAction- Returns:
- builder
-
builder
static ProductSelectionRemoveProductActionBuilder builder(ProductSelectionRemoveProductAction template) create builder for ProductSelectionRemoveProductAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withProductSelectionRemoveProductAction
default <T> T withProductSelectionRemoveProductAction(Function<ProductSelectionRemoveProductAction, 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<ProductSelectionRemoveProductAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-