Interface VariantBulkUpdateResponse
public interface VariantBulkUpdateResponse
The response body for a bulk update of Variants. Contains the individual result for each Variant in the request.
Example to create an instance using the builder pattern
VariantBulkUpdateResponse variantBulkUpdateResponse = VariantBulkUpdateResponse.builder()
.successCount(0.3)
.failureCount(0.3)
.plusResults(resultsBuilder -> resultsBuilder)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for VariantBulkUpdateResponsebuilder(VariantBulkUpdateResponse template) create builder for VariantBulkUpdateResponse instancecopyDeep()static VariantBulkUpdateResponsedeepCopy(VariantBulkUpdateResponse template) factory method to create a deep copy of VariantBulkUpdateResponse@NotNull IntegerNumber of Variants that failed to update.@NotNull @Valid List<VariantBulkUpdateResult>Results for each Variant in the request, in the same order as theitemsin the request body.@NotNull IntegerNumber of Variants that were successfully updated.static VariantBulkUpdateResponseof()factory methodstatic VariantBulkUpdateResponseof(VariantBulkUpdateResponse template) factory method to create a shallow copy VariantBulkUpdateResponsevoidsetFailureCount(Integer failureCount) Number of Variants that failed to update.voidsetResults(VariantBulkUpdateResult... results) Results for each Variant in the request, in the same order as theitemsin the request body.voidsetResults(List<VariantBulkUpdateResult> results) Results for each Variant in the request, in the same order as theitemsin the request body.voidsetSuccessCount(Integer successCount) Number of Variants that were successfully updated.static tools.jackson.core.type.TypeReference<VariantBulkUpdateResponse>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map function
-
Method Details
-
getSuccessCount
Number of Variants that were successfully updated.
- Returns:
- successCount
-
getFailureCount
Number of Variants that failed to update.
- Returns:
- failureCount
-
getResults
Results for each Variant in the request, in the same order as the
itemsin the request body.- Returns:
- results
-
setSuccessCount
Number of Variants that were successfully updated.
- Parameters:
successCount- value to be set
-
setFailureCount
Number of Variants that failed to update.
- Parameters:
failureCount- value to be set
-
setResults
Results for each Variant in the request, in the same order as the
itemsin the request body.- Parameters:
results- values to be set
-
setResults
Results for each Variant in the request, in the same order as the
itemsin the request body.- Parameters:
results- values to be set
-
of
factory method- Returns:
- instance of VariantBulkUpdateResponse
-
of
factory method to create a shallow copy VariantBulkUpdateResponse- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
VariantBulkUpdateResponse copyDeep() -
deepCopy
factory method to create a deep copy of VariantBulkUpdateResponse- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for VariantBulkUpdateResponse- Returns:
- builder
-
builder
create builder for VariantBulkUpdateResponse instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withVariantBulkUpdateResponse
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
-