Class GraphQLInvalidFieldErrorBuilder
java.lang.Object
com.commercetools.api.models.error.GraphQLInvalidFieldErrorBuilder
- All Implemented Interfaces:
Builder<GraphQLInvalidFieldError>
public class GraphQLInvalidFieldErrorBuilder
extends Object
implements Builder<GraphQLInvalidFieldError>
GraphQLInvalidFieldErrorBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
GraphQLInvalidFieldError graphQLInvalidFieldError = GraphQLInvalidFieldError.builder()
.field("{field}")
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionError-specific additional fields.allowedValues(Object... allowedValues) Fixed set of allowed values for the field, if any.allowedValues(List<Object> allowedValues) Fixed set of allowed values for the field, if any.build()builds GraphQLInvalidFieldError with checking for non-null required valuesbuilds GraphQLInvalidFieldError without checking for non-null required valuesName of the field with the invalid value.Fixed set of allowed values for the field, if any.getField()Name of the field with the invalid value.Value invalid for the field.Error-specific additional fields.invalidValue(Object invalidValue) Value invalid for the field.of()factory method for an instance of GraphQLInvalidFieldErrorBuilderof(GraphQLInvalidFieldError template) create builder for GraphQLInvalidFieldError instanceplusAllowedValues(Object... allowedValues) Fixed set of allowed values for the field, if any.Error-specific additional fields.
-
Constructor Details
-
GraphQLInvalidFieldErrorBuilder
public GraphQLInvalidFieldErrorBuilder()
-
-
Method Details
-
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
-
field
Name of the field with the invalid value.
- Parameters:
field- value to be set- Returns:
- Builder
-
invalidValue
Value invalid for the field.
- Parameters:
invalidValue- value to be set- Returns:
- Builder
-
allowedValues
Fixed set of allowed values for the field, if any.
- Parameters:
allowedValues- value to be set- Returns:
- Builder
-
allowedValues
Fixed set of allowed values for the field, if any.
- Parameters:
allowedValues- value to be set- Returns:
- Builder
-
plusAllowedValues
Fixed set of allowed values for the field, if any.
- Parameters:
allowedValues- value to be set- Returns:
- Builder
-
getValues
Error-specific additional fields.
- Returns:
- pattern properties
-
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
-
build
builds GraphQLInvalidFieldError with checking for non-null required values- Specified by:
buildin interfaceBuilder<GraphQLInvalidFieldError>- Returns:
- GraphQLInvalidFieldError
-
buildUnchecked
builds GraphQLInvalidFieldError without checking for non-null required values- Returns:
- GraphQLInvalidFieldError
-
of
factory method for an instance of GraphQLInvalidFieldErrorBuilder- Returns:
- builder
-
of
create builder for GraphQLInvalidFieldError instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-