Interface GraphQLInvalidFieldError
- All Superinterfaces:
GraphQLErrorObject
Returned when a field has an invalid value.
Example to create an instance using the builder pattern
GraphQLInvalidFieldError graphQLInvalidFieldError = GraphQLInvalidFieldError.builder()
.field("{field}")
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for GraphQLInvalidFieldError -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for GraphQLInvalidFieldErrorbuilder
(GraphQLInvalidFieldError template) create builder for GraphQLInvalidFieldError instancestatic GraphQLInvalidFieldError
deepCopy
(GraphQLInvalidFieldError template) factory method to create a deep copy of GraphQLInvalidFieldErrorFixed set of allowed values for the field, if any.@NotNull String
getCode()
Error identifier.@NotNull String
getField()
Name of the field with the invalid value.@NotNull Object
Value invalid for the field.static GraphQLInvalidFieldError
of()
factory methodstatic GraphQLInvalidFieldError
of
(GraphQLInvalidFieldError template) factory method to create a shallow copy GraphQLInvalidFieldErrorvoid
setAllowedValues
(Object... allowedValues) Fixed set of allowed values for the field, if any.void
setAllowedValues
(List<Object> allowedValues) Fixed set of allowed values for the field, if any.void
Name of the field with the invalid value.void
setInvalidValue
(Object invalidValue) Value invalid for the field.static com.fasterxml.jackson.core.type.TypeReference<GraphQLInvalidFieldError>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.error.GraphQLErrorObject
setValue, values, withGraphQLErrorObject
-
Field Details
-
INVALID_FIELD
discriminator value for GraphQLInvalidFieldError- See Also:
-
-
Method Details
-
getCode
Description copied from interface:GraphQLErrorObject
Error identifier.
- Specified by:
getCode
in interfaceGraphQLErrorObject
- Returns:
- code
-
getField
Name of the field with the invalid value.
- Returns:
- field
-
getInvalidValue
Value invalid for the field.
- Returns:
- invalidValue
-
getAllowedValues
Fixed set of allowed values for the field, if any.
- Returns:
- allowedValues
-
setField
Name of the field with the invalid value.
- Parameters:
field
- value to be set
-
setInvalidValue
Value invalid for the field.
- Parameters:
invalidValue
- value to be set
-
setAllowedValues
Fixed set of allowed values for the field, if any.
- Parameters:
allowedValues
- values to be set
-
setAllowedValues
Fixed set of allowed values for the field, if any.
- Parameters:
allowedValues
- values to be set
-
of
factory method- Returns:
- instance of GraphQLInvalidFieldError
-
of
factory method to create a shallow copy GraphQLInvalidFieldError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of GraphQLInvalidFieldError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for GraphQLInvalidFieldError- Returns:
- builder
-
builder
create builder for GraphQLInvalidFieldError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withGraphQLInvalidFieldError
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
-