Interface ResourceSizeLimitExceededError
- All Superinterfaces:
ErrorObject
Returned when the resource exceeds the maximum allowed size of 16 MB.
Example to create an instance using the builder pattern
ResourceSizeLimitExceededError resourceSizeLimitExceededError = ResourceSizeLimitExceededError.builder()
.message("{message}")
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for ResourceSizeLimitExceededError -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ResourceSizeLimitExceededErrorbuilder
(ResourceSizeLimitExceededError template) create builder for ResourceSizeLimitExceededError instancedeepCopy
(ResourceSizeLimitExceededError template) factory method to create a deep copy of ResourceSizeLimitExceededError@NotNull String
getCode()
Error identifier.@NotNull String
"The resource size exceeds the maximal allowed size of 16 MB."
of()
factory methodof
(ResourceSizeLimitExceededError template) factory method to create a shallow copy ResourceSizeLimitExceededErrorvoid
setMessage
(String message) "The resource size exceeds the maximal allowed size of 16 MB."
static com.fasterxml.jackson.core.type.TypeReference<ResourceSizeLimitExceededError>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.error.ErrorObject
setValue, values, withErrorObject
-
Field Details
-
RESOURCE_SIZE_LIMIT_EXCEEDED
discriminator value for ResourceSizeLimitExceededError- See Also:
-
-
Method Details
-
getCode
Description copied from interface:ErrorObject
Error identifier.
- Specified by:
getCode
in interfaceErrorObject
- Returns:
- code
-
getMessage
"The resource size exceeds the maximal allowed size of 16 MB."
- Specified by:
getMessage
in interfaceErrorObject
- Returns:
- message
-
setMessage
"The resource size exceeds the maximal allowed size of 16 MB."
- Specified by:
setMessage
in interfaceErrorObject
- Parameters:
message
- value to be set
-
of
factory method- Returns:
- instance of ResourceSizeLimitExceededError
-
of
factory method to create a shallow copy ResourceSizeLimitExceededError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static ResourceSizeLimitExceededError deepCopy(@Nullable ResourceSizeLimitExceededError template) factory method to create a deep copy of ResourceSizeLimitExceededError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ResourceSizeLimitExceededError- Returns:
- builder
-
builder
create builder for ResourceSizeLimitExceededError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withResourceSizeLimitExceededError
accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
static com.fasterxml.jackson.core.type.TypeReference<ResourceSizeLimitExceededError> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-