Class GitHubSourceCodeProvider.Builder
java.lang.Object
software.amazon.awscdk.services.amplify.alpha.GitHubSourceCodeProvider.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<GitHubSourceCodeProvider>
- Enclosing class:
GitHubSourceCodeProvider
@Stability(Experimental)
public static final class GitHubSourceCodeProvider.Builder
extends Object
implements software.amazon.jsii.Builder<GitHubSourceCodeProvider>
(experimental) A fluent builder for
GitHubSourceCodeProvider
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
create()
oauthToken
(SecretValue oauthToken) (experimental) A personal access token with therepo
scope.(experimental) The user or organization owning the repository.repository
(String repository) (experimental) The name of the repository.
-
Method Details
-
create
- Returns:
- a new instance of
GitHubSourceCodeProvider.Builder
.
-
oauthToken
(experimental) A personal access token with therepo
scope.- Parameters:
oauthToken
- A personal access token with therepo
scope. This parameter is required.- Returns:
this
-
owner
(experimental) The user or organization owning the repository.- Parameters:
owner
- The user or organization owning the repository. This parameter is required.- Returns:
this
-
repository
(experimental) The name of the repository.- Parameters:
repository
- The name of the repository. This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<GitHubSourceCodeProvider>
- Returns:
- a newly built instance of
GitHubSourceCodeProvider
.
-