Class GraphQLInternalConstraintViolatedErrorBuilder
java.lang.Object
com.commercetools.api.models.error.GraphQLInternalConstraintViolatedErrorBuilder
- All Implemented Interfaces:
Builder<GraphQLInternalConstraintViolatedError>
public class GraphQLInternalConstraintViolatedErrorBuilder
extends Object
implements Builder<GraphQLInternalConstraintViolatedError>
GraphQLInternalConstraintViolatedErrorBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
GraphQLInternalConstraintViolatedError graphQLInternalConstraintViolatedError = GraphQLInternalConstraintViolatedError.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionError-specific additional fields.build()
builds GraphQLInternalConstraintViolatedError with checking for non-null required valuesbuilds GraphQLInternalConstraintViolatedError without checking for non-null required valuesError-specific additional fields.of()
factory method for an instance of GraphQLInternalConstraintViolatedErrorBuilderof
(GraphQLInternalConstraintViolatedError template) create builder for GraphQLInternalConstraintViolatedError instanceError-specific additional fields.
-
Constructor Details
-
GraphQLInternalConstraintViolatedErrorBuilder
public GraphQLInternalConstraintViolatedErrorBuilder()
-
-
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
-
getValues
Error-specific additional fields.
- Returns:
- pattern properties
-
build
builds GraphQLInternalConstraintViolatedError with checking for non-null required values- Specified by:
build
in interfaceBuilder<GraphQLInternalConstraintViolatedError>
- Returns:
- GraphQLInternalConstraintViolatedError
-
buildUnchecked
builds GraphQLInternalConstraintViolatedError without checking for non-null required values- Returns:
- GraphQLInternalConstraintViolatedError
-
of
factory method for an instance of GraphQLInternalConstraintViolatedErrorBuilder- Returns:
- builder
-
of
public static GraphQLInternalConstraintViolatedErrorBuilder of(GraphQLInternalConstraintViolatedError template) create builder for GraphQLInternalConstraintViolatedError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-