Class AttributeDefinitionTypeConflictErrorBuilder

java.lang.Object
com.commercetools.api.models.error.AttributeDefinitionTypeConflictErrorBuilder
All Implemented Interfaces:
io.vrap.rmf.base.client.Builder<AttributeDefinitionTypeConflictError>

public class AttributeDefinitionTypeConflictErrorBuilder extends Object implements io.vrap.rmf.base.client.Builder<AttributeDefinitionTypeConflictError>
AttributeDefinitionTypeConflictErrorBuilder
Example to create an instance using the builder pattern

     AttributeDefinitionTypeConflictError attributeDefinitionTypeConflictError = AttributeDefinitionTypeConflictError.builder()
             .message("{message}")
             .conflictingProductTypeId("{conflictingProductTypeId}")
             .conflictingProductTypeName("{conflictingProductTypeName}")
             .conflictingAttributeName("{conflictingAttributeName}")
             .build()
 
  • Constructor Details

    • AttributeDefinitionTypeConflictErrorBuilder

      public AttributeDefinitionTypeConflictErrorBuilder()
  • Method Details

    • message

      "The attribute with name $attributeName has a different type 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 name
      value - property value
      Returns:
      Builder
    • conflictingProductTypeId

      public AttributeDefinitionTypeConflictErrorBuilder conflictingProductTypeId(String conflictingProductTypeId)

      Unique identifier of the Product Type containing the conflicting name.

      Parameters:
      conflictingProductTypeId - value to be set
      Returns:
      Builder
    • conflictingProductTypeName

      public AttributeDefinitionTypeConflictErrorBuilder conflictingProductTypeName(String conflictingProductTypeName)

      Name of the Product Type containing the conflicting name.

      Parameters:
      conflictingProductTypeName - value to be set
      Returns:
      Builder
    • conflictingAttributeName

      public AttributeDefinitionTypeConflictErrorBuilder conflictingAttributeName(String conflictingAttributeName)

      Name of the conflicting Attribute.

      Parameters:
      conflictingAttributeName - value to be set
      Returns:
      Builder
    • getMessage

      public String getMessage()

      "The attribute with name $attributeName has a different type on product type $productTypeName."

      Returns:
      message
    • getValues

      public Map<String,Object> getValues()

      Error-specific additional fields.

      Returns:
      pattern properties
    • getConflictingProductTypeId

      public String getConflictingProductTypeId()

      Unique identifier of the Product Type containing the conflicting name.

      Returns:
      conflictingProductTypeId
    • getConflictingProductTypeName

      public String getConflictingProductTypeName()

      Name of the Product Type containing the conflicting name.

      Returns:
      conflictingProductTypeName
    • getConflictingAttributeName

      public String getConflictingAttributeName()

      Name of the conflicting Attribute.

      Returns:
      conflictingAttributeName
    • build

      builds AttributeDefinitionTypeConflictError with checking for non-null required values
      Specified by:
      build in interface io.vrap.rmf.base.client.Builder<AttributeDefinitionTypeConflictError>
      Returns:
      AttributeDefinitionTypeConflictError
    • buildUnchecked

      public AttributeDefinitionTypeConflictError buildUnchecked()
      builds AttributeDefinitionTypeConflictError without checking for non-null required values
      Returns:
      AttributeDefinitionTypeConflictError
    • of

      factory method for an instance of AttributeDefinitionTypeConflictErrorBuilder
      Returns:
      builder
    • of

      create builder for AttributeDefinitionTypeConflictError instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder