Class ProductAttributeInput

java.lang.Object
com.commercetools.graphql.api.types.ProductAttributeInput

public class ProductAttributeInput extends Object
An input object used to define a ProductAttribute. The value should be passed in a form of escaped JSON. Examples for `value`: * FieldType `String`: `"\"This is a string\""` * FieldType `DateTimeType`: `"\"2018-10-12T14:00:00.000Z\""` * FieldType `Number`: `"4"` * FieldType `Set` with an elementType of `String`: `"[\"This is a string\", \"This is another string\"]"` * FieldType `Reference`: `"{\"id\": \"b911b62d-353a-4388-93ee-8d488d9af962\", \"typeId\": \"product\"}"`
  • Constructor Details

    • ProductAttributeInput

      public ProductAttributeInput()
    • ProductAttributeInput

      public ProductAttributeInput(String name, String value)
  • Method Details

    • getName

      public String getName()
    • setName

      public void setName(String name)
    • getValue

      public String getValue()
      The value should be passed in a form of escaped JSON. Examples for `value`: * FieldType `String`: `"\"This is a string\""` * FieldType `DateTimeType`: `"\"2018-10-12T14:00:00.000Z\""` * FieldType `Number`: `"4"` * FieldType `Set` with an elementType of `String`: `"[\"This is a string\", \"This is another string\"]"` * FieldType `Reference`: `"{\"id\": \"b911b62d-353a-4388-93ee-8d488d9af962\", \"typeId\": \"product\"}"`
    • setValue

      public void setValue(String value)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • newBuilder

      public static ProductAttributeInput.Builder newBuilder()