Class CfnGitHubRepositoryMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.codestar.CfnGitHubRepositoryMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnGitHubRepositoryMixinProps>
- Enclosing interface:
CfnGitHubRepositoryMixinProps
@Stability(Stable)
public static final class CfnGitHubRepositoryMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnGitHubRepositoryMixinProps>
A builder for
CfnGitHubRepositoryMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnGitHubRepositoryMixinProps.getCode()code(IResolvable code) Sets the value ofCfnGitHubRepositoryMixinProps.getCode()connectionArn(String connectionArn) Sets the value ofCfnGitHubRepositoryMixinProps.getConnectionArn()enableIssues(Boolean enableIssues) Sets the value ofCfnGitHubRepositoryMixinProps.getEnableIssues()enableIssues(IResolvable enableIssues) Sets the value ofCfnGitHubRepositoryMixinProps.getEnableIssues()Sets the value ofCfnGitHubRepositoryMixinProps.getIsPrivate()isPrivate(IResolvable isPrivate) Sets the value ofCfnGitHubRepositoryMixinProps.getIsPrivate()repositoryAccessToken(String repositoryAccessToken) Sets the value ofCfnGitHubRepositoryMixinProps.getRepositoryAccessToken()repositoryDescription(String repositoryDescription) Sets the value ofCfnGitHubRepositoryMixinProps.getRepositoryDescription()repositoryName(String repositoryName) Sets the value ofCfnGitHubRepositoryMixinProps.getRepositoryName()repositoryOwner(String repositoryOwner) Sets the value ofCfnGitHubRepositoryMixinProps.getRepositoryOwner()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
code
Sets the value ofCfnGitHubRepositoryMixinProps.getCode()- Parameters:
code- Information about code to be committed to a repository after it is created in an CloudFormation stack.- Returns:
this
-
code
@Stability(Stable) public CfnGitHubRepositoryMixinProps.Builder code(CfnGitHubRepositoryPropsMixin.CodeProperty code) Sets the value ofCfnGitHubRepositoryMixinProps.getCode()- Parameters:
code- Information about code to be committed to a repository after it is created in an CloudFormation stack.- Returns:
this
-
connectionArn
Sets the value ofCfnGitHubRepositoryMixinProps.getConnectionArn()- Parameters:
connectionArn- the value to be set.- Returns:
this
-
enableIssues
Sets the value ofCfnGitHubRepositoryMixinProps.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
@Stability(Stable) public CfnGitHubRepositoryMixinProps.Builder enableIssues(IResolvable enableIssues) Sets the value ofCfnGitHubRepositoryMixinProps.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 ofCfnGitHubRepositoryMixinProps.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 ofCfnGitHubRepositoryMixinProps.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 CfnGitHubRepositoryMixinProps.Builder repositoryAccessToken(String repositoryAccessToken) Sets the value ofCfnGitHubRepositoryMixinProps.getRepositoryAccessToken()- Parameters:
repositoryAccessToken- The GitHub user's personal access token for the GitHub repository.- Returns:
this
-
repositoryDescription
@Stability(Stable) public CfnGitHubRepositoryMixinProps.Builder repositoryDescription(String repositoryDescription) Sets the value ofCfnGitHubRepositoryMixinProps.getRepositoryDescription()- Parameters:
repositoryDescription- A comment or description about the new repository. This description is displayed in GitHub after the repository is created.- Returns:
this
-
repositoryName
@Stability(Stable) public CfnGitHubRepositoryMixinProps.Builder repositoryName(String repositoryName) Sets the value ofCfnGitHubRepositoryMixinProps.getRepositoryName()- Parameters:
repositoryName- The name of the repository you want to create in GitHub with CloudFormation stack creation.- Returns:
this
-
repositoryOwner
@Stability(Stable) public CfnGitHubRepositoryMixinProps.Builder repositoryOwner(String repositoryOwner) Sets the value ofCfnGitHubRepositoryMixinProps.getRepositoryOwner()- Parameters:
repositoryOwner- The GitHub user name for the owner of the GitHub repository to be created. If this repository should be owned by a GitHub organization, provide its name.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnGitHubRepositoryMixinProps>- Returns:
- a new instance of
CfnGitHubRepositoryMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-