Class ChannelImpl

java.lang.Object
com.commercetools.api.models.channel.ChannelImpl
All Implemented Interfaces:
Channel, ChannelMixin, BaseResource, Customizable<Channel>, DomainResource<Channel>, Identifiable<Channel>, Referencable<Channel>, ResourceIdentifiable<Channel>, Versioned<Channel>, WithKey, io.vrap.rmf.base.client.ModelBase

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

    • ChannelImpl

      public ChannelImpl()
      create empty instance
  • Method Details

    • getId

      public String getId()

      Unique identifier of the Channel.

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

      public Long getVersion()

      Current version of the Channel.

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

      public ZonedDateTime getCreatedAt()

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

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

      public ZonedDateTime getLastModifiedAt()

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

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

      public LastModifiedBy getLastModifiedBy()

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

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

      public CreatedBy getCreatedBy()

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

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

      public String getKey()

      User-defined unique identifier of the Channel.

      Specified by:
      getKey in interface Channel
      Specified by:
      getKey in interface WithKey
      Returns:
      key
    • getRoles

      public List<ChannelRoleEnum> getRoles()

      Roles of the Channel.

      Specified by:
      getRoles in interface Channel
      Returns:
      roles
    • getName

      public LocalizedString getName()

      Name of the Channel.

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

      public LocalizedString getDescription()

      Description of the Channel.

      Specified by:
      getDescription in interface Channel
      Returns:
      description
    • getAddress

      public Address getAddress()

      Address where the Channel is located (for example, if the Channel is a physical store).

      Specified by:
      getAddress in interface Channel
      Returns:
      address
    • getReviewRatingStatistics

      public ReviewRatingStatistics getReviewRatingStatistics()

      Statistics about the review ratings taken into account for the Channel.

      Specified by:
      getReviewRatingStatistics in interface Channel
      Returns:
      reviewRatingStatistics
    • getCustom

      public CustomFields getCustom()

      Custom Fields defined for the Channel.

      Specified by:
      getCustom in interface Channel
      Specified by:
      getCustom in interface Customizable<Channel>
      Returns:
      custom
    • getGeoLocation

      public GeoJson getGeoLocation()

      GeoJSON geometry object encoding the geo location of the Channel.

      Specified by:
      getGeoLocation in interface Channel
      Returns:
      geoLocation
    • setId

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

      Unique identifier of the Channel.

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

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

      Current version of the Channel.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      User-defined unique identifier of the Channel.

      Specified by:
      setKey in interface Channel
      Parameters:
      key - value to be set
    • setRoles

      public void setRoles(ChannelRoleEnum... roles)
      Description copied from interface: Channel

      Roles of the Channel.

      Specified by:
      setRoles in interface Channel
      Parameters:
      roles - values to be set
    • setRoles

      public void setRoles(List<ChannelRoleEnum> roles)
      Description copied from interface: Channel

      Roles of the Channel.

      Specified by:
      setRoles in interface Channel
      Parameters:
      roles - values to be set
    • setName

      public void setName(LocalizedString name)
      Description copied from interface: Channel

      Name of the Channel.

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

      public void setDescription(LocalizedString description)
      Description copied from interface: Channel

      Description of the Channel.

      Specified by:
      setDescription in interface Channel
      Parameters:
      description - value to be set
    • setAddress

      public void setAddress(Address address)
      Description copied from interface: Channel

      Address where the Channel is located (for example, if the Channel is a physical store).

      Specified by:
      setAddress in interface Channel
      Parameters:
      address - value to be set
    • setReviewRatingStatistics

      public void setReviewRatingStatistics(ReviewRatingStatistics reviewRatingStatistics)
      Description copied from interface: Channel

      Statistics about the review ratings taken into account for the Channel.

      Specified by:
      setReviewRatingStatistics in interface Channel
      Parameters:
      reviewRatingStatistics - value to be set
    • setCustom

      public void setCustom(CustomFields custom)
      Description copied from interface: Channel

      Custom Fields defined for the Channel.

      Specified by:
      setCustom in interface Channel
      Specified by:
      setCustom in interface Customizable<Channel>
      Parameters:
      custom - value to be set
    • setGeoLocation

      public void setGeoLocation(GeoJson geoLocation)
      Description copied from interface: Channel

      GeoJSON geometry object encoding the geo location of the Channel.

      Specified by:
      setGeoLocation in interface Channel
      Parameters:
      geoLocation - value to be set
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object