Class JenkinsProviderAttributes.Builder
java.lang.Object
software.amazon.awscdk.services.codepipeline.actions.JenkinsProviderAttributes.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<JenkinsProviderAttributes>
- Enclosing interface:
- JenkinsProviderAttributes
@Stability(Stable)
public static final class JenkinsProviderAttributes.Builder
extends Object
implements software.amazon.jsii.Builder<JenkinsProviderAttributes>
A builder for
JenkinsProviderAttributes
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.providerName
(String providerName) Sets the value ofJenkinsProviderAttributes.getProviderName()
Sets the value ofJenkinsProviderAttributes.getServerUrl()
Sets the value ofJenkinsProviderAttributes.getVersion()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
providerName
Sets the value ofJenkinsProviderAttributes.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 ofJenkinsProviderAttributes.getServerUrl()
- Parameters:
serverUrl
- The base URL of your Jenkins server. This parameter is required.- Returns:
this
-
version
Sets the value ofJenkinsProviderAttributes.getVersion()
- Parameters:
version
- The version of your provider.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<JenkinsProviderAttributes>
- Returns:
- a new instance of
JenkinsProviderAttributes
- Throws:
NullPointerException
- if any required attribute was not provided
-