Class PlanRequiredError

java.lang.Object
com.qtsurfer.api.client.model.PlanRequiredError

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.24.0") public class PlanRequiredError extends Object
The error of a `402`: your plan does not include what the request asks for. It is a `ResponseError` (`retryable` is `false`) plus `upgradeUrl`.
  • Field Details

  • Constructor Details

    • PlanRequiredError

      public PlanRequiredError()
  • Method Details

    • code

      public PlanRequiredError code(@Nonnull Integer code)
    • getCode

      @Nonnull public Integer getCode()
      Status code
      Returns:
      code
    • setCode

      public void setCode(@Nonnull Integer code)
    • message

      public PlanRequiredError message(@Nonnull String message)
    • getMessage

      @Nonnull public String getMessage()
      Error description
      Returns:
      message
    • setMessage

      public void setMessage(@Nonnull String message)
    • reason

      public PlanRequiredError reason(@Nullable String reason)
    • getReason

      @Nullable public String getReason()
      A stable token naming the cause, for a client to branch on without reading `message`. Present only on an error that has one, and each operation that can return one lists the values it uses. A client treats a value it does not know like an absent `reason`.
      Returns:
      reason
    • setReason

      public void setReason(@Nullable String reason)
    • retryable

      public PlanRequiredError retryable(@Nullable Boolean retryable)
    • getRetryable

      @Nullable public Boolean getRetryable()
      Whether sending the same request again can succeed. `true` for `408`, `425`, `429` and every `5xx`; `false` for every other `4xx`, which fails the same way until the request changes: a field of the wrong type, a strategy that does not compile, a missing parameter. A plan limit (a `402`, or a `429` without `Retry-After`) is `false`. When the answer carries a `Retry-After`, wait that long before sending the request again.
      Returns:
      retryable
    • setRetryable

      public void setRetryable(@Nullable Boolean retryable)
    • next

      public PlanRequiredError next(@Nullable ErrorNextCall next)
    • getNext

      @Nullable public ErrorNextCall getNext()
      Get next
      Returns:
      next
    • setNext

      public void setNext(@Nullable ErrorNextCall next)
    • upgradeUrl

      public PlanRequiredError upgradeUrl(@Nullable URI upgradeUrl)
    • getUpgradeUrl

      @Nullable public URI getUpgradeUrl()
      The page where the plan can be changed. Present only when the platform has one for this environment; absent otherwise. A `402` is the only error that carries it.
      Returns:
      upgradeUrl
    • setUpgradeUrl

      public void setUpgradeUrl(@Nullable URI upgradeUrl)
    • equals

      public boolean equals(Object o)
      Return true if this PlanRequiredError object is equal to o.
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toUrlQueryString

      public String toUrlQueryString()
      Convert the instance into URL query string.
      Returns:
      URL query string
    • toUrlQueryString

      public String toUrlQueryString(String prefix)
      Convert the instance into URL query string.
      Parameters:
      prefix - prefix of the query string
      Returns:
      URL query string