Package org.cdk8s.jenkins
Class Plugin.Builder
- java.lang.Object
-
- org.cdk8s.jenkins.Plugin.Builder
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Pluginbuild()Builds the configured instance.Plugin.BuilderdownloadUrl(String downloadUrl)Sets the value ofPlugin.getDownloadUrl()Plugin.Buildername(String name)Sets the value ofPlugin.getName()Plugin.Builderversion(String version)Sets the value ofPlugin.getVersion()
-
-
-
Method Detail
-
name
@Stability(Stable) public Plugin.Builder name(String name)
Sets the value ofPlugin.getName()- Parameters:
name- The name of Jenkins plugin. This parameter is required.- Returns:
this
-
version
@Stability(Stable) public Plugin.Builder version(String version)
Sets the value ofPlugin.getVersion()- Parameters:
version- The version of Jenkins plugin. This parameter is required.- Returns:
this
-
downloadUrl
@Stability(Stable) public Plugin.Builder downloadUrl(String downloadUrl)
Sets the value ofPlugin.getDownloadUrl()- Parameters:
downloadUrl- The url from where plugin has to be downloaded.- Returns:
this
-
build
@Stability(Stable) public Plugin build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<Plugin>- Returns:
- a new instance of
Plugin - Throws:
NullPointerException- if any required attribute was not provided
-
-