Class ZoneImpl

java.lang.Object
com.commercetools.api.models.zone.ZoneImpl
All Implemented Interfaces:
BaseResource, DomainResource<Zone>, Identifiable<Zone>, Referencable<Zone>, ResourceIdentifiable<Zone>, Versioned<Zone>, WithKey, Zone, ZoneMixin, io.vrap.rmf.base.client.ModelBase

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

    • ZoneImpl

      public ZoneImpl()
      create empty instance
  • Method Details

    • getId

      public String getId()

      Unique identifier of the Zone.

      Specified by:
      getId in interface BaseResource
      Specified by:
      getId in interface DomainResource<Zone>
      Specified by:
      getId in interface Identifiable<Zone>
      Specified by:
      getId in interface Versioned<Zone>
      Specified by:
      getId in interface Zone
      Returns:
      id
    • getVersion

      public Long getVersion()

      Current version of the Zone.

      Specified by:
      getVersion in interface BaseResource
      Specified by:
      getVersion in interface DomainResource<Zone>
      Specified by:
      getVersion in interface Versioned<Zone>
      Specified by:
      getVersion in interface Zone
      Returns:
      version
    • getCreatedAt

      public ZonedDateTime getCreatedAt()

      Date and time (UTC) the Zone was initially created.

      Specified by:
      getCreatedAt in interface BaseResource
      Specified by:
      getCreatedAt in interface Zone
      Returns:
      createdAt
    • getLastModifiedAt

      public ZonedDateTime getLastModifiedAt()

      Date and time (UTC) the Zone was last updated.

      Specified by:
      getLastModifiedAt in interface BaseResource
      Specified by:
      getLastModifiedAt in interface Zone
      Returns:
      lastModifiedAt
    • getLastModifiedBy

      public LastModifiedBy getLastModifiedBy()

      Present on resources created after 1 February 2019 except for events not tracked.

      Specified by:
      getLastModifiedBy in interface Zone
      Returns:
      lastModifiedBy
    • getCreatedBy

      public CreatedBy getCreatedBy()

      Present on resources created after 1 February 2019 except for events not tracked.

      Specified by:
      getCreatedBy in interface Zone
      Returns:
      createdBy
    • getKey

      public String getKey()

      User-defined unique identifier of the Zone.

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

      public String getName()

      Name of the Zone.

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

      public String getDescription()

      Description of the Zone.

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

      public List<Location> getLocations()

      List of locations that belong to the Zone.

      Specified by:
      getLocations in interface Zone
      Specified by:
      getLocations in interface ZoneMixin
      Returns:
      locations
    • setId

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

      Unique identifier of the Zone.

      Specified by:
      setId in interface BaseResource
      Specified by:
      setId in interface Zone
      Parameters:
      id - value to be set
    • setVersion

      public void setVersion(Long version)
      Description copied from interface: Zone

      Current version of the Zone.

      Specified by:
      setVersion in interface BaseResource
      Specified by:
      setVersion in interface Zone
      Parameters:
      version - value to be set
    • setCreatedAt

      public void setCreatedAt(ZonedDateTime createdAt)
      Description copied from interface: Zone

      Date and time (UTC) the Zone was initially created.

      Specified by:
      setCreatedAt in interface BaseResource
      Specified by:
      setCreatedAt in interface Zone
      Parameters:
      createdAt - value to be set
    • setLastModifiedAt

      public void setLastModifiedAt(ZonedDateTime lastModifiedAt)
      Description copied from interface: Zone

      Date and time (UTC) the Zone was last updated.

      Specified by:
      setLastModifiedAt in interface BaseResource
      Specified by:
      setLastModifiedAt in interface Zone
      Parameters:
      lastModifiedAt - value to be set
    • setLastModifiedBy

      public void setLastModifiedBy(LastModifiedBy lastModifiedBy)
      Description copied from interface: Zone

      Present on resources created after 1 February 2019 except for events not tracked.

      Specified by:
      setLastModifiedBy in interface Zone
      Parameters:
      lastModifiedBy - value to be set
    • setCreatedBy

      public void setCreatedBy(CreatedBy createdBy)
      Description copied from interface: Zone

      Present on resources created after 1 February 2019 except for events not tracked.

      Specified by:
      setCreatedBy in interface Zone
      Parameters:
      createdBy - value to be set
    • setKey

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

      User-defined unique identifier of the Zone.

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

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

      Name of the Zone.

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

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

      Description of the Zone.

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

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

      List of locations that belong to the Zone.

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

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

      List of locations that belong to the Zone.

      Specified by:
      setLocations in interface Zone
      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
    • toString

      public String toString()
      Overrides:
      toString in class Object