Class GitHubRepositoryProps.Builder
java.lang.Object
software.amazon.awscdk.services.codestar.GitHubRepositoryProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<GitHubRepositoryProps>
- Enclosing interface:
GitHubRepositoryProps
@Stability(Experimental)
public static final class GitHubRepositoryProps.Builder
extends Object
implements software.amazon.jsii.Builder<GitHubRepositoryProps>
A builder for
GitHubRepositoryProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaccessToken
(SecretValue accessToken) Sets the value ofGitHubRepositoryProps.getAccessToken()
build()
Builds the configured instance.contentsBucket
(IBucket contentsBucket) Sets the value ofGitHubRepositoryProps.getContentsBucket()
contentsKey
(String contentsKey) Sets the value ofGitHubRepositoryProps.getContentsKey()
contentsS3Version
(String contentsS3Version) Sets the value ofGitHubRepositoryProps.getContentsS3Version()
description
(String description) Sets the value ofGitHubRepositoryProps.getDescription()
enableIssues
(Boolean enableIssues) Sets the value ofGitHubRepositoryProps.getEnableIssues()
Sets the value ofGitHubRepositoryProps.getOwner()
repositoryName
(String repositoryName) Sets the value ofGitHubRepositoryProps.getRepositoryName()
visibility
(RepositoryVisibility visibility) Sets the value ofGitHubRepositoryProps.getVisibility()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
accessToken
Sets the value ofGitHubRepositoryProps.getAccessToken()
- Parameters:
accessToken
- The GitHub user's personal access token for the GitHub repository. This parameter is required.- Returns:
this
-
contentsBucket
@Stability(Experimental) public GitHubRepositoryProps.Builder contentsBucket(IBucket contentsBucket) Sets the value ofGitHubRepositoryProps.getContentsBucket()
- Parameters:
contentsBucket
- The name of the Amazon S3 bucket that contains the ZIP file with the content to be committed to the new repository. This parameter is required.- Returns:
this
-
contentsKey
Sets the value ofGitHubRepositoryProps.getContentsKey()
- Parameters:
contentsKey
- The S3 object key or file name for the ZIP file. This parameter is required.- Returns:
this
-
owner
Sets the value ofGitHubRepositoryProps.getOwner()
- Parameters:
owner
- The GitHub user name for the owner of the GitHub repository to be created. This parameter is required. If this repository should be owned by a GitHub organization, provide its name- Returns:
this
-
repositoryName
Sets the value ofGitHubRepositoryProps.getRepositoryName()
- Parameters:
repositoryName
- The name of the repository you want to create in GitHub with AWS CloudFormation stack creation. This parameter is required.- Returns:
this
-
contentsS3Version
@Stability(Experimental) public GitHubRepositoryProps.Builder contentsS3Version(String contentsS3Version) Sets the value ofGitHubRepositoryProps.getContentsS3Version()
- Parameters:
contentsS3Version
- The object version of the ZIP file, if versioning is enabled for the Amazon S3 bucket.- Returns:
this
-
description
Sets the value ofGitHubRepositoryProps.getDescription()
- Parameters:
description
- A comment or description about the new repository. This description is displayed in GitHub after the repository is created.- Returns:
this
-
enableIssues
Sets the value ofGitHubRepositoryProps.getEnableIssues()
- Parameters:
enableIssues
- Indicates whether to enable issues for the GitHub repository. You can use GitHub issues to track information and bugs for your repository.- Returns:
this
-
visibility
@Stability(Experimental) public GitHubRepositoryProps.Builder visibility(RepositoryVisibility visibility) Sets the value ofGitHubRepositoryProps.getVisibility()
- Parameters:
visibility
- Indicates whether the GitHub repository is a private repository. If so, you choose who can see and commit to this repository.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<GitHubRepositoryProps>
- Returns:
- a new instance of
GitHubRepositoryProps
- Throws:
NullPointerException
- if any required attribute was not provided
-