Class GraphQLProductPresentWithDifferentVariantSelectionErrorBuilder
java.lang.Object
com.commercetools.api.models.error.GraphQLProductPresentWithDifferentVariantSelectionErrorBuilder
- All Implemented Interfaces:
Builder<GraphQLProductPresentWithDifferentVariantSelectionError>
public class GraphQLProductPresentWithDifferentVariantSelectionErrorBuilder
extends Object
implements Builder<GraphQLProductPresentWithDifferentVariantSelectionError>
GraphQLProductPresentWithDifferentVariantSelectionErrorBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
GraphQLProductPresentWithDifferentVariantSelectionError graphQLProductPresentWithDifferentVariantSelectionError = GraphQLProductPresentWithDifferentVariantSelectionError.builder()
.product(productBuilder -> productBuilder)
.existingVariantSelection(existingVariantSelectionBuilder -> existingVariantSelectionBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionError-specific additional fields.build()
builds GraphQLProductPresentWithDifferentVariantSelectionError with checking for non-null required valuesbuilds GraphQLProductPresentWithDifferentVariantSelectionError without checking for non-null required valuesexistingVariantSelection
(ProductVariantSelection existingVariantSelection) Existing Product Variant Selection or Exclusion for the Product in the Product Selection.existingVariantSelection
(Function<ProductVariantSelectionBuilder, Builder<? extends ProductVariantSelection>> builder) Existing Product Variant Selection or Exclusion for the Product in the Product Selection.Existing Product Variant Selection or Exclusion for the Product in the Product Selection.Reference to the Product for which the error was returned.Error-specific additional fields.of()
factory method for an instance of GraphQLProductPresentWithDifferentVariantSelectionErrorBuildercreate builder for GraphQLProductPresentWithDifferentVariantSelectionError instanceproduct
(ProductReference product) Reference to the Product for which the error was returned.Reference to the Product for which the error was returned.Error-specific additional fields.Reference to the Product for which the error was returned.
-
Constructor Details
-
GraphQLProductPresentWithDifferentVariantSelectionErrorBuilder
public GraphQLProductPresentWithDifferentVariantSelectionErrorBuilder()
-
-
Method Details
-
values
public GraphQLProductPresentWithDifferentVariantSelectionErrorBuilder values(Map<String, Object> values) Error-specific additional fields.
- Parameters:
values
- properties to be set- Returns:
- Builder
-
addValue
public GraphQLProductPresentWithDifferentVariantSelectionErrorBuilder addValue(String key, Object value) Error-specific additional fields.
- Parameters:
key
- property namevalue
- property value- Returns:
- Builder
-
product
public GraphQLProductPresentWithDifferentVariantSelectionErrorBuilder product(Function<ProductReferenceBuilder, ProductReferenceBuilder> builder) Reference to the Product for which the error was returned.
- Parameters:
builder
- function to build the product value- Returns:
- Builder
-
withProduct
public GraphQLProductPresentWithDifferentVariantSelectionErrorBuilder withProduct(Function<ProductReferenceBuilder, ProductReference> builder) Reference to the Product for which the error was returned.
- Parameters:
builder
- function to build the product value- Returns:
- Builder
-
product
public GraphQLProductPresentWithDifferentVariantSelectionErrorBuilder product(ProductReference product) Reference to the Product for which the error was returned.
- Parameters:
product
- value to be set- Returns:
- Builder
-
existingVariantSelection
public GraphQLProductPresentWithDifferentVariantSelectionErrorBuilder existingVariantSelection(ProductVariantSelection existingVariantSelection) Existing Product Variant Selection or Exclusion for the Product in the Product Selection.
- Parameters:
existingVariantSelection
- value to be set- Returns:
- Builder
-
existingVariantSelection
public GraphQLProductPresentWithDifferentVariantSelectionErrorBuilder existingVariantSelection(Function<ProductVariantSelectionBuilder, Builder<? extends ProductVariantSelection>> builder) Existing Product Variant Selection or Exclusion for the Product in the Product Selection.
- Parameters:
builder
- function to build the existingVariantSelection value- Returns:
- Builder
-
getValues
Error-specific additional fields.
- Returns:
- pattern properties
-
getProduct
Reference to the Product for which the error was returned.
- Returns:
- product
-
getExistingVariantSelection
Existing Product Variant Selection or Exclusion for the Product in the Product Selection.
- Returns:
- existingVariantSelection
-
build
builds GraphQLProductPresentWithDifferentVariantSelectionError with checking for non-null required values- Specified by:
build
in interfaceBuilder<GraphQLProductPresentWithDifferentVariantSelectionError>
- Returns:
- GraphQLProductPresentWithDifferentVariantSelectionError
-
buildUnchecked
builds GraphQLProductPresentWithDifferentVariantSelectionError without checking for non-null required values- Returns:
- GraphQLProductPresentWithDifferentVariantSelectionError
-
of
factory method for an instance of GraphQLProductPresentWithDifferentVariantSelectionErrorBuilder- Returns:
- builder
-
of
public static GraphQLProductPresentWithDifferentVariantSelectionErrorBuilder of(GraphQLProductPresentWithDifferentVariantSelectionError template) create builder for GraphQLProductPresentWithDifferentVariantSelectionError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-