Class ProductTypeChangeAttributeNameActionBuilder

java.lang.Object
com.commercetools.api.models.product_type.ProductTypeChangeAttributeNameActionBuilder
All Implemented Interfaces:
Builder<ProductTypeChangeAttributeNameAction>

public class ProductTypeChangeAttributeNameActionBuilder extends Object implements Builder<ProductTypeChangeAttributeNameAction>
ProductTypeChangeAttributeNameActionBuilder
Example to create an instance using the builder pattern

     ProductTypeChangeAttributeNameAction productTypeChangeAttributeNameAction = ProductTypeChangeAttributeNameAction.builder()
             .attributeName("{attributeName}")
             .newAttributeName("{newAttributeName}")
             .build()
 
  • Constructor Details

    • ProductTypeChangeAttributeNameActionBuilder

      public ProductTypeChangeAttributeNameActionBuilder()
  • Method Details

    • attributeName

      public ProductTypeChangeAttributeNameActionBuilder attributeName(String attributeName)

      Name of the AttributeDefinition to update.

      Parameters:
      attributeName - value to be set
      Returns:
      Builder
    • newAttributeName

      public ProductTypeChangeAttributeNameActionBuilder newAttributeName(String newAttributeName)

      New user-defined name of the Attribute that is unique with the Project.

      When using the same name for an Attribute in two or more ProductTypes, all fields of the AttributeDefinition of this Attribute must be the same across the ProductTypes. If not, an AttributeDefinitionAlreadyExists error is returned. An exception to this are the values of an enum or lenum type and sets thereof.

      Parameters:
      newAttributeName - value to be set
      Returns:
      Builder
    • getAttributeName

      public String getAttributeName()

      Name of the AttributeDefinition to update.

      Returns:
      attributeName
    • getNewAttributeName

      public String getNewAttributeName()

      New user-defined name of the Attribute that is unique with the Project.

      When using the same name for an Attribute in two or more ProductTypes, all fields of the AttributeDefinition of this Attribute must be the same across the ProductTypes. If not, an AttributeDefinitionAlreadyExists error is returned. An exception to this are the values of an enum or lenum type and sets thereof.

      Returns:
      newAttributeName
    • build

      builds ProductTypeChangeAttributeNameAction with checking for non-null required values
      Specified by:
      build in interface Builder<ProductTypeChangeAttributeNameAction>
      Returns:
      ProductTypeChangeAttributeNameAction
    • buildUnchecked

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

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

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