Package org.cdk8s.plus24.k8s
Class GitRepoVolumeSource.Builder
- java.lang.Object
-
- org.cdk8s.plus24.k8s.GitRepoVolumeSource.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<GitRepoVolumeSource>
- Enclosing interface:
- GitRepoVolumeSource
@Stability(Stable) public static final class GitRepoVolumeSource.Builder extends Object implements software.amazon.jsii.Builder<GitRepoVolumeSource>
A builder forGitRepoVolumeSource
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GitRepoVolumeSource
build()
Builds the configured instance.GitRepoVolumeSource.Builder
directory(String directory)
Sets the value ofGitRepoVolumeSource.getDirectory()
GitRepoVolumeSource.Builder
repository(String repository)
Sets the value ofGitRepoVolumeSource.getRepository()
GitRepoVolumeSource.Builder
revision(String revision)
Sets the value ofGitRepoVolumeSource.getRevision()
-
-
-
Method Detail
-
repository
@Stability(Stable) public GitRepoVolumeSource.Builder repository(String repository)
Sets the value ofGitRepoVolumeSource.getRepository()
- Parameters:
repository
- repository is the URL. This parameter is required.- Returns:
this
-
directory
@Stability(Stable) public GitRepoVolumeSource.Builder directory(String directory)
Sets the value ofGitRepoVolumeSource.getDirectory()
- Parameters:
directory
- directory is the 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:
this
-
revision
@Stability(Stable) public GitRepoVolumeSource.Builder revision(String revision)
Sets the value ofGitRepoVolumeSource.getRevision()
- Parameters:
revision
- revision is the commit hash for the specified revision.- Returns:
this
-
build
@Stability(Stable) public GitRepoVolumeSource build()
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<GitRepoVolumeSource>
- Returns:
- a new instance of
GitRepoVolumeSource
- Throws:
NullPointerException
- if any required attribute was not provided
-
-