Class UserSourceInfo


  • public final class UserSourceInfo
    extends Object
    Source information for a deployment.
    • Constructor Detail

      • UserSourceInfo

        public UserSourceInfo()
    • Method Detail

      • type

        public UserSourceType type()
        Get the type property: Type of the source uploaded.
        Returns:
        the type value.
      • withType

        public UserSourceInfo withType​(UserSourceType type)
        Set the type property: Type of the source uploaded.
        Parameters:
        type - the type value to set.
        Returns:
        the UserSourceInfo object itself.
      • relativePath

        public String relativePath()
        Get the relativePath property: Relative path of the storage which stores the source.
        Returns:
        the relativePath value.
      • withRelativePath

        public UserSourceInfo withRelativePath​(String relativePath)
        Set the relativePath property: Relative path of the storage which stores the source.
        Parameters:
        relativePath - the relativePath value to set.
        Returns:
        the UserSourceInfo object itself.
      • version

        public String version()
        Get the version property: Version of the source.
        Returns:
        the version value.
      • withVersion

        public UserSourceInfo withVersion​(String version)
        Set the version property: Version of the source.
        Parameters:
        version - the version value to set.
        Returns:
        the UserSourceInfo object itself.
      • artifactSelector

        public String artifactSelector()
        Get the artifactSelector property: Selector for the artifact to be used for the deployment for multi-module projects. This should be the relative path to the target module/project.
        Returns:
        the artifactSelector value.
      • withArtifactSelector

        public UserSourceInfo withArtifactSelector​(String artifactSelector)
        Set the artifactSelector property: Selector for the artifact to be used for the deployment for multi-module projects. This should be the relative path to the target module/project.
        Parameters:
        artifactSelector - the artifactSelector value to set.
        Returns:
        the UserSourceInfo object itself.
      • validate

        public void validate()
        Validates the instance.
        Throws:
        IllegalArgumentException - thrown if the instance is not valid.