Interface AddProductSelectionChange
- All Superinterfaces:
Change
Change triggered by the Add Product Selection update action.
Example to create an instance using the builder pattern
AddProductSelectionChange addProductSelectionChange = AddProductSelectionChange.builder()
.change("{change}")
.previousValue(previousValueBuilder -> previousValueBuilder)
.nextValue(nextValueBuilder -> nextValueBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for AddProductSelectionChange -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for AddProductSelectionChangebuilder
(AddProductSelectionChange template) create builder for AddProductSelectionChange instancestatic AddProductSelectionChange
deepCopy
(AddProductSelectionChange template) factory method to create a deep copy of AddProductSelectionChange@NotNull String
Type of change on a resource that is similar to the update action it relates to, where possible.@NotNull @Valid ProductSelectionSetting
@NotNull @Valid ProductSelectionSetting
@NotNull String
getType()
Unique discriminator value to reliably deserialize the data type.static AddProductSelectionChange
of()
factory methodstatic AddProductSelectionChange
of
(AddProductSelectionChange template) factory method to create a shallow copy AddProductSelectionChangevoid
set changevoid
setNextValue
(ProductSelectionSetting nextValue) set nextValuevoid
setPreviousValue
(ProductSelectionSetting previousValue) set previousValuestatic com.fasterxml.jackson.core.type.TypeReference<AddProductSelectionChange>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.history.models.change.Change
withChange
-
Field Details
-
ADD_PRODUCT_SELECTION_CHANGE
discriminator value for AddProductSelectionChange- See Also:
-
-
Method Details
-
getType
Description copied from interface:Change
Unique discriminator value to reliably deserialize the data type.
-
getChange
Description copied from interface:Change
Type of change on a resource that is similar to the update action it relates to, where possible. It is not a unique identifier for the data structure, for example, the
setDescription
change can occur with a localized and non-localized representation.Records can be filtered by this value using the
changes
query parameter. -
getPreviousValue
- Returns:
- previousValue
-
getNextValue
- Returns:
- nextValue
-
setChange
set change -
setPreviousValue
set previousValue- Parameters:
previousValue
- value to be set
-
setNextValue
set nextValue- Parameters:
nextValue
- value to be set
-
of
factory method- Returns:
- instance of AddProductSelectionChange
-
of
factory method to create a shallow copy AddProductSelectionChange- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of AddProductSelectionChange- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for AddProductSelectionChange- Returns:
- builder
-
builder
create builder for AddProductSelectionChange instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withAddProductSelectionChange
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
-