Interface VariantBulkUpdateItem
Identifies a single Variant to be updated in a bulk update request. Provide either id or key to identify the Variant.
Example to create an instance using the builder pattern
VariantBulkUpdateItem variantBulkUpdateItem = VariantBulkUpdateItem.builder()
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic VariantBulkUpdateItemBuilderbuilder()builder factory method for VariantBulkUpdateItemstatic VariantBulkUpdateItemBuilderbuilder(VariantBulkUpdateItem template) create builder for VariantBulkUpdateItem instancecopyDeep()static VariantBulkUpdateItemdeepCopy(VariantBulkUpdateItem template) factory method to create a deep copy of VariantBulkUpdateItemgetId()Unique identifier of the Variant to update.getKey()User-defined unique identifier of the Variant to update.Expected version of the Variant.static VariantBulkUpdateItemof()factory methodstatic VariantBulkUpdateItemof(VariantBulkUpdateItem template) factory method to create a shallow copy VariantBulkUpdateItemvoidUnique identifier of the Variant to update.voidUser-defined unique identifier of the Variant to update.voidsetVersion(Long version) Expected version of the Variant.static tools.jackson.core.type.TypeReference<VariantBulkUpdateItem>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map function
-
Method Details
-
getId
String getId()Unique identifier of the Variant to update. Either
idorkeymust be provided.- Returns:
- id
-
getKey
String getKey()User-defined unique identifier of the Variant to update. Either
idorkeymust be provided.- Returns:
- key
-
getVersion
Long getVersion()Expected version of the Variant. Required when the
versionControlquery parameter isOn(the default). If the version does not match, a ConcurrentModification error is returned for that item. Not required whenversionControl=Off.- Returns:
- version
-
setId
Unique identifier of the Variant to update. Either
idorkeymust be provided.- Parameters:
id- value to be set
-
setKey
User-defined unique identifier of the Variant to update. Either
idorkeymust be provided.- Parameters:
key- value to be set
-
setVersion
Expected version of the Variant. Required when the
versionControlquery parameter isOn(the default). If the version does not match, a ConcurrentModification error is returned for that item. Not required whenversionControl=Off.- Parameters:
version- value to be set
-
of
factory method- Returns:
- instance of VariantBulkUpdateItem
-
of
factory method to create a shallow copy VariantBulkUpdateItem- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
VariantBulkUpdateItem copyDeep() -
deepCopy
factory method to create a deep copy of VariantBulkUpdateItem- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for VariantBulkUpdateItem- Returns:
- builder
-
builder
create builder for VariantBulkUpdateItem instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withVariantBulkUpdateItem
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
-