Class JenkinsProviderProps.Builder
java.lang.Object
software.amazon.awscdk.services.codepipeline.actions.JenkinsProviderProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<JenkinsProviderProps>
- Enclosing interface:
JenkinsProviderProps
@Stability(Stable)
public static final class JenkinsProviderProps.Builder
extends Object
implements software.amazon.jsii.Builder<JenkinsProviderProps>
A builder for
JenkinsProviderProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofJenkinsProviderProps.getForBuild()
Sets the value ofJenkinsProviderProps.getForTest()
providerName
(String providerName) Sets the value ofJenkinsProviderProps.getProviderName()
Sets the value ofJenkinsProviderProps.getServerUrl()
Sets the value ofJenkinsProviderProps.getVersion()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
providerName
Sets the value ofJenkinsProviderProps.getProviderName()
- Parameters:
providerName
- The name of the Jenkins provider that you set in the AWS CodePipeline plugin configuration of your Jenkins project. This parameter is required.- Returns:
this
-
serverUrl
Sets the value ofJenkinsProviderProps.getServerUrl()
- Parameters:
serverUrl
- The base URL of your Jenkins server. This parameter is required.- Returns:
this
-
forBuild
Sets the value ofJenkinsProviderProps.getForBuild()
- Parameters:
forBuild
- Whether to immediately register a Jenkins Provider for the build category. The Provider will always be registered if you create aJenkinsAction
.- Returns:
this
-
forTest
Sets the value ofJenkinsProviderProps.getForTest()
- Parameters:
forTest
- Whether to immediately register a Jenkins Provider for the test category. The Provider will always be registered if you create aJenkinsTestAction
.- Returns:
this
-
version
Sets the value ofJenkinsProviderProps.getVersion()
- Parameters:
version
- The version of your provider.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<JenkinsProviderProps>
- Returns:
- a new instance of
JenkinsProviderProps
- Throws:
NullPointerException
- if any required attribute was not provided
-