Class GitHubSourceCodeProviderProps.Builder
java.lang.Object
software.amazon.awscdk.services.amplify.alpha.GitHubSourceCodeProviderProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<GitHubSourceCodeProviderProps>
- Enclosing interface:
GitHubSourceCodeProviderProps
@Stability(Experimental)
public static final class GitHubSourceCodeProviderProps.Builder
extends Object
implements software.amazon.jsii.Builder<GitHubSourceCodeProviderProps>
A builder for
GitHubSourceCodeProviderProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.oauthToken
(SecretValue oauthToken) Sets the value ofGitHubSourceCodeProviderProps.getOauthToken()
Sets the value ofGitHubSourceCodeProviderProps.getOwner()
repository
(String repository) Sets the value ofGitHubSourceCodeProviderProps.getRepository()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
oauthToken
@Stability(Experimental) public GitHubSourceCodeProviderProps.Builder oauthToken(SecretValue oauthToken) Sets the value ofGitHubSourceCodeProviderProps.getOauthToken()
- Parameters:
oauthToken
- A personal access token with therepo
scope. This parameter is required.- Returns:
this
-
owner
Sets the value ofGitHubSourceCodeProviderProps.getOwner()
- Parameters:
owner
- The user or organization owning the repository. This parameter is required.- Returns:
this
-
repository
Sets the value ofGitHubSourceCodeProviderProps.getRepository()
- Parameters:
repository
- The name of the repository. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<GitHubSourceCodeProviderProps>
- Returns:
- a new instance of
GitHubSourceCodeProviderProps
- Throws:
NullPointerException
- if any required attribute was not provided
-