Class SourceCodeProviderConfig.Builder
java.lang.Object
software.amazon.awscdk.services.amplify.alpha.SourceCodeProviderConfig.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<SourceCodeProviderConfig>
- Enclosing interface:
SourceCodeProviderConfig
@Stability(Experimental)
public static final class SourceCodeProviderConfig.Builder
extends Object
implements software.amazon.jsii.Builder<SourceCodeProviderConfig>
A builder for
SourceCodeProviderConfig-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccessToken(SecretValue accessToken) Sets the value ofSourceCodeProviderConfig.getAccessToken()build()Builds the configured instance.oauthToken(SecretValue oauthToken) Sets the value ofSourceCodeProviderConfig.getOauthToken()repository(String repository) Sets the value ofSourceCodeProviderConfig.getRepository()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
repository
Sets the value ofSourceCodeProviderConfig.getRepository()- Parameters:
repository- The repository for the application. Must use theHTTPSprotocol. This parameter is required. For example,https://github.com/aws/aws-cdk.- Returns:
this
-
accessToken
@Stability(Experimental) public SourceCodeProviderConfig.Builder accessToken(SecretValue accessToken) Sets the value ofSourceCodeProviderConfig.getAccessToken()- Parameters:
accessToken- Personal Access token for 3rd party source control system for an Amplify App, used to create webhook and read-only deploy key. Token is not stored.Either
accessTokenoroauthTokenmust be specified ifrepositoryis sepcified.- Returns:
this
-
oauthToken
Sets the value ofSourceCodeProviderConfig.getOauthToken()- Parameters:
oauthToken- OAuth token for 3rd party source control system for an Amplify App, used to create webhook and read-only deploy key. OAuth token is not stored.Either
accessTokenoroauthTokenmust be specified ifrepositoryis specified.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<SourceCodeProviderConfig>- Returns:
- a new instance of
SourceCodeProviderConfig - Throws:
NullPointerException- if any required attribute was not provided
-