Class BetaErrorResponse.Builder
-
- All Implemented Interfaces:
public final class BetaErrorResponse.BuilderA builder for BetaErrorResponse.
-
-
Method Summary
Modifier and Type Method Description final BetaErrorResponse.Buildererror(BetaError error)final BetaErrorResponse.Buildererror(JsonField<BetaError> error)Sets Builder.error to an arbitrary JSON value. final BetaErrorResponse.Buildererror(BetaInvalidRequestError invalidRequest)Alias for calling error with BetaError.ofInvalidRequest(invalidRequest).final BetaErrorResponse.Buildererror(BetaAuthenticationError authentication)Alias for calling error with BetaError.ofAuthentication(authentication).final BetaErrorResponse.Buildererror(BetaBillingError billing)Alias for calling error with BetaError.ofBilling(billing).final BetaErrorResponse.Buildererror(BetaPermissionError permission)Alias for calling error with BetaError.ofPermission(permission).final BetaErrorResponse.Buildererror(BetaNotFoundError notFound)Alias for calling error with BetaError.ofNotFound(notFound).final BetaErrorResponse.Buildererror(BetaRateLimitError rateLimit)Alias for calling error with BetaError.ofRateLimit(rateLimit).final BetaErrorResponse.Buildererror(BetaGatewayTimeoutError timeout)Alias for calling error with BetaError.ofTimeout(timeout).final BetaErrorResponse.Buildererror(BetaApiError api)Alias for calling error with BetaError.ofApi(api).final BetaErrorResponse.Buildererror(BetaOverloadedError overloaded)Alias for calling error with BetaError.ofOverloaded(overloaded).final BetaErrorResponse.BuilderinvalidRequestError(String message)Alias for calling error with the following: BetaInvalidRequestError.builder() .message(message) .build()final BetaErrorResponse.BuilderauthenticationError(String message)Alias for calling error with the following: BetaAuthenticationError.builder() .message(message) .build()final BetaErrorResponse.BuilderbillingError(String message)Alias for calling error with the following: BetaBillingError.builder() .message(message) .build()final BetaErrorResponse.BuilderpermissionError(String message)Alias for calling error with the following: BetaPermissionError.builder() .message(message) .build()final BetaErrorResponse.BuildernotFoundError(String message)Alias for calling error with the following: BetaNotFoundError.builder() .message(message) .build()final BetaErrorResponse.BuilderrateLimitError(String message)Alias for calling error with the following: BetaRateLimitError.builder() .message(message) .build()final BetaErrorResponse.BuildertimeoutError(String message)Alias for calling error with the following: BetaGatewayTimeoutError.builder() .message(message) .build()final BetaErrorResponse.BuilderapiError(String message)Alias for calling error with the following: BetaApiError.builder() .message(message) .build()final BetaErrorResponse.BuilderoverloadedError(String message)Alias for calling error with the following: BetaOverloadedError.builder() .message(message) .build()final BetaErrorResponse.Buildertype(JsonValue type)Sets the field to an arbitrary JSON value. final BetaErrorResponse.BuilderadditionalProperties(Map<String, JsonValue> additionalProperties)final BetaErrorResponse.BuilderputAdditionalProperty(String key, JsonValue value)final BetaErrorResponse.BuilderputAllAdditionalProperties(Map<String, JsonValue> additionalProperties)final BetaErrorResponse.BuilderremoveAdditionalProperty(String key)final BetaErrorResponse.BuilderremoveAllAdditionalProperties(Set<String> keys)final BetaErrorResponsebuild()Returns an immutable instance of BetaErrorResponse. -
-
Method Detail
-
error
final BetaErrorResponse.Builder error(BetaError error)
-
error
final BetaErrorResponse.Builder error(JsonField<BetaError> error)
Sets Builder.error to an arbitrary JSON value.
You should usually call Builder.error with a well-typed BetaError value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
error
final BetaErrorResponse.Builder error(BetaInvalidRequestError invalidRequest)
Alias for calling error with
BetaError.ofInvalidRequest(invalidRequest).
-
error
final BetaErrorResponse.Builder error(BetaAuthenticationError authentication)
Alias for calling error with
BetaError.ofAuthentication(authentication).
-
error
final BetaErrorResponse.Builder error(BetaBillingError billing)
Alias for calling error with
BetaError.ofBilling(billing).
-
error
final BetaErrorResponse.Builder error(BetaPermissionError permission)
Alias for calling error with
BetaError.ofPermission(permission).
-
error
final BetaErrorResponse.Builder error(BetaNotFoundError notFound)
Alias for calling error with
BetaError.ofNotFound(notFound).
-
error
final BetaErrorResponse.Builder error(BetaRateLimitError rateLimit)
Alias for calling error with
BetaError.ofRateLimit(rateLimit).
-
error
final BetaErrorResponse.Builder error(BetaGatewayTimeoutError timeout)
Alias for calling error with
BetaError.ofTimeout(timeout).
-
error
final BetaErrorResponse.Builder error(BetaApiError api)
Alias for calling error with
BetaError.ofApi(api).
-
error
final BetaErrorResponse.Builder error(BetaOverloadedError overloaded)
Alias for calling error with
BetaError.ofOverloaded(overloaded).
-
invalidRequestError
final BetaErrorResponse.Builder invalidRequestError(String message)
Alias for calling error with the following:
BetaInvalidRequestError.builder() .message(message) .build()
-
authenticationError
final BetaErrorResponse.Builder authenticationError(String message)
Alias for calling error with the following:
BetaAuthenticationError.builder() .message(message) .build()
-
billingError
final BetaErrorResponse.Builder billingError(String message)
Alias for calling error with the following:
BetaBillingError.builder() .message(message) .build()
-
permissionError
final BetaErrorResponse.Builder permissionError(String message)
Alias for calling error with the following:
BetaPermissionError.builder() .message(message) .build()
-
notFoundError
final BetaErrorResponse.Builder notFoundError(String message)
Alias for calling error with the following:
BetaNotFoundError.builder() .message(message) .build()
-
rateLimitError
final BetaErrorResponse.Builder rateLimitError(String message)
Alias for calling error with the following:
BetaRateLimitError.builder() .message(message) .build()
-
timeoutError
final BetaErrorResponse.Builder timeoutError(String message)
Alias for calling error with the following:
BetaGatewayTimeoutError.builder() .message(message) .build()
-
apiError
final BetaErrorResponse.Builder apiError(String message)
Alias for calling error with the following:
BetaApiError.builder() .message(message) .build()
-
overloadedError
final BetaErrorResponse.Builder overloadedError(String message)
Alias for calling error with the following:
BetaOverloadedError.builder() .message(message) .build()
-
type
final BetaErrorResponse.Builder type(JsonValue type)
Sets the field to an arbitrary JSON value.
It is usually unnecessary to call this method because the field defaults to the following:
JsonValue.from("error")This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final BetaErrorResponse.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BetaErrorResponse.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaErrorResponse.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaErrorResponse.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaErrorResponse.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaErrorResponse build()
Returns an immutable instance of BetaErrorResponse.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.error()
-
-
-
-