Interface ContentTooLargeError

All Superinterfaces:
ErrorObject

public interface ContentTooLargeError extends 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 Details

    • CONTENT_TOO_LARGE

      static final String CONTENT_TOO_LARGE
      discriminator value for ContentTooLargeError
      See Also:
  • Method Details

    • getCode

      @NotNull @NotNull String getCode()
      Description copied from interface: ErrorObject

      Error identifier.

      Specified by:
      getCode in interface ErrorObject
      Returns:
      code
    • getMessage

      @NotNull @NotNull String getMessage()

      "Content too large."

      Specified by:
      getMessage in interface ErrorObject
      Returns:
      message
    • setMessage

      void setMessage(String message)

      "Content too large."

      Specified by:
      setMessage in interface ErrorObject
      Parameters:
      message - value to be set
    • of

      static ContentTooLargeError 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

      static ContentTooLargeErrorBuilder 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

      default <T> T withContentTooLargeError(Function<ContentTooLargeError,T> helper)
      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<ContentTooLargeError> typeReference()
      gives a TypeReference for usage with Jackson DataBind
      Returns:
      TypeReference