Class GraphQLAttributeDefinitionAlreadyExistsErrorBuilder
java.lang.Object
com.commercetools.api.models.error.GraphQLAttributeDefinitionAlreadyExistsErrorBuilder
- All Implemented Interfaces:
Builder<GraphQLAttributeDefinitionAlreadyExistsError>
public class GraphQLAttributeDefinitionAlreadyExistsErrorBuilder
extends Object
implements Builder<GraphQLAttributeDefinitionAlreadyExistsError>
GraphQLAttributeDefinitionAlreadyExistsErrorBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
GraphQLAttributeDefinitionAlreadyExistsError graphQLAttributeDefinitionAlreadyExistsError = GraphQLAttributeDefinitionAlreadyExistsError.builder()
.conflictingProductTypeId("{conflictingProductTypeId}")
.conflictingProductTypeName("{conflictingProductTypeName}")
.conflictingAttributeName("{conflictingAttributeName}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionError-specific additional fields.build()
builds GraphQLAttributeDefinitionAlreadyExistsError with checking for non-null required valuesbuilds GraphQLAttributeDefinitionAlreadyExistsError without checking for non-null required valuesconflictingAttributeName
(String conflictingAttributeName) Name of the conflicting Attribute.conflictingProductTypeId
(String conflictingProductTypeId) Unique identifier of the Product Type containing the conflicting name.conflictingProductTypeName
(String conflictingProductTypeName) Name of the Product Type containing the conflicting name.Name of the conflicting Attribute.Unique identifier of the Product Type containing the conflicting name.Name of the Product Type containing the conflicting name.Error-specific additional fields.of()
factory method for an instance of GraphQLAttributeDefinitionAlreadyExistsErrorBuildercreate builder for GraphQLAttributeDefinitionAlreadyExistsError instanceError-specific additional fields.
-
Constructor Details
-
GraphQLAttributeDefinitionAlreadyExistsErrorBuilder
public GraphQLAttributeDefinitionAlreadyExistsErrorBuilder()
-
-
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
-
conflictingProductTypeId
public GraphQLAttributeDefinitionAlreadyExistsErrorBuilder conflictingProductTypeId(String conflictingProductTypeId) Unique identifier of the Product Type containing the conflicting name.
- Parameters:
conflictingProductTypeId
- value to be set- Returns:
- Builder
-
conflictingProductTypeName
public GraphQLAttributeDefinitionAlreadyExistsErrorBuilder conflictingProductTypeName(String conflictingProductTypeName) Name of the Product Type containing the conflicting name.
- Parameters:
conflictingProductTypeName
- value to be set- Returns:
- Builder
-
conflictingAttributeName
public GraphQLAttributeDefinitionAlreadyExistsErrorBuilder conflictingAttributeName(String conflictingAttributeName) Name of the conflicting Attribute.
- Parameters:
conflictingAttributeName
- value to be set- Returns:
- Builder
-
getValues
Error-specific additional fields.
- Returns:
- pattern properties
-
getConflictingProductTypeId
Unique identifier of the Product Type containing the conflicting name.
- Returns:
- conflictingProductTypeId
-
getConflictingProductTypeName
Name of the Product Type containing the conflicting name.
- Returns:
- conflictingProductTypeName
-
getConflictingAttributeName
Name of the conflicting Attribute.
- Returns:
- conflictingAttributeName
-
build
builds GraphQLAttributeDefinitionAlreadyExistsError with checking for non-null required values- Specified by:
build
in interfaceBuilder<GraphQLAttributeDefinitionAlreadyExistsError>
- Returns:
- GraphQLAttributeDefinitionAlreadyExistsError
-
buildUnchecked
builds GraphQLAttributeDefinitionAlreadyExistsError without checking for non-null required values- Returns:
- GraphQLAttributeDefinitionAlreadyExistsError
-
of
factory method for an instance of GraphQLAttributeDefinitionAlreadyExistsErrorBuilder- Returns:
- builder
-
of
public static GraphQLAttributeDefinitionAlreadyExistsErrorBuilder of(GraphQLAttributeDefinitionAlreadyExistsError template) create builder for GraphQLAttributeDefinitionAlreadyExistsError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-