Class ZoneReferenceImpl

java.lang.Object
com.commercetools.api.models.zone.ZoneReferenceImpl
All Implemented Interfaces:
Reference, ReferenceMixin, Identifiable<Zone>, ZoneReference, io.vrap.rmf.base.client.ModelBase

public class ZoneReferenceImpl extends Object implements ZoneReference, io.vrap.rmf.base.client.ModelBase

Reference to a Zone.

  • Nested Class Summary

    Nested classes/interfaces inherited from interface io.vrap.rmf.base.client.ModelBase

    io.vrap.rmf.base.client.ModelBase.FilteredRecursiveToStringStyle
  • Field Summary

    Fields inherited from interface com.commercetools.api.models.zone.ZoneReference

    ZONE
  • Constructor Summary

    Constructors
    Constructor
    Description
    create empty instance
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    Unique identifier of the referenced Zone.
    Contains the representation of the expanded Zone.
    Type of referenced resource.
    int
     
    void
    Unique identifier of the referenced Zone.
    void
    setObj(Zone obj)
    Contains the representation of the expanded Zone.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface io.vrap.rmf.base.client.ModelBase

    reflectionString, reflectionString

    Methods inherited from interface com.commercetools.api.models.common.Reference

    withReference

    Methods inherited from interface com.commercetools.api.models.common.ReferenceMixin

    toResourceIdentifier

    Methods inherited from interface com.commercetools.api.models.zone.ZoneReference

    withZoneReference
  • Constructor Details

    • ZoneReferenceImpl

      public ZoneReferenceImpl()
      create empty instance
  • Method Details

    • getTypeId

      public ReferenceTypeId getTypeId()

      Type of referenced resource.

      Specified by:
      getTypeId in interface Reference
      Specified by:
      getTypeId in interface ReferenceMixin
      Returns:
      typeId
    • getId

      public String getId()

      Unique identifier of the referenced Zone.

      Specified by:
      getId in interface Identifiable<Zone>
      Specified by:
      getId in interface Reference
      Specified by:
      getId in interface ReferenceMixin
      Specified by:
      getId in interface ZoneReference
      Returns:
      id
    • getObj

      public Zone getObj()

      Contains the representation of the expanded Zone. Only present in responses to requests with Reference Expansion for Zones.

      Specified by:
      getObj in interface ZoneReference
      Returns:
      obj
    • setId

      public void setId(String id)
      Description copied from interface: ZoneReference

      Unique identifier of the referenced Zone.

      Specified by:
      setId in interface Reference
      Specified by:
      setId in interface ZoneReference
      Parameters:
      id - value to be set
    • setObj

      public void setObj(Zone obj)
      Description copied from interface: ZoneReference

      Contains the representation of the expanded Zone. Only present in responses to requests with Reference Expansion for Zones.

      Specified by:
      setObj in interface ZoneReference
      Parameters:
      obj - value to be set
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object