Class GraphQLDuplicateAttributeValuesErrorBuilder
java.lang.Object
com.commercetools.api.models.error.GraphQLDuplicateAttributeValuesErrorBuilder
- All Implemented Interfaces:
Builder<GraphQLDuplicateAttributeValuesError>
public class GraphQLDuplicateAttributeValuesErrorBuilder
extends Object
implements Builder<GraphQLDuplicateAttributeValuesError>
GraphQLDuplicateAttributeValuesErrorBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
GraphQLDuplicateAttributeValuesError graphQLDuplicateAttributeValuesError = GraphQLDuplicateAttributeValuesError.builder()
.plusAttributes(attributesBuilder -> attributesBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddAttributes
(Function<AttributeBuilder, Attribute> builder) Conflicting Attributes.Error-specific additional fields.attributes
(Attribute... attributes) Conflicting Attributes.attributes
(List<Attribute> attributes) Conflicting Attributes.build()
builds GraphQLDuplicateAttributeValuesError with checking for non-null required valuesbuilds GraphQLDuplicateAttributeValuesError without checking for non-null required valuesConflicting Attributes.Error-specific additional fields.of()
factory method for an instance of GraphQLDuplicateAttributeValuesErrorBuilderof
(GraphQLDuplicateAttributeValuesError template) create builder for GraphQLDuplicateAttributeValuesError instanceplusAttributes
(Attribute... attributes) Conflicting Attributes.Conflicting Attributes.setAttributes
(Function<AttributeBuilder, Attribute> builder) Conflicting Attributes.Error-specific additional fields.Conflicting Attributes.
-
Constructor Details
-
GraphQLDuplicateAttributeValuesErrorBuilder
public GraphQLDuplicateAttributeValuesErrorBuilder()
-
-
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
-
attributes
Conflicting Attributes.
- Parameters:
attributes
- value to be set- Returns:
- Builder
-
attributes
Conflicting Attributes.
- Parameters:
attributes
- value to be set- Returns:
- Builder
-
plusAttributes
Conflicting Attributes.
- Parameters:
attributes
- value to be set- Returns:
- Builder
-
plusAttributes
public GraphQLDuplicateAttributeValuesErrorBuilder plusAttributes(Function<AttributeBuilder, AttributeBuilder> builder) Conflicting Attributes.
- Parameters:
builder
- function to build the attributes value- Returns:
- Builder
-
withAttributes
public GraphQLDuplicateAttributeValuesErrorBuilder withAttributes(Function<AttributeBuilder, AttributeBuilder> builder) Conflicting Attributes.
- Parameters:
builder
- function to build the attributes value- Returns:
- Builder
-
addAttributes
public GraphQLDuplicateAttributeValuesErrorBuilder addAttributes(Function<AttributeBuilder, Attribute> builder) Conflicting Attributes.
- Parameters:
builder
- function to build the attributes value- Returns:
- Builder
-
setAttributes
public GraphQLDuplicateAttributeValuesErrorBuilder setAttributes(Function<AttributeBuilder, Attribute> builder) Conflicting Attributes.
- Parameters:
builder
- function to build the attributes value- Returns:
- Builder
-
getValues
Error-specific additional fields.
- Returns:
- pattern properties
-
getAttributes
Conflicting Attributes.
- Returns:
- attributes
-
build
builds GraphQLDuplicateAttributeValuesError with checking for non-null required values- Specified by:
build
in interfaceBuilder<GraphQLDuplicateAttributeValuesError>
- Returns:
- GraphQLDuplicateAttributeValuesError
-
buildUnchecked
builds GraphQLDuplicateAttributeValuesError without checking for non-null required values- Returns:
- GraphQLDuplicateAttributeValuesError
-
of
factory method for an instance of GraphQLDuplicateAttributeValuesErrorBuilder- Returns:
- builder
-
of
public static GraphQLDuplicateAttributeValuesErrorBuilder of(GraphQLDuplicateAttributeValuesError template) create builder for GraphQLDuplicateAttributeValuesError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-