Interface BulkOperationMaxItemsExceededError
- All Superinterfaces:
ErrorObject
Returned when a bulk request contains more items than the allowed maximum.
Reduce the number of items in the request to at most limit and retry.
Example to create an instance using the builder pattern
BulkOperationMaxItemsExceededError bulkOperationMaxItemsExceededError = BulkOperationMaxItemsExceededError.builder()
.message("{message}")
.limit(0.3)
.provided(0.3)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for BulkOperationMaxItemsExceededError -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for BulkOperationMaxItemsExceededErrorbuilder(BulkOperationMaxItemsExceededError template) create builder for BulkOperationMaxItemsExceededError instancecopyDeep()deepCopy(BulkOperationMaxItemsExceededError template) factory method to create a deep copy of BulkOperationMaxItemsExceededError@NotNull StringgetCode()Error identifier.@NotNull IntegergetLimit()Maximum number of items allowed in a single bulk request.@NotNull String"The bulk request exceeds the maximum allowed items of $limit."@NotNull IntegerNumber of items provided in the request.of()factory methodof(BulkOperationMaxItemsExceededError template) factory method to create a shallow copy BulkOperationMaxItemsExceededErrorvoidMaximum number of items allowed in a single bulk request.voidsetMessage(String message) "The bulk request exceeds the maximum allowed items of $limit."voidsetProvided(Integer provided) Number of items provided in the request.static tools.jackson.core.type.TypeReference<BulkOperationMaxItemsExceededError>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.error.ErrorObject
setValue, values, withErrorObject
-
Field Details
-
BULK_OPERATION_MAX_ITEMS_EXCEEDED
discriminator value for BulkOperationMaxItemsExceededError- See Also:
-
-
Method Details
-
getCode
Description copied from interface:ErrorObjectError identifier.
- Specified by:
getCodein interfaceErrorObject- Returns:
- code
-
getMessage
"The bulk request exceeds the maximum allowed items of $limit."- Specified by:
getMessagein interfaceErrorObject- Returns:
- message
-
getLimit
Maximum number of items allowed in a single bulk request.
- Returns:
- limit
-
getProvided
Number of items provided in the request.
- Returns:
- provided
-
setMessage
"The bulk request exceeds the maximum allowed items of $limit."- Specified by:
setMessagein interfaceErrorObject- Parameters:
message- value to be set
-
setLimit
Maximum number of items allowed in a single bulk request.
- Parameters:
limit- value to be set
-
setProvided
Number of items provided in the request.
- Parameters:
provided- value to be set
-
of
factory method- Returns:
- instance of BulkOperationMaxItemsExceededError
-
of
factory method to create a shallow copy BulkOperationMaxItemsExceededError- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
BulkOperationMaxItemsExceededError copyDeep()- Specified by:
copyDeepin interfaceErrorObject
-
deepCopy
@Nullable static BulkOperationMaxItemsExceededError deepCopy(@Nullable BulkOperationMaxItemsExceededError template) factory method to create a deep copy of BulkOperationMaxItemsExceededError- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for BulkOperationMaxItemsExceededError- Returns:
- builder
-
builder
static BulkOperationMaxItemsExceededErrorBuilder builder(BulkOperationMaxItemsExceededError template) create builder for BulkOperationMaxItemsExceededError instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withBulkOperationMaxItemsExceededError
default <T> T withBulkOperationMaxItemsExceededError(Function<BulkOperationMaxItemsExceededError, T> helper) 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
-