Class ResourceIdentifierImpl

java.lang.Object
com.commercetools.api.models.common.ResourceIdentifierImpl
All Implemented Interfaces:
ResourceIdentifier, WithKey, io.vrap.rmf.base.client.ModelBase

public class ResourceIdentifierImpl extends Object implements ResourceIdentifier, io.vrap.rmf.base.client.ModelBase

Draft type to create a Reference or a KeyReference to a resource. Provide either the id or (wherever supported) the key of the resource to reference, but depending on the API endpoint the response returns either a Reference or a KeyReference. For example, the field parent of a CategoryDraft takes a ResourceIdentifier for its value while the value of the corresponding field of a Category is a Reference.

Each resource type has its corresponding ResourceIdentifier, like ChannelResourceIdentifier.

  • Nested Class Summary

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

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

    Constructors
    Constructor
    Description
    create empty instance
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    Unique identifier of the referenced resource.
    User-defined unique identifier of the referenced resource.
    Type of referenced resource.
    int
     
    void
    Unique identifier of the referenced resource.
    void
    User-defined unique identifier of the referenced resource.

    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.ResourceIdentifier

    withResourceIdentifier