Class GraphQLDuplicateAttributeValueErrorBuilder
java.lang.Object
com.commercetools.api.models.error.GraphQLDuplicateAttributeValueErrorBuilder
- All Implemented Interfaces:
Builder<GraphQLDuplicateAttributeValueError>
public class GraphQLDuplicateAttributeValueErrorBuilder
extends Object
implements Builder<GraphQLDuplicateAttributeValueError>
GraphQLDuplicateAttributeValueErrorBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
GraphQLDuplicateAttributeValueError graphQLDuplicateAttributeValueError = GraphQLDuplicateAttributeValueError.builder()
.attribute(attributeBuilder -> attributeBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionError-specific additional fields.Conflicting Attributes.attribute
(Function<AttributeBuilder, AttributeBuilder> builder) Conflicting Attributes.build()
builds GraphQLDuplicateAttributeValueError with checking for non-null required valuesbuilds GraphQLDuplicateAttributeValueError without checking for non-null required valuesConflicting Attributes.Error-specific additional fields.of()
factory method for an instance of GraphQLDuplicateAttributeValueErrorBuilderof
(GraphQLDuplicateAttributeValueError template) create builder for GraphQLDuplicateAttributeValueError instanceError-specific additional fields.withAttribute
(Function<AttributeBuilder, Attribute> builder) Conflicting Attributes.
-
Constructor Details
-
GraphQLDuplicateAttributeValueErrorBuilder
public GraphQLDuplicateAttributeValueErrorBuilder()
-
-
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
-
attribute
public GraphQLDuplicateAttributeValueErrorBuilder attribute(Function<AttributeBuilder, AttributeBuilder> builder) Conflicting Attributes.
- Parameters:
builder
- function to build the attribute value- Returns:
- Builder
-
withAttribute
public GraphQLDuplicateAttributeValueErrorBuilder withAttribute(Function<AttributeBuilder, Attribute> builder) Conflicting Attributes.
- Parameters:
builder
- function to build the attribute value- Returns:
- Builder
-
attribute
Conflicting Attributes.
- Parameters:
attribute
- value to be set- Returns:
- Builder
-
getValues
Error-specific additional fields.
- Returns:
- pattern properties
-
getAttribute
Conflicting Attributes.
- Returns:
- attribute
-
build
builds GraphQLDuplicateAttributeValueError with checking for non-null required values- Specified by:
build
in interfaceBuilder<GraphQLDuplicateAttributeValueError>
- Returns:
- GraphQLDuplicateAttributeValueError
-
buildUnchecked
builds GraphQLDuplicateAttributeValueError without checking for non-null required values- Returns:
- GraphQLDuplicateAttributeValueError
-
of
factory method for an instance of GraphQLDuplicateAttributeValueErrorBuilder- Returns:
- builder
-
of
public static GraphQLDuplicateAttributeValueErrorBuilder of(GraphQLDuplicateAttributeValueError template) create builder for GraphQLDuplicateAttributeValueError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-