Class UserSourceInfo
- java.lang.Object
-
- com.azure.resourcemanager.appplatform.models.UserSourceInfo
-
public final class UserSourceInfo extends Object
Source information for a deployment.
-
-
Constructor Summary
Constructors Constructor Description UserSourceInfo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringartifactSelector()Get the artifactSelector property: Selector for the artifact to be used for the deployment for multi-module projects.StringrelativePath()Get the relativePath property: Relative path of the storage which stores the source.UserSourceTypetype()Get the type property: Type of the source uploaded.voidvalidate()Validates the instance.Stringversion()Get the version property: Version of the source.UserSourceInfowithArtifactSelector(String artifactSelector)Set the artifactSelector property: Selector for the artifact to be used for the deployment for multi-module projects.UserSourceInfowithRelativePath(String relativePath)Set the relativePath property: Relative path of the storage which stores the source.UserSourceInfowithType(UserSourceType type)Set the type property: Type of the source uploaded.UserSourceInfowithVersion(String version)Set the version property: Version of the source.
-
-
-
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.
-
-