Package org.cdk8s.jenkins
Class SeedJob.Builder
- java.lang.Object
-
- org.cdk8s.jenkins.SeedJob.Builder
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SeedJobbuild()Builds the configured instance.SeedJob.Builderdescription(String description)Sets the value ofSeedJob.getDescription()SeedJob.Builderid(String id)Sets the value ofSeedJob.getId()SeedJob.BuilderrepositoryBranch(String repositoryBranch)Sets the value ofSeedJob.getRepositoryBranch()SeedJob.BuilderrepositoryUrl(String repositoryUrl)Sets the value ofSeedJob.getRepositoryUrl()SeedJob.Buildertargets(String targets)Sets the value ofSeedJob.getTargets()
-
-
-
Method Detail
-
description
@Stability(Stable) public SeedJob.Builder description(String description)
Sets the value ofSeedJob.getDescription()- Parameters:
description- The description of the seed job. This parameter is required.- Returns:
this
-
id
@Stability(Stable) public SeedJob.Builder id(String id)
Sets the value ofSeedJob.getId()- Parameters:
id- The unique name for the seed job. This parameter is required.- Returns:
this
-
repositoryBranch
@Stability(Stable) public SeedJob.Builder repositoryBranch(String repositoryBranch)
Sets the value ofSeedJob.getRepositoryBranch()- Parameters:
repositoryBranch- The repository branch where seed job definitions are present. This parameter is required.- Returns:
this
-
repositoryUrl
@Stability(Stable) public SeedJob.Builder repositoryUrl(String repositoryUrl)
Sets the value ofSeedJob.getRepositoryUrl()- Parameters:
repositoryUrl- The repository access URL. This parameter is required. Supports SSH and HTTPS.- Returns:
this
-
targets
@Stability(Stable) public SeedJob.Builder targets(String targets)
Sets the value ofSeedJob.getTargets()- Parameters:
targets- The repository path where seed job definitions are present. This parameter is required.- Returns:
this
-
build
@Stability(Stable) public SeedJob build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<SeedJob>- Returns:
- a new instance of
SeedJob - Throws:
NullPointerException- if any required attribute was not provided
-
-