Class CfnGitHubRepositoryProps.Builder
java.lang.Object
software.amazon.awscdk.services.codestar.CfnGitHubRepositoryProps.Builder
- All Implemented Interfaces:
- software.amazon.jsii.Builder<CfnGitHubRepositoryProps>
- Enclosing interface:
- CfnGitHubRepositoryProps
@Stability(Stable)
public static final class CfnGitHubRepositoryProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnGitHubRepositoryProps>
A builder for 
CfnGitHubRepositoryProps- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbuild()Builds the configured instance.code(IResolvable code) Sets the value ofCfnGitHubRepositoryProps.getCode()Sets the value ofCfnGitHubRepositoryProps.getCode()connectionArn(String connectionArn) Sets the value ofCfnGitHubRepositoryProps.getConnectionArn()enableIssues(Boolean enableIssues) Sets the value ofCfnGitHubRepositoryProps.getEnableIssues()enableIssues(IResolvable enableIssues) Sets the value ofCfnGitHubRepositoryProps.getEnableIssues()Sets the value ofCfnGitHubRepositoryProps.getIsPrivate()isPrivate(IResolvable isPrivate) Sets the value ofCfnGitHubRepositoryProps.getIsPrivate()repositoryAccessToken(String repositoryAccessToken) Sets the value ofCfnGitHubRepositoryProps.getRepositoryAccessToken()repositoryDescription(String repositoryDescription) Sets the value ofCfnGitHubRepositoryProps.getRepositoryDescription()repositoryName(String repositoryName) Sets the value ofCfnGitHubRepositoryProps.getRepositoryName()repositoryOwner(String repositoryOwner) Sets the value ofCfnGitHubRepositoryProps.getRepositoryOwner()
- 
Constructor Details- 
Builderpublic Builder()
 
- 
- 
Method Details- 
repositoryNameSets the value ofCfnGitHubRepositoryProps.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
 
- 
repositoryOwnerSets the value ofCfnGitHubRepositoryProps.getRepositoryOwner()- Parameters:
- repositoryOwner- 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
 
- 
code@Stability(Stable) public CfnGitHubRepositoryProps.Builder code(CfnGitHubRepository.CodeProperty code) Sets the value ofCfnGitHubRepositoryProps.getCode()- Parameters:
- code- Information about code to be committed to a repository after it is created in an AWS CloudFormation stack.
- Returns:
- this
 
- 
codeSets the value ofCfnGitHubRepositoryProps.getCode()- Parameters:
- code- Information about code to be committed to a repository after it is created in an AWS CloudFormation stack.
- Returns:
- this
 
- 
connectionArnSets the value ofCfnGitHubRepositoryProps.getConnectionArn()- Parameters:
- connectionArn-- AWS::CodeStar::GitHubRepository.ConnectionArn.
- Returns:
- this
 
- 
enableIssuesSets the value ofCfnGitHubRepositoryProps.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
 
- 
enableIssuesSets the value ofCfnGitHubRepositoryProps.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
 
- 
isPrivateSets the value ofCfnGitHubRepositoryProps.getIsPrivate()- Parameters:
- isPrivate- Indicates whether the GitHub repository is a private repository. If so, you choose who can see and commit to this repository.
- Returns:
- this
 
- 
isPrivateSets the value ofCfnGitHubRepositoryProps.getIsPrivate()- Parameters:
- isPrivate- Indicates whether the GitHub repository is a private repository. If so, you choose who can see and commit to this repository.
- Returns:
- this
 
- 
repositoryAccessToken@Stability(Stable) public CfnGitHubRepositoryProps.Builder repositoryAccessToken(String repositoryAccessToken) Sets the value ofCfnGitHubRepositoryProps.getRepositoryAccessToken()- Parameters:
- repositoryAccessToken- The GitHub user's personal access token for the GitHub repository.
- Returns:
- this
 
- 
repositoryDescription@Stability(Stable) public CfnGitHubRepositoryProps.Builder repositoryDescription(String repositoryDescription) Sets the value ofCfnGitHubRepositoryProps.getRepositoryDescription()- Parameters:
- repositoryDescription- A comment or description about the new repository. This description is displayed in GitHub after the repository is created.
- Returns:
- this
 
- 
buildBuilds the configured instance.- Specified by:
- buildin interface- software.amazon.jsii.Builder<CfnGitHubRepositoryProps>
- Returns:
- a new instance of CfnGitHubRepositoryProps
- Throws:
- NullPointerException- if any required attribute was not provided
 
 
-