Class GitRepoVolume
- java.lang.Object
-
- com.azure.resourcemanager.containerinstance.models.GitRepoVolume
-
public final class GitRepoVolume extends Object
Represents a volume that is populated with the contents of a git repository.
-
-
Constructor Summary
Constructors Constructor Description GitRepoVolume()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringdirectory()Get the directory property: Target directory name.Stringrepository()Get the repository property: Repository URL.Stringrevision()Get the revision property: Commit hash for the specified revision.voidvalidate()Validates the instance.GitRepoVolumewithDirectory(String directory)Set the directory property: Target directory name.GitRepoVolumewithRepository(String repository)Set the repository property: Repository URL.GitRepoVolumewithRevision(String revision)Set the revision property: Commit hash for the specified revision.
-
-
-
Method Detail
-
directory
public String directory()
Get the directory property: Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name.- Returns:
- the directory value.
-
withDirectory
public GitRepoVolume withDirectory(String directory)
Set the directory property: Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name.- Parameters:
directory- the directory value to set.- Returns:
- the GitRepoVolume object itself.
-
repository
public String repository()
Get the repository property: Repository URL.- Returns:
- the repository value.
-
withRepository
public GitRepoVolume withRepository(String repository)
Set the repository property: Repository URL.- Parameters:
repository- the repository value to set.- Returns:
- the GitRepoVolume object itself.
-
revision
public String revision()
Get the revision property: Commit hash for the specified revision.- Returns:
- the revision value.
-
withRevision
public GitRepoVolume withRevision(String revision)
Set the revision property: Commit hash for the specified revision.- Parameters:
revision- the revision value to set.- Returns:
- the GitRepoVolume object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-