Class CMAAsset


  • public class CMAAsset
    extends CMAResource
    Represents a resource of type Asset.
    • Constructor Detail

      • CMAAsset

        public CMAAsset()
        Create a new asset, setting the system's type field.
    • Method Detail

      • getFields

        public CMAAsset.Fields getFields()
        Returns:
        fields for this asset.
      • setFields

        public CMAAsset setFields​(CMAAsset.Fields fields)
        Sets new fields for this Asset.
        Parameters:
        fields - fields to overwrite the current set of fields.
        Returns:
        this CMAAsset instance
      • setSystem

        public CMAAsset setSystem​(CMASystem system)
        Sets the system field.
        Overrides:
        setSystem in class CMAResource
        Parameters:
        system - sets the system property.
        Returns:
        this instance for chaining.
      • setMetadata

        public CMAAsset setMetadata​(CMAMetadata metadata)
        Sets the metadata for this asset.
        Parameters:
        metadata - The CMAMetadata instance to associate with this asset.
        Returns:
        This CMAAsset instance for method chaining.
      • setId

        public CMAAsset setId​(java.lang.String id)
        Convenience: Update the id of this entry without going through CMAResource.getSystem().
        Overrides:
        setId in class CMAResource
        Parameters:
        id - to be set.
        Returns:
        the calling instance for chaining.
      • getVersion

        public java.lang.Integer getVersion()
        Convenience for getting the version of this resource.
        Overrides:
        getVersion in class CMAResource
        Returns:
        the calling instance for chaining.
      • setVersion

        public CMAAsset setVersion​(java.lang.Integer version)
        Convenience: Update the version of this entry without going through CMAResource.getSystem().
        Overrides:
        setVersion in class CMAResource
        Parameters:
        version - to be set.
        Returns:
        the calling instance for chaining.
      • setSpaceId

        public CMAAsset setSpaceId​(java.lang.String spaceId)
        Convenience: Update the space id of this entry without going through CMAResource.getSystem().
        Overrides:
        setSpaceId in class CMAResource
        Parameters:
        spaceId - to be set.
        Returns:
        the calling instance for chaining.
      • setEnvironmentId

        public CMAAsset setEnvironmentId​(java.lang.String environmentId)
        Convenience method for setting an environment id.
        Overrides:
        setEnvironmentId in class CMAResource
        Parameters:
        environmentId - the id to be set.
        Returns:
        the calling CMAResource for chaining.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class CMAResource
        Returns:
        a human readable string, representing the object.