Interface ContentTooLargeError
- All Superinterfaces:
ErrorObject
Returned when the request results in too much data being returned from the API. Adjust the request query to reduce the size of the data returned.
Example to create an instance using the builder pattern
ContentTooLargeError contentTooLargeError = ContentTooLargeError.builder()
.message("{message}")
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for ContentTooLargeError -
Method Summary
Modifier and TypeMethodDescriptionstatic ContentTooLargeErrorBuilder
builder()
builder factory method for ContentTooLargeErrorstatic ContentTooLargeErrorBuilder
builder
(ContentTooLargeError template) create builder for ContentTooLargeError instancestatic ContentTooLargeError
deepCopy
(ContentTooLargeError template) factory method to create a deep copy of ContentTooLargeError@NotNull String
getCode()
Error identifier.@NotNull String
"Content too large."
static ContentTooLargeError
of()
factory methodstatic ContentTooLargeError
of
(ContentTooLargeError template) factory method to create a shallow copy ContentTooLargeErrorvoid
setMessage
(String message) "Content too large."
static com.fasterxml.jackson.core.type.TypeReference<ContentTooLargeError>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withContentTooLargeError
(Function<ContentTooLargeError, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.error.ErrorObject
setValue, values, withErrorObject
-
Field Details
-
CONTENT_TOO_LARGE
discriminator value for ContentTooLargeError- See Also:
-
-
Method Details
-
getCode
Description copied from interface:ErrorObject
Error identifier.
- Specified by:
getCode
in interfaceErrorObject
- Returns:
- code
-
getMessage
"Content too large."
- Specified by:
getMessage
in interfaceErrorObject
- Returns:
- message
-
setMessage
"Content too large."
- Specified by:
setMessage
in interfaceErrorObject
- Parameters:
message
- value to be set
-
of
factory method- Returns:
- instance of ContentTooLargeError
-
of
factory method to create a shallow copy ContentTooLargeError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of ContentTooLargeError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ContentTooLargeError- Returns:
- builder
-
builder
create builder for ContentTooLargeError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withContentTooLargeError
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
-