Class GraphQLDuplicateVariantValuesErrorBuilder
java.lang.Object
com.commercetools.api.models.error.GraphQLDuplicateVariantValuesErrorBuilder
- All Implemented Interfaces:
Builder<GraphQLDuplicateVariantValuesError>
public class GraphQLDuplicateVariantValuesErrorBuilder
extends Object
implements Builder<GraphQLDuplicateVariantValuesError>
GraphQLDuplicateVariantValuesErrorBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
GraphQLDuplicateVariantValuesError graphQLDuplicateVariantValuesError = GraphQLDuplicateVariantValuesError.builder()
.variantValues(variantValuesBuilder -> variantValuesBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionError-specific additional fields.build()
builds GraphQLDuplicateVariantValuesError with checking for non-null required valuesbuilds GraphQLDuplicateVariantValuesError without checking for non-null required valuesError-specific additional fields.Every Product Variant must have a distinct combination of SKU, prices, and custom Attribute values.of()
factory method for an instance of GraphQLDuplicateVariantValuesErrorBuilderof
(GraphQLDuplicateVariantValuesError template) create builder for GraphQLDuplicateVariantValuesError instanceError-specific additional fields.variantValues
(VariantValues variantValues) Every Product Variant must have a distinct combination of SKU, prices, and custom Attribute values.Every Product Variant must have a distinct combination of SKU, prices, and custom Attribute values.Every Product Variant must have a distinct combination of SKU, prices, and custom Attribute values.
-
Constructor Details
-
GraphQLDuplicateVariantValuesErrorBuilder
public GraphQLDuplicateVariantValuesErrorBuilder()
-
-
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
-
variantValues
public GraphQLDuplicateVariantValuesErrorBuilder variantValues(Function<VariantValuesBuilder, VariantValuesBuilder> builder) Every Product Variant must have a distinct combination of SKU, prices, and custom Attribute values.
- Parameters:
builder
- function to build the variantValues value- Returns:
- Builder
-
withVariantValues
public GraphQLDuplicateVariantValuesErrorBuilder withVariantValues(Function<VariantValuesBuilder, VariantValues> builder) Every Product Variant must have a distinct combination of SKU, prices, and custom Attribute values.
- Parameters:
builder
- function to build the variantValues value- Returns:
- Builder
-
variantValues
Every Product Variant must have a distinct combination of SKU, prices, and custom Attribute values.
- Parameters:
variantValues
- value to be set- Returns:
- Builder
-
getValues
Error-specific additional fields.
- Returns:
- pattern properties
-
getVariantValues
Every Product Variant must have a distinct combination of SKU, prices, and custom Attribute values.
- Returns:
- variantValues
-
build
builds GraphQLDuplicateVariantValuesError with checking for non-null required values- Specified by:
build
in interfaceBuilder<GraphQLDuplicateVariantValuesError>
- Returns:
- GraphQLDuplicateVariantValuesError
-
buildUnchecked
builds GraphQLDuplicateVariantValuesError without checking for non-null required values- Returns:
- GraphQLDuplicateVariantValuesError
-
of
factory method for an instance of GraphQLDuplicateVariantValuesErrorBuilder- Returns:
- builder
-
of
public static GraphQLDuplicateVariantValuesErrorBuilder of(GraphQLDuplicateVariantValuesError template) create builder for GraphQLDuplicateVariantValuesError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-