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