Class CMAUpload


  • public class CMAUpload
    extends CMAResource
    Class representing an uploaded file, to be used as an asset.
    • Constructor Detail

      • CMAUpload

        public CMAUpload()
        create an upload
    • Method Detail

      • setSystem

        public CMAUpload setSystem​(CMASystem system)
        Update the current instances system property to a complete new one.
        Overrides:
        setSystem in class CMAResource
        Parameters:
        system - sets the system property.
        Returns:
        this instance for chaining.
      • setId

        public CMAUpload setId​(java.lang.String id)
        Sets this resources id.
        Overrides:
        setId in class CMAResource
        Parameters:
        id - to be set
        Returns:
        this instance for chaining.
      • setVersion

        public CMAUpload setVersion​(java.lang.Integer version)
        Sets the version of this resource.
        Overrides:
        setVersion in class CMAResource
        Parameters:
        version - the version number to be set.
        Returns:
        this instance of CMAUpload for chaining.
      • setSpaceId

        public CMAUpload setSpaceId​(java.lang.String spaceId)
        Set the space id in a chainable manner.
        Overrides:
        setSpaceId in class CMAResource
        Parameters:
        spaceId - the id to be set.
        Returns:
        this instance for chaining.
      • setEnvironmentId

        public CMAUpload setEnvironmentId​(java.lang.String environmentId)
        Description copied from class: CMAResource
        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.