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
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for GraphQLRequiredFieldError -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for GraphQLRequiredFieldErrorbuilder(GraphQLRequiredFieldError template) create builder for GraphQLRequiredFieldError instancecopyDeep()static GraphQLRequiredFieldErrordeepCopy(GraphQLRequiredFieldError template) factory method to create a deep copy of GraphQLRequiredFieldError@NotNull StringgetCode()One of the error codes that is listed on the Errors page.@NotNull StringgetField()Name of the field missing the value.static GraphQLRequiredFieldErrorof()factory methodstatic GraphQLRequiredFieldErrorof(GraphQLRequiredFieldError template) factory method to create a shallow copy GraphQLRequiredFieldErrorvoidName of the field missing the value.static com.fasterxml.jackson.core.type.TypeReference<GraphQLRequiredFieldError>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor 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:GraphQLErrorObjectOne of the error codes that is listed on the Errors page.
- Specified by:
getCodein 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
-
copyDeep
GraphQLRequiredFieldError copyDeep()- Specified by:
copyDeepin interfaceGraphQLErrorObject
-
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
-