Class CfnGitHubRepository.Builder

java.lang.Object
software.amazon.awscdk.services.codestar.CfnGitHubRepository.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnGitHubRepository>
Enclosing class:
CfnGitHubRepository

@Stability(Stable) public static final class CfnGitHubRepository.Builder extends Object implements software.amazon.jsii.Builder<CfnGitHubRepository>
A fluent builder for CfnGitHubRepository.
  • Method Details

    • create

      @Stability(Stable) public static CfnGitHubRepository.Builder create(Construct scope, String id)
      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      Returns:
      a new instance of CfnGitHubRepository.Builder.
    • repositoryName

      @Stability(Stable) public CfnGitHubRepository.Builder repositoryName(String repositoryName)
      The name of the repository you want to create in GitHub with AWS CloudFormation stack creation.

      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

      @Stability(Stable) public CfnGitHubRepository.Builder repositoryOwner(String 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.

      Parameters:
      repositoryOwner - The GitHub user name for the owner of the GitHub repository to be created. This parameter is required.
      Returns:
      this
    • code

      @Stability(Stable) public CfnGitHubRepository.Builder code(CfnGitHubRepository.CodeProperty code)
      Information about code to be committed to a repository after it is created in an AWS CloudFormation stack.

      Parameters:
      code - Information about code to be committed to a repository after it is created in an AWS CloudFormation stack. This parameter is required.
      Returns:
      this
    • code

      @Stability(Stable) public CfnGitHubRepository.Builder code(IResolvable code)
      Information about code to be committed to a repository after it is created in an AWS CloudFormation stack.

      Parameters:
      code - Information about code to be committed to a repository after it is created in an AWS CloudFormation stack. This parameter is required.
      Returns:
      this
    • connectionArn

      @Stability(Stable) public CfnGitHubRepository.Builder connectionArn(String connectionArn)
      AWS::CodeStar::GitHubRepository.ConnectionArn.

      Parameters:
      connectionArn - AWS::CodeStar::GitHubRepository.ConnectionArn. This parameter is required.
      Returns:
      this
    • enableIssues

      @Stability(Stable) public CfnGitHubRepository.Builder enableIssues(Boolean enableIssues)
      Indicates whether to enable issues for the GitHub repository.

      You can use GitHub issues to track information and bugs for your repository.

      Parameters:
      enableIssues - Indicates whether to enable issues for the GitHub repository. This parameter is required.
      Returns:
      this
    • enableIssues

      @Stability(Stable) public CfnGitHubRepository.Builder enableIssues(IResolvable enableIssues)
      Indicates whether to enable issues for the GitHub repository.

      You can use GitHub issues to track information and bugs for your repository.

      Parameters:
      enableIssues - Indicates whether to enable issues for the GitHub repository. This parameter is required.
      Returns:
      this
    • isPrivate

      @Stability(Stable) public CfnGitHubRepository.Builder isPrivate(Boolean isPrivate)
      Indicates whether the GitHub repository is a private repository.

      If so, you choose who can see and commit to this repository.

      Parameters:
      isPrivate - Indicates whether the GitHub repository is a private repository. This parameter is required.
      Returns:
      this
    • isPrivate

      @Stability(Stable) public CfnGitHubRepository.Builder isPrivate(IResolvable isPrivate)
      Indicates whether the GitHub repository is a private repository.

      If so, you choose who can see and commit to this repository.

      Parameters:
      isPrivate - Indicates whether the GitHub repository is a private repository. This parameter is required.
      Returns:
      this
    • repositoryAccessToken

      @Stability(Stable) public CfnGitHubRepository.Builder repositoryAccessToken(String repositoryAccessToken)
      The GitHub user's personal access token for the GitHub repository.

      Parameters:
      repositoryAccessToken - The GitHub user's personal access token for the GitHub repository. This parameter is required.
      Returns:
      this
    • repositoryDescription

      @Stability(Stable) public CfnGitHubRepository.Builder repositoryDescription(String repositoryDescription)
      A comment or description about the new repository.

      This description is displayed in GitHub after the repository is created.

      Parameters:
      repositoryDescription - A comment or description about the new repository. This parameter is required.
      Returns:
      this
    • build

      @Stability(Stable) public CfnGitHubRepository build()
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnGitHubRepository>
      Returns:
      a newly built instance of CfnGitHubRepository.