Class ReferenceSetAttributeImpl

java.lang.Object
com.commercetools.importapi.models.productvariants.ReferenceSetAttributeImpl
All Implemented Interfaces:
Attribute, ReferenceSetAttribute, io.vrap.rmf.base.client.ModelBase

public class ReferenceSetAttributeImpl extends Object implements ReferenceSetAttribute, io.vrap.rmf.base.client.ModelBase

This type represents an attribute whose value is a set of references.

  • Constructor Details

    • ReferenceSetAttributeImpl

      public ReferenceSetAttributeImpl()
      create empty instance
  • Method Details

    • getName

      public String getName()

      The name of this attribute must match a name of the product types attribute definitions. The name is required if this type is used in a product variant and must not be set when used in a product variant patch.

      Specified by:
      getName in interface Attribute
      Returns:
      name
    • getType

      public String getType()
      Specified by:
      getType in interface Attribute
      Returns:
      type
    • getValue

      public List<KeyReference> getValue()
      Specified by:
      getValue in interface ReferenceSetAttribute
      Returns:
      value
    • setName

      public void setName(String name)
      Description copied from interface: Attribute

      The name of this attribute must match a name of the product types attribute definitions. The name is required if this type is used in a product variant and must not be set when used in a product variant patch.

      Specified by:
      setName in interface Attribute
      Parameters:
      name - value to be set
    • setValue

      public void setValue(KeyReference... value)
      Description copied from interface: ReferenceSetAttribute
      set value
      Specified by:
      setValue in interface ReferenceSetAttribute
      Parameters:
      value - values to be set
    • setValue

      public void setValue(List<KeyReference> value)
      Description copied from interface: ReferenceSetAttribute
      set value
      Specified by:
      setValue in interface ReferenceSetAttribute
      Parameters:
      value - values to be set
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object