Class Resource

    • Constructor Detail

      • Resource

        protected Resource​(Resource resource)
        Copy constructor.
        Parameters:
        resource - resource to by copied.
      • Resource

        protected Resource()
        Constructor.
      • Resource

        protected Resource​(String jsonString)
        Constructor.
        Parameters:
        jsonString - the json string that represents the resource.
    • Method Detail

      • id

        public String id()
        Gets the name of the resource.
        Returns:
        the name of the resource.
      • id

        public Resource id​(String id)
        Sets the name of the resource.
        Parameters:
        id - the name of the resource.
        Returns:
        the resource.
      • resourceId

        public String resourceId()
        Gets the ID associated with the resource.
        Returns:
        the ID associated with the resource.
      • resourceId

        public Resource resourceId​(String resourceId)
        Set the ID associated with the resource.
        Parameters:
        resourceId - the ID associated with the resource.
        Returns:
        the resource.
      • selfLink

        public String selfLink()
        Get the self-link associated with the resource.
        Returns:
        the self link.
      • timestamp

        public OffsetDateTime timestamp()
        Get the last modified timestamp associated with the resource.
        Returns:
        the timestamp.
      • etag

        public String etag()
        Get the entity tag associated with the resource.
        Returns:
        the e tag.