Class GraphQLExtensionBadResponseErrorBuilder
- All Implemented Interfaces:
Builder<GraphQLExtensionBadResponseError>
Example to create an instance using the builder pattern
GraphQLExtensionBadResponseError graphQLExtensionBadResponseError = GraphQLExtensionBadResponseError.builder()
.plusExtensionErrors(extensionErrorsBuilder -> extensionErrorsBuilder)
.extensionId("{extensionId}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionAdditional errors related to the API Extension.Error-specific additional fields.build()
builds GraphQLExtensionBadResponseError with checking for non-null required valuesbuilds GraphQLExtensionBadResponseError without checking for non-null required valuesextensionBody
(String extensionBody) The response body returned by the Extension.extensionErrors
(ExtensionError... extensionErrors) Additional errors related to the API Extension.extensionErrors
(List<ExtensionError> extensionErrors) Additional errors related to the API Extension.extensionExtraInfo
(Object extensionExtraInfo) Any information that should be returned to the API caller.extensionId
(String extensionId) Unique identifier of the Extension.extensionKey
(String extensionKey) User-defined unique identifier of the Extension.extensionStatusCode
(Integer extensionStatusCode) Http status code returned by the Extension.The response body returned by the Extension.Additional errors related to the API Extension.Any information that should be returned to the API caller.Unique identifier of the Extension.User-defined unique identifier of the Extension.Http status code returned by the Extension.User-defined localized description of the error.Error-specific additional fields.localizedMessage
(LocalizedString localizedMessage) User-defined localized description of the error.User-defined localized description of the error.of()
factory method for an instance of GraphQLExtensionBadResponseErrorBuilderof
(GraphQLExtensionBadResponseError template) create builder for GraphQLExtensionBadResponseError instanceplusExtensionErrors
(ExtensionError... extensionErrors) Additional errors related to the API Extension.Additional errors related to the API Extension.Additional errors related to the API Extension.Error-specific additional fields.Additional errors related to the API Extension.User-defined localized description of the error.
-
Constructor Details
-
GraphQLExtensionBadResponseErrorBuilder
public GraphQLExtensionBadResponseErrorBuilder()
-
-
Method Details
-
values
Error-specific additional fields.
- Parameters:
values
- properties to be set- Returns:
- Builder
-
addValue
Error-specific additional fields.
- Parameters:
key
- property namevalue
- property value- Returns:
- Builder
-
localizedMessage
public GraphQLExtensionBadResponseErrorBuilder localizedMessage(Function<LocalizedStringBuilder, LocalizedStringBuilder> builder) User-defined localized description of the error.
- Parameters:
builder
- function to build the localizedMessage value- Returns:
- Builder
-
withLocalizedMessage
public GraphQLExtensionBadResponseErrorBuilder withLocalizedMessage(Function<LocalizedStringBuilder, LocalizedString> builder) User-defined localized description of the error.
- Parameters:
builder
- function to build the localizedMessage value- Returns:
- Builder
-
localizedMessage
public GraphQLExtensionBadResponseErrorBuilder localizedMessage(@Nullable LocalizedString localizedMessage) User-defined localized description of the error.
- Parameters:
localizedMessage
- value to be set- Returns:
- Builder
-
extensionExtraInfo
public GraphQLExtensionBadResponseErrorBuilder extensionExtraInfo(@Nullable Object extensionExtraInfo) Any information that should be returned to the API caller.
- Parameters:
extensionExtraInfo
- value to be set- Returns:
- Builder
-
extensionErrors
Additional errors related to the API Extension.
- Parameters:
extensionErrors
- value to be set- Returns:
- Builder
-
extensionErrors
public GraphQLExtensionBadResponseErrorBuilder extensionErrors(List<ExtensionError> extensionErrors) Additional errors related to the API Extension.
- Parameters:
extensionErrors
- value to be set- Returns:
- Builder
-
plusExtensionErrors
public GraphQLExtensionBadResponseErrorBuilder plusExtensionErrors(ExtensionError... extensionErrors) Additional errors related to the API Extension.
- Parameters:
extensionErrors
- value to be set- Returns:
- Builder
-
plusExtensionErrors
public GraphQLExtensionBadResponseErrorBuilder plusExtensionErrors(Function<ExtensionErrorBuilder, ExtensionErrorBuilder> builder) Additional errors related to the API Extension.
- Parameters:
builder
- function to build the extensionErrors value- Returns:
- Builder
-
withExtensionErrors
public GraphQLExtensionBadResponseErrorBuilder withExtensionErrors(Function<ExtensionErrorBuilder, ExtensionErrorBuilder> builder) Additional errors related to the API Extension.
- Parameters:
builder
- function to build the extensionErrors value- Returns:
- Builder
-
addExtensionErrors
public GraphQLExtensionBadResponseErrorBuilder addExtensionErrors(Function<ExtensionErrorBuilder, ExtensionError> builder) Additional errors related to the API Extension.
- Parameters:
builder
- function to build the extensionErrors value- Returns:
- Builder
-
setExtensionErrors
public GraphQLExtensionBadResponseErrorBuilder setExtensionErrors(Function<ExtensionErrorBuilder, ExtensionError> builder) Additional errors related to the API Extension.
- Parameters:
builder
- function to build the extensionErrors value- Returns:
- Builder
-
extensionBody
The response body returned by the Extension.
- Parameters:
extensionBody
- value to be set- Returns:
- Builder
-
extensionStatusCode
public GraphQLExtensionBadResponseErrorBuilder extensionStatusCode(@Nullable Integer extensionStatusCode) Http status code returned by the Extension.
- Parameters:
extensionStatusCode
- value to be set- Returns:
- Builder
-
extensionId
Unique identifier of the Extension.
- Parameters:
extensionId
- value to be set- Returns:
- Builder
-
extensionKey
User-defined unique identifier of the Extension.
- Parameters:
extensionKey
- value to be set- Returns:
- Builder
-
getValues
Error-specific additional fields.
- Returns:
- pattern properties
-
getLocalizedMessage
User-defined localized description of the error.
- Returns:
- localizedMessage
-
getExtensionExtraInfo
Any information that should be returned to the API caller.
- Returns:
- extensionExtraInfo
-
getExtensionErrors
Additional errors related to the API Extension.
- Returns:
- extensionErrors
-
getExtensionBody
The response body returned by the Extension.
- Returns:
- extensionBody
-
getExtensionStatusCode
Http status code returned by the Extension.
- Returns:
- extensionStatusCode
-
getExtensionId
Unique identifier of the Extension.
- Returns:
- extensionId
-
getExtensionKey
User-defined unique identifier of the Extension.
- Returns:
- extensionKey
-
build
builds GraphQLExtensionBadResponseError with checking for non-null required values- Specified by:
build
in interfaceBuilder<GraphQLExtensionBadResponseError>
- Returns:
- GraphQLExtensionBadResponseError
-
buildUnchecked
builds GraphQLExtensionBadResponseError without checking for non-null required values- Returns:
- GraphQLExtensionBadResponseError
-
of
factory method for an instance of GraphQLExtensionBadResponseErrorBuilder- Returns:
- builder
-
of
create builder for GraphQLExtensionBadResponseError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-