Class QuoteResourceIdentifierImpl

java.lang.Object
com.commercetools.api.models.quote.QuoteResourceIdentifierImpl
All Implemented Interfaces:
ResourceIdentifier, Identifiable<Quote>, QuoteResourceIdentifier, WithKey, io.vrap.rmf.base.client.ModelBase

public class QuoteResourceIdentifierImpl extends Object implements QuoteResourceIdentifier, io.vrap.rmf.base.client.ModelBase

ResourceIdentifier to a Quote.

  • Constructor Details

    • QuoteResourceIdentifierImpl

      public QuoteResourceIdentifierImpl()
      create empty instance
  • Method Details

    • getTypeId

      public ReferenceTypeId getTypeId()

      Type of referenced resource. If given, it must match the expected ReferenceTypeId of the referenced resource.

      Specified by:
      getTypeId in interface ResourceIdentifier
      Returns:
      typeId
    • getId

      public String getId()

      Unique identifier of the referenced resource. Required if key is absent.

      Specified by:
      getId in interface Identifiable<Quote>
      Specified by:
      getId in interface ResourceIdentifier
      Returns:
      id
    • getKey

      public String getKey()

      User-defined unique identifier of the referenced resource. Required if id is absent.

      Specified by:
      getKey in interface ResourceIdentifier
      Specified by:
      getKey in interface WithKey
      Returns:
      key
    • setId

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

      Unique identifier of the referenced resource. Required if key is absent.

      Specified by:
      setId in interface ResourceIdentifier
      Parameters:
      id - value to be set
    • setKey

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

      User-defined unique identifier of the referenced resource. Required if id is absent.

      Specified by:
      setKey in interface ResourceIdentifier
      Parameters:
      key - value to be set
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object