Package com.qtsurfer.api.client.model
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturn true if this PlanRequiredError object is equal to o.getCode()Status codeError descriptiongetNext()Get nextA stable token naming the cause, for a client to branch on without reading `message`.Whether sending the same request again can succeed.The page where the plan can be changed.inthashCode()next(ErrorNextCall next) voidvoidsetMessage(String message) voidsetNext(ErrorNextCall next) voidvoidsetRetryable(Boolean retryable) voidsetUpgradeUrl(URI upgradeUrl) toString()Convert the instance into URL query string.toUrlQueryString(String prefix) Convert the instance into URL query string.upgradeUrl(URI upgradeUrl)
-
Field Details
-
JSON_PROPERTY_CODE
- See Also:
-
JSON_PROPERTY_MESSAGE
- See Also:
-
JSON_PROPERTY_REASON
- See Also:
-
JSON_PROPERTY_RETRYABLE
- See Also:
-
JSON_PROPERTY_NEXT
- See Also:
-
JSON_PROPERTY_UPGRADE_URL
- See Also:
-
-
Constructor Details
-
PlanRequiredError
public PlanRequiredError()
-
-
Method Details
-
code
-
getCode
Status code- Returns:
- code
-
setCode
-
message
-
getMessage
Error description- Returns:
- message
-
setMessage
-
reason
-
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
-
retryable
-
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
-
next
-
getNext
Get next- Returns:
- next
-
setNext
-
upgradeUrl
-
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
-
equals
Return true if this PlanRequiredError object is equal to o. -
hashCode
public int hashCode() -
toString
-
toUrlQueryString
Convert the instance into URL query string.- Returns:
- URL query string
-
toUrlQueryString
Convert the instance into URL query string.- Parameters:
prefix- prefix of the query string- Returns:
- URL query string
-