Class AttributeDefinitionAlreadyExistsErrorBuilder
java.lang.Object
com.commercetools.api.models.error.AttributeDefinitionAlreadyExistsErrorBuilder
- All Implemented Interfaces:
Builder<AttributeDefinitionAlreadyExistsError>
public class AttributeDefinitionAlreadyExistsErrorBuilder
extends Object
implements Builder<AttributeDefinitionAlreadyExistsError>
AttributeDefinitionAlreadyExistsErrorBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
AttributeDefinitionAlreadyExistsError attributeDefinitionAlreadyExistsError = AttributeDefinitionAlreadyExistsError.builder()
.message("{message}")
.conflictingProductTypeId("{conflictingProductTypeId}")
.conflictingProductTypeName("{conflictingProductTypeName}")
.conflictingAttributeName("{conflictingAttributeName}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionError-specific additional fields.build()
builds AttributeDefinitionAlreadyExistsError with checking for non-null required valuesbuilds AttributeDefinitionAlreadyExistsError 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."An attribute definition with name $attributeName already exists on product type $productTypeName."
Error-specific additional fields."An attribute definition with name $attributeName already exists on product type $productTypeName."
of()
factory method for an instance of AttributeDefinitionAlreadyExistsErrorBuilderof
(AttributeDefinitionAlreadyExistsError template) create builder for AttributeDefinitionAlreadyExistsError instanceError-specific additional fields.
-
Constructor Details
-
AttributeDefinitionAlreadyExistsErrorBuilder
public AttributeDefinitionAlreadyExistsErrorBuilder()
-
-
Method Details
-
message
"An attribute definition with name $attributeName already exists on product type $productTypeName."
- Parameters:
message
- value to be set- Returns:
- Builder
-
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 AttributeDefinitionAlreadyExistsErrorBuilder conflictingProductTypeId(String conflictingProductTypeId) Unique identifier of the Product Type containing the conflicting name.
- Parameters:
conflictingProductTypeId
- value to be set- Returns:
- Builder
-
conflictingProductTypeName
public AttributeDefinitionAlreadyExistsErrorBuilder conflictingProductTypeName(String conflictingProductTypeName) Name of the Product Type containing the conflicting name.
- Parameters:
conflictingProductTypeName
- value to be set- Returns:
- Builder
-
conflictingAttributeName
public AttributeDefinitionAlreadyExistsErrorBuilder conflictingAttributeName(String conflictingAttributeName) Name of the conflicting Attribute.
- Parameters:
conflictingAttributeName
- value to be set- Returns:
- Builder
-
getMessage
"An attribute definition with name $attributeName already exists on product type $productTypeName."
- Returns:
- message
-
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 AttributeDefinitionAlreadyExistsError with checking for non-null required values- Specified by:
build
in interfaceBuilder<AttributeDefinitionAlreadyExistsError>
- Returns:
- AttributeDefinitionAlreadyExistsError
-
buildUnchecked
builds AttributeDefinitionAlreadyExistsError without checking for non-null required values- Returns:
- AttributeDefinitionAlreadyExistsError
-
of
factory method for an instance of AttributeDefinitionAlreadyExistsErrorBuilder- Returns:
- builder
-
of
public static AttributeDefinitionAlreadyExistsErrorBuilder of(AttributeDefinitionAlreadyExistsError template) create builder for AttributeDefinitionAlreadyExistsError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-