Interface VariantBulkUpdateSuccessResult
- All Superinterfaces:
VariantBulkUpdateResult
Result for a Variant that was successfully updated in a bulk update request.
Example to create an instance using the builder pattern
VariantBulkUpdateSuccessResult variantBulkUpdateSuccessResult = VariantBulkUpdateSuccessResult.builder()
.resource(resourceBuilder -> resourceBuilder)
.build()
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for VariantBulkUpdateSuccessResultbuilder(VariantBulkUpdateSuccessResult template) create builder for VariantBulkUpdateSuccessResult instancecopyDeep()deepCopy(VariantBulkUpdateSuccessResult template) factory method to create a deep copy of VariantBulkUpdateSuccessResult@NotNull @Valid VariantBulkUpdateResourceA lightweight reference containing theidand updatedversionof the Variant.of()factory methodof(VariantBulkUpdateSuccessResult template) factory method to create a shallow copy VariantBulkUpdateSuccessResultvoidsetResource(VariantBulkUpdateResource resource) A lightweight reference containing theidand updatedversionof the Variant.static tools.jackson.core.type.TypeReference<VariantBulkUpdateSuccessResult>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.variant.VariantBulkUpdateResult
getId, getKey, getStatus, setId, setKey, withVariantBulkUpdateResult
-
Field Details
-
SUCCESS
discriminator value for VariantBulkUpdateSuccessResult- See Also:
-
-
Method Details
-
getResource
A lightweight reference containing the
idand updatedversionof the Variant.- Returns:
- resource
-
setResource
A lightweight reference containing the
idand updatedversionof the Variant.- Parameters:
resource- value to be set
-
of
factory method- Returns:
- instance of VariantBulkUpdateSuccessResult
-
of
factory method to create a shallow copy VariantBulkUpdateSuccessResult- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
VariantBulkUpdateSuccessResult copyDeep()- Specified by:
copyDeepin interfaceVariantBulkUpdateResult
-
deepCopy
@Nullable static VariantBulkUpdateSuccessResult deepCopy(@Nullable VariantBulkUpdateSuccessResult template) factory method to create a deep copy of VariantBulkUpdateSuccessResult- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for VariantBulkUpdateSuccessResult- Returns:
- builder
-
builder
create builder for VariantBulkUpdateSuccessResult instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withVariantBulkUpdateSuccessResult
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
-