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 Summary
Constructors -
Method Summary
Modifier 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
-
Builder
public Builder()
-
-
Method Details
-
repositoryName
Sets 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
-
repositoryOwner
Sets 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
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
-
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
-
connectionArn
Sets the value ofCfnGitHubRepositoryProps.getConnectionArn()- Parameters:
connectionArn- the value to be set.- Returns:
this
-
enableIssues
Sets 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
-
enableIssues
Sets 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
-
isPrivate
Sets 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
-
isPrivate
Sets 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
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnGitHubRepositoryProps>- Returns:
- a new instance of
CfnGitHubRepositoryProps - Throws:
NullPointerException- if any required attribute was not provided
-