Interface GraphQLRequiredFieldError
- All Superinterfaces:
GraphQLErrorObject
Returned when a value is not defined for a required field.
Example to create an instance using the builder pattern
GraphQLRequiredFieldError graphQLRequiredFieldError = GraphQLRequiredFieldError.builder()
.field("{field}")
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for GraphQLRequiredFieldError -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for GraphQLRequiredFieldErrorbuilder
(GraphQLRequiredFieldError template) create builder for GraphQLRequiredFieldError instancestatic GraphQLRequiredFieldError
deepCopy
(GraphQLRequiredFieldError template) factory method to create a deep copy of GraphQLRequiredFieldError@NotNull String
getCode()
Error identifier.@NotNull String
getField()
Name of the field missing the value.static GraphQLRequiredFieldError
of()
factory methodstatic GraphQLRequiredFieldError
of
(GraphQLRequiredFieldError template) factory method to create a shallow copy GraphQLRequiredFieldErrorvoid
Name of the field missing the value.static com.fasterxml.jackson.core.type.TypeReference<GraphQLRequiredFieldError>
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
-
REQUIRED_FIELD
discriminator value for GraphQLRequiredFieldError- See Also:
-
-
Method Details
-
getCode
Description copied from interface:GraphQLErrorObject
Error identifier.
- Specified by:
getCode
in interfaceGraphQLErrorObject
- Returns:
- code
-
getField
Name of the field missing the value.
- Returns:
- field
-
setField
Name of the field missing the value.
- Parameters:
field
- value to be set
-
of
factory method- Returns:
- instance of GraphQLRequiredFieldError
-
of
factory method to create a shallow copy GraphQLRequiredFieldError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of GraphQLRequiredFieldError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for GraphQLRequiredFieldError- Returns:
- builder
-
builder
create builder for GraphQLRequiredFieldError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withGraphQLRequiredFieldError
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
-