Class Asset

    • Constructor Detail

      • Asset

        public Asset()
    • Method Detail

      • addAttribute

        public void addAttribute​(String name,
                                 Object value)
        Takes in any additional attributes passed in the request not matching any defined properties.
        Parameters:
        name - Name of the additional attribute
        value - Value of the additional attribute
      • getAttribute

        public Map<String,​Object> getAttribute()
        Return any additional attributes passed in the request not matching any defined properties.
        Returns:
        any additional attributes passed in the request not matching any defined properties.
      • getTags

        public LinkedHashSet<String> getTags()
        Descriptive or identifying labels.
        Returns:
        Descriptive or identifying labels.
      • isPrimary

        public boolean isPrimary()
        Determines whether this asset should be considered the primary (or default) asset for the parent entity.

        For any entity, there can only be one Asset with this value set to true.

        Returns:
        Whether this the primary asset for the parent entity.
      • getAttributes

        public Map<String,​Object> getAttributes()
        Map holding any additional attributes passed in the request not matching any defined properties.
      • setTags

        public void setTags​(LinkedHashSet<String> tags)
        Descriptive or identifying labels.
        Parameters:
        tags - Descriptive or identifying labels.
      • setPrimary

        public void setPrimary​(boolean primary)
        Determines whether this asset should be considered the primary (or default) asset for the parent entity.

        For any entity, there can only be one Asset with this value set to true.

        Parameters:
        primary - Whether this the primary asset for the parent entity.
      • setAttributes

        public void setAttributes​(Map<String,​Object> attributes)
        Map holding any additional attributes passed in the request not matching any defined properties.
      • canEqual

        protected boolean canEqual​(Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object