Interface VariantBulkUpdateResult
- All Known Subinterfaces:
VariantBulkUpdateFailResult,VariantBulkUpdateSuccessResult
public interface VariantBulkUpdateResult
Represents the result of a single Variant update within a bulk update request. Use status to determine whether the update succeeded or failed.
Example to create a subtype instance using the builder pattern
VariantBulkUpdateResult variantBulkUpdateResult = VariantBulkUpdateResult.failBuilder()
plusErrors(errorsBuilder -> errorsBuilder)
.build()
-
Method Summary
Modifier and TypeMethodDescriptioncopyDeep()static VariantBulkUpdateResultdeepCopy(VariantBulkUpdateResult template) factory method to create a deep copy of VariantBulkUpdateResultbuilder for fail subtypegetId()Unique identifier of the Variant from the request.getKey()User-defined unique identifier of the Variant from the request.@NotNull StringIndicates whether the update succeeded or failed.voidUnique identifier of the Variant from the request.voidUser-defined unique identifier of the Variant from the request.builder for success subtypestatic tools.jackson.core.type.TypeReference<VariantBulkUpdateResult>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map function
-
Method Details
-
getId
String getId()Unique identifier of the Variant from the request. Present when the Variant was identified by
id.- Returns:
- id
-
getKey
String getKey()User-defined unique identifier of the Variant from the request. Present when the Variant was identified by
key.- Returns:
- key
-
getStatus
Indicates whether the update succeeded or failed.
- Returns:
- status
-
setId
Unique identifier of the Variant from the request. Present when the Variant was identified by
id.- Parameters:
id- value to be set
-
setKey
User-defined unique identifier of the Variant from the request. Present when the Variant was identified by
key.- Parameters:
key- value to be set
-
copyDeep
VariantBulkUpdateResult copyDeep() -
deepCopy
factory method to create a deep copy of VariantBulkUpdateResult- Parameters:
template- instance to be copied- Returns:
- copy instance
-
failBuilder
builder for fail subtype- Returns:
- builder
-
successBuilder
builder for success subtype- Returns:
- builder
-
withVariantBulkUpdateResult
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
-