Class ZoneDraftImpl

java.lang.Object
com.commercetools.api.models.zone.ZoneDraftImpl
All Implemented Interfaces:
WithKey, ZoneDraft, io.vrap.rmf.base.client.Draft<ZoneDraft>, io.vrap.rmf.base.client.ModelBase

public class ZoneDraftImpl extends Object implements ZoneDraft, io.vrap.rmf.base.client.ModelBase
ZoneDraft
  • Constructor Details

    • ZoneDraftImpl

      public ZoneDraftImpl()
      create empty instance
  • Method Details

    • getKey

      public String getKey()

      User-defined unique identifier for the Zone.

      Specified by:
      getKey in interface WithKey
      Specified by:
      getKey in interface ZoneDraft
      Returns:
      key
    • getName

      public String getName()

      Name of the Zone.

      Specified by:
      getName in interface ZoneDraft
      Returns:
      name
    • getDescription

      public String getDescription()

      Description of the Zone.

      Specified by:
      getDescription in interface ZoneDraft
      Returns:
      description
    • getLocations

      public List<Location> getLocations()

      List of locations that belong to the Zone.

      Specified by:
      getLocations in interface ZoneDraft
      Returns:
      locations
    • setKey

      public void setKey(String key)
      Description copied from interface: ZoneDraft

      User-defined unique identifier for the Zone.

      Specified by:
      setKey in interface ZoneDraft
      Parameters:
      key - value to be set
    • setName

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

      Name of the Zone.

      Specified by:
      setName in interface ZoneDraft
      Parameters:
      name - value to be set
    • setDescription

      public void setDescription(String description)
      Description copied from interface: ZoneDraft

      Description of the Zone.

      Specified by:
      setDescription in interface ZoneDraft
      Parameters:
      description - value to be set
    • setLocations

      public void setLocations(Location... locations)
      Description copied from interface: ZoneDraft

      List of locations that belong to the Zone.

      Specified by:
      setLocations in interface ZoneDraft
      Parameters:
      locations - values to be set
    • setLocations

      public void setLocations(List<Location> locations)
      Description copied from interface: ZoneDraft

      List of locations that belong to the Zone.

      Specified by:
      setLocations in interface ZoneDraft
      Parameters:
      locations - values to be set
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object