Class GraphQLReferenceExistsErrorBuilder
java.lang.Object
com.commercetools.api.models.error.GraphQLReferenceExistsErrorBuilder
- All Implemented Interfaces:
Builder<GraphQLReferenceExistsError>
public class GraphQLReferenceExistsErrorBuilder
extends Object
implements Builder<GraphQLReferenceExistsError>
GraphQLReferenceExistsErrorBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
GraphQLReferenceExistsError graphQLReferenceExistsError = GraphQLReferenceExistsError.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionError-specific additional fields.build()
builds GraphQLReferenceExistsError with checking for non-null required valuesbuilds GraphQLReferenceExistsError without checking for non-null required valuesType of referenced resource.Error-specific additional fields.of()
factory method for an instance of GraphQLReferenceExistsErrorBuilderof
(GraphQLReferenceExistsError template) create builder for GraphQLReferenceExistsError instancereferencedBy
(ReferenceTypeId referencedBy) Type of referenced resource.Error-specific additional fields.
-
Constructor Details
-
GraphQLReferenceExistsErrorBuilder
public GraphQLReferenceExistsErrorBuilder()
-
-
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
-
referencedBy
Type of referenced resource.
- Parameters:
referencedBy
- value to be set- Returns:
- Builder
-
getValues
Error-specific additional fields.
- Returns:
- pattern properties
-
getReferencedBy
Type of referenced resource.
- Returns:
- referencedBy
-
build
builds GraphQLReferenceExistsError with checking for non-null required values- Specified by:
build
in interfaceBuilder<GraphQLReferenceExistsError>
- Returns:
- GraphQLReferenceExistsError
-
buildUnchecked
builds GraphQLReferenceExistsError without checking for non-null required values- Returns:
- GraphQLReferenceExistsError
-
of
factory method for an instance of GraphQLReferenceExistsErrorBuilder- Returns:
- builder
-
of
create builder for GraphQLReferenceExistsError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-