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