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
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for ProductSelectionRemoveProductAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for ProductSelectionRemoveProductActionbuilder(ProductSelectionRemoveProductAction template) create builder for ProductSelectionRemoveProductAction instancecopyDeep()deepCopy(ProductSelectionRemoveProductAction template) factory method to create a deep copy of ProductSelectionRemoveProductAction@NotNull @Valid ProductResourceIdentifierResourceIdentifier of the Productof()factory methodof(ProductSelectionRemoveProductAction template) factory method to create a shallow copy ProductSelectionRemoveProductActionvoidsetProduct(ProductResourceIdentifier product) ResourceIdentifier of the Productstatic com.fasterxml.jackson.core.type.TypeReference<ProductSelectionRemoveProductAction>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.product_selection.ProductSelectionUpdateAction
getAction, withProductSelectionUpdateActionMethods 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
-
copyDeep
ProductSelectionRemoveProductAction copyDeep()- Specified by:
copyDeepin interfaceProductSelectionUpdateAction
-
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
-