Class GraphQLDuplicateFieldErrorBuilder
java.lang.Object
com.commercetools.api.models.error.GraphQLDuplicateFieldErrorBuilder
- All Implemented Interfaces:
Builder<GraphQLDuplicateFieldError>
public class GraphQLDuplicateFieldErrorBuilder
extends Object
implements Builder<GraphQLDuplicateFieldError>
GraphQLDuplicateFieldErrorBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
GraphQLDuplicateFieldError graphQLDuplicateFieldError = GraphQLDuplicateFieldError.builder()
.field("{field}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionError-specific additional fields.build()
builds GraphQLDuplicateFieldError with checking for non-null required valuesbuilds GraphQLDuplicateFieldError without checking for non-null required valuesduplicateValue
(Object duplicateValue) Conflicting duplicate value.Name of the conflicting field.Conflicting duplicate value.getField()
Name of the conflicting field.Error-specific additional fields.of()
factory method for an instance of GraphQLDuplicateFieldErrorBuilderof
(GraphQLDuplicateFieldError template) create builder for GraphQLDuplicateFieldError instanceError-specific additional fields.
-
Constructor Details
-
GraphQLDuplicateFieldErrorBuilder
public GraphQLDuplicateFieldErrorBuilder()
-
-
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 conflicting field.
- Parameters:
field
- value to be set- Returns:
- Builder
-
duplicateValue
Conflicting duplicate value.
- Parameters:
duplicateValue
- value to be set- Returns:
- Builder
-
getValues
Error-specific additional fields.
- Returns:
- pattern properties
-
getField
Name of the conflicting field.
- Returns:
- field
-
getDuplicateValue
Conflicting duplicate value.
- Returns:
- duplicateValue
-
build
builds GraphQLDuplicateFieldError with checking for non-null required values- Specified by:
build
in interfaceBuilder<GraphQLDuplicateFieldError>
- Returns:
- GraphQLDuplicateFieldError
-
buildUnchecked
builds GraphQLDuplicateFieldError without checking for non-null required values- Returns:
- GraphQLDuplicateFieldError
-
of
factory method for an instance of GraphQLDuplicateFieldErrorBuilder- Returns:
- builder
-
of
create builder for GraphQLDuplicateFieldError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-