Class GitHubEnterpriseSourceCredentials.Builder
java.lang.Object
software.amazon.awscdk.services.codebuild.GitHubEnterpriseSourceCredentials.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<GitHubEnterpriseSourceCredentials>
- Enclosing class:
GitHubEnterpriseSourceCredentials
@Stability(Stable)
public static final class GitHubEnterpriseSourceCredentials.Builder
extends Object
implements software.amazon.jsii.Builder<GitHubEnterpriseSourceCredentials>
A fluent builder for
GitHubEnterpriseSourceCredentials
.-
Method Summary
Modifier and TypeMethodDescriptionaccessToken
(SecretValue accessToken) The personal access token to use when contacting the instance of the GitHub Enterprise API.build()
-
Method Details
-
create
@Stability(Stable) public static GitHubEnterpriseSourceCredentials.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- This parameter is required.id
- This parameter is required.- Returns:
- a new instance of
GitHubEnterpriseSourceCredentials.Builder
.
-
accessToken
@Stability(Stable) public GitHubEnterpriseSourceCredentials.Builder accessToken(SecretValue accessToken) The personal access token to use when contacting the instance of the GitHub Enterprise API.- Parameters:
accessToken
- The personal access token to use when contacting the instance of the GitHub Enterprise API. This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<GitHubEnterpriseSourceCredentials>
- Returns:
- a newly built instance of
GitHubEnterpriseSourceCredentials
.
-