Class GraphQLDuplicateFieldWithConflictingResourceErrorBuilder
java.lang.Object
com.commercetools.api.models.error.GraphQLDuplicateFieldWithConflictingResourceErrorBuilder
- All Implemented Interfaces:
Builder<GraphQLDuplicateFieldWithConflictingResourceError>
public class GraphQLDuplicateFieldWithConflictingResourceErrorBuilder
extends Object
implements Builder<GraphQLDuplicateFieldWithConflictingResourceError>
GraphQLDuplicateFieldWithConflictingResourceErrorBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
GraphQLDuplicateFieldWithConflictingResourceError graphQLDuplicateFieldWithConflictingResourceError = GraphQLDuplicateFieldWithConflictingResourceError.builder()
.field("{field}")
.conflictingResource(conflictingResourceBuilder -> conflictingResourceBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionError-specific additional fields.build()
builds GraphQLDuplicateFieldWithConflictingResourceError with checking for non-null required valuesbuilds GraphQLDuplicateFieldWithConflictingResourceError without checking for non-null required valuesconflictingResource
(Reference conflictingResource) Reference to the resource that has the conflicting value.conflictingResource
(Function<ReferenceBuilder, Builder<? extends Reference>> builder) Reference to the resource that has the conflicting value.duplicateValue
(Object duplicateValue) Conflicting duplicate value.Name of the conflicting field.Reference to the resource that has the conflicting value.Conflicting duplicate value.getField()
Name of the conflicting field.Error-specific additional fields.of()
factory method for an instance of GraphQLDuplicateFieldWithConflictingResourceErrorBuildercreate builder for GraphQLDuplicateFieldWithConflictingResourceError instanceError-specific additional fields.
-
Constructor Details
-
GraphQLDuplicateFieldWithConflictingResourceErrorBuilder
public GraphQLDuplicateFieldWithConflictingResourceErrorBuilder()
-
-
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
public GraphQLDuplicateFieldWithConflictingResourceErrorBuilder duplicateValue(Object duplicateValue) Conflicting duplicate value.
- Parameters:
duplicateValue
- value to be set- Returns:
- Builder
-
conflictingResource
public GraphQLDuplicateFieldWithConflictingResourceErrorBuilder conflictingResource(Reference conflictingResource) Reference to the resource that has the conflicting value.
- Parameters:
conflictingResource
- value to be set- Returns:
- Builder
-
conflictingResource
public GraphQLDuplicateFieldWithConflictingResourceErrorBuilder conflictingResource(Function<ReferenceBuilder, Builder<? extends Reference>> builder) Reference to the resource that has the conflicting value.
- Parameters:
builder
- function to build the conflictingResource value- Returns:
- Builder
-
getValues
Error-specific additional fields.
- Returns:
- pattern properties
-
getField
Name of the conflicting field.
- Returns:
- field
-
getDuplicateValue
Conflicting duplicate value.
- Returns:
- duplicateValue
-
getConflictingResource
Reference to the resource that has the conflicting value.
- Returns:
- conflictingResource
-
build
builds GraphQLDuplicateFieldWithConflictingResourceError with checking for non-null required values- Specified by:
build
in interfaceBuilder<GraphQLDuplicateFieldWithConflictingResourceError>
- Returns:
- GraphQLDuplicateFieldWithConflictingResourceError
-
buildUnchecked
builds GraphQLDuplicateFieldWithConflictingResourceError without checking for non-null required values- Returns:
- GraphQLDuplicateFieldWithConflictingResourceError
-
of
factory method for an instance of GraphQLDuplicateFieldWithConflictingResourceErrorBuilder- Returns:
- builder
-
of
public static GraphQLDuplicateFieldWithConflictingResourceErrorBuilder of(GraphQLDuplicateFieldWithConflictingResourceError template) create builder for GraphQLDuplicateFieldWithConflictingResourceError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-