Package org.cdk8s.jenkins
Class JenkinsProps.Builder
- java.lang.Object
-
- org.cdk8s.jenkins.JenkinsProps.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<JenkinsProps>
- Enclosing interface:
- JenkinsProps
@Stability(Stable) public static final class JenkinsProps.Builder extends Object implements software.amazon.jsii.Builder<JenkinsProps>
A builder forJenkinsProps
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JenkinsProps.BuilderbasePlugins(List<? extends Plugin> basePlugins)Sets the value ofJenkinsProps.getBasePlugins()JenkinsPropsbuild()Builds the configured instance.JenkinsProps.BuilderdisableCsrfProtection(Boolean disableCsrfProtection)Sets the value ofJenkinsProps.getDisableCsrfProtection()JenkinsProps.Buildermetadata(org.cdk8s.ApiObjectMetadata metadata)Sets the value ofJenkinsProps.getMetadata()JenkinsProps.Builderplugins(List<? extends Plugin> plugins)Sets the value ofJenkinsProps.getPlugins()JenkinsProps.BuilderseedJobs(List<? extends SeedJob> seedJobs)Sets the value ofJenkinsProps.getSeedJobs()
-
-
-
Method Detail
-
basePlugins
@Stability(Stable) public JenkinsProps.Builder basePlugins(List<? extends Plugin> basePlugins)
Sets the value ofJenkinsProps.getBasePlugins()- Parameters:
basePlugins- List of plugins required by Jenkins operator.- Returns:
this
-
disableCsrfProtection
@Stability(Stable) public JenkinsProps.Builder disableCsrfProtection(Boolean disableCsrfProtection)
Sets the value ofJenkinsProps.getDisableCsrfProtection()- Parameters:
disableCsrfProtection- Toggle for CSRF Protection on Jenkins resource.- Returns:
this
-
metadata
@Stability(Stable) public JenkinsProps.Builder metadata(org.cdk8s.ApiObjectMetadata metadata)
Sets the value ofJenkinsProps.getMetadata()- Parameters:
metadata- Metadata associated with Jenkins resource.- Returns:
this
-
plugins
@Stability(Stable) public JenkinsProps.Builder plugins(List<? extends Plugin> plugins)
Sets the value ofJenkinsProps.getPlugins()- Parameters:
plugins- List of custom plugins applied to Jenkins resource.- Returns:
this
-
seedJobs
@Stability(Stable) public JenkinsProps.Builder seedJobs(List<? extends SeedJob> seedJobs)
Sets the value ofJenkinsProps.getSeedJobs()- Parameters:
seedJobs- List of seed job configuration for Jenkins resource. For more information about seed jobs, please take a look at { @link https://github.com/jenkinsci/job-dsl-plugin/wiki/Tutorial---Using-the-Jenkins-Job-DSL Jenkins Seed Jobs Documentation }.- Returns:
this
-
build
@Stability(Stable) public JenkinsProps build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<JenkinsProps>- Returns:
- a new instance of
JenkinsProps - Throws:
NullPointerException- if any required attribute was not provided
-
-