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