Class GitHubEnterpriseSourceCredentialsProps.Builder
java.lang.Object
software.amazon.awscdk.services.codebuild.GitHubEnterpriseSourceCredentialsProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<GitHubEnterpriseSourceCredentialsProps>
- Enclosing interface:
GitHubEnterpriseSourceCredentialsProps
@Stability(Stable)
public static final class GitHubEnterpriseSourceCredentialsProps.Builder
extends Object
implements software.amazon.jsii.Builder<GitHubEnterpriseSourceCredentialsProps>
A builder for
GitHubEnterpriseSourceCredentialsProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaccessToken
(SecretValue accessToken) Sets the value ofGitHubEnterpriseSourceCredentialsProps.getAccessToken()
build()
Builds the configured instance.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
accessToken
@Stability(Stable) public GitHubEnterpriseSourceCredentialsProps.Builder accessToken(SecretValue accessToken) Sets the value ofGitHubEnterpriseSourceCredentialsProps.getAccessToken()
- Parameters:
accessToken
- The personal access token to use when contacting the instance of the GitHub Enterprise API. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<GitHubEnterpriseSourceCredentialsProps>
- Returns:
- a new instance of
GitHubEnterpriseSourceCredentialsProps
- Throws:
NullPointerException
- if any required attribute was not provided
-