Interface InvalidJsonInput
- All Superinterfaces:
ErrorObject
An invalid JSON input has been sent to the service. Either the JSON is syntactically incorrect or the JSON has an unexpected shape, for example, a required field is missing. The client application should validate the input according to the constraints described in the error message before sending the request again.
Example to create an instance using the builder pattern
InvalidJsonInput invalidJsonInput = InvalidJsonInput.builder()
.message("{message}")
.build()
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic InvalidJsonInputBuilder
builder()
builder factory method for InvalidJsonInputstatic InvalidJsonInputBuilder
builder
(InvalidJsonInput template) create builder for InvalidJsonInput instancestatic InvalidJsonInput
deepCopy
(InvalidJsonInput template) factory method to create a deep copy of InvalidJsonInputstatic InvalidJsonInput
of()
factory methodstatic InvalidJsonInput
of
(InvalidJsonInput template) factory method to create a shallow copy InvalidJsonInputstatic com.fasterxml.jackson.core.type.TypeReference<InvalidJsonInput>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withInvalidJsonInput
(Function<InvalidJsonInput, T> helper) accessor map functionMethods inherited from interface com.commercetools.importapi.models.errors.ErrorObject
getCode, getMessage, setMessage, withErrorObject
-
Field Details
-
INVALID_JSON_INPUT
discriminator value for InvalidJsonInput- See Also:
-
-
Method Details
-
of
factory method- Returns:
- instance of InvalidJsonInput
-
of
factory method to create a shallow copy InvalidJsonInput- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of InvalidJsonInput- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for InvalidJsonInput- Returns:
- builder
-
builder
create builder for InvalidJsonInput instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withInvalidJsonInput
accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-