Class ExtensionBadResponseErrorBuilder
- All Implemented Interfaces:
Builder<ExtensionBadResponseError>
Example to create an instance using the builder pattern
ExtensionBadResponseError extensionBadResponseError = ExtensionBadResponseError.builder()
.message("{message}")
.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 ExtensionBadResponseError with checking for non-null required valuesbuilds ExtensionBadResponseError 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.Description of the invalid Extension response.Error-specific additional fields.localizedMessage
(LocalizedString localizedMessage) User-defined localized description of the error.User-defined localized description of the error.Description of the invalid Extension response.of()
factory method for an instance of ExtensionBadResponseErrorBuilderof
(ExtensionBadResponseError template) create builder for ExtensionBadResponseError 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
-
ExtensionBadResponseErrorBuilder
public ExtensionBadResponseErrorBuilder()
-
-
Method Details
-
message
Description of the invalid Extension response. For example,
"The extension did not return the expected JSON."
.- Parameters:
message
- value to be set- Returns:
- Builder
-
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 ExtensionBadResponseErrorBuilder localizedMessage(Function<LocalizedStringBuilder, LocalizedStringBuilder> builder) User-defined localized description of the error.
- Parameters:
builder
- function to build the localizedMessage value- Returns:
- Builder
-
withLocalizedMessage
public ExtensionBadResponseErrorBuilder withLocalizedMessage(Function<LocalizedStringBuilder, LocalizedString> builder) User-defined localized description of the error.
- Parameters:
builder
- function to build the localizedMessage value- Returns:
- Builder
-
localizedMessage
public ExtensionBadResponseErrorBuilder localizedMessage(@Nullable LocalizedString localizedMessage) User-defined localized description of the error.
- Parameters:
localizedMessage
- value to be set- Returns:
- Builder
-
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
Additional errors related to the API Extension.
- Parameters:
extensionErrors
- value to be set- Returns:
- Builder
-
plusExtensionErrors
Additional errors related to the API Extension.
- Parameters:
extensionErrors
- value to be set- Returns:
- Builder
-
plusExtensionErrors
public ExtensionBadResponseErrorBuilder plusExtensionErrors(Function<ExtensionErrorBuilder, ExtensionErrorBuilder> builder) Additional errors related to the API Extension.
- Parameters:
builder
- function to build the extensionErrors value- Returns:
- Builder
-
withExtensionErrors
public ExtensionBadResponseErrorBuilder withExtensionErrors(Function<ExtensionErrorBuilder, ExtensionErrorBuilder> builder) Additional errors related to the API Extension.
- Parameters:
builder
- function to build the extensionErrors value- Returns:
- Builder
-
addExtensionErrors
public ExtensionBadResponseErrorBuilder addExtensionErrors(Function<ExtensionErrorBuilder, ExtensionError> builder) Additional errors related to the API Extension.
- Parameters:
builder
- function to build the extensionErrors value- Returns:
- Builder
-
setExtensionErrors
public ExtensionBadResponseErrorBuilder 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
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
-
getMessage
Description of the invalid Extension response. For example,
"The extension did not return the expected JSON."
.- Returns:
- message
-
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 ExtensionBadResponseError with checking for non-null required values- Specified by:
build
in interfaceBuilder<ExtensionBadResponseError>
- Returns:
- ExtensionBadResponseError
-
buildUnchecked
builds ExtensionBadResponseError without checking for non-null required values- Returns:
- ExtensionBadResponseError
-
of
factory method for an instance of ExtensionBadResponseErrorBuilder- Returns:
- builder
-
of
create builder for ExtensionBadResponseError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-