Class GenericResource

    • Constructor Detail

      • GenericResource

        @Internal
        public GenericResource()
        Create a new resource. Note: Should only be called by deserialization – if you wish to create your own Resource, please create a custom implementation of AbstractResource.
    • Method Detail

      • addProperty

        @Internal
        public void addProperty​(java.lang.String key,
                                java.lang.Object v)
        Add a property to this resource (internal, for deserialization use only).
        Parameters:
        key - Property key
        v - Property value
      • getAdditionalProperties

        public java.util.Map<java.lang.String,​java.lang.Object> getAdditionalProperties()
        Get the properties of this resource, as an untyped map.
        Returns:
        The properties of this resource
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object