Class Repository.Builder

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

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

    • create

      @Stability(Stable) public static Repository.Builder create(software.constructs.Construct scope, String id)
      Parameters:
      scope - This parameter is required.
      id - This parameter is required.
      Returns:
      a new instance of Repository.Builder.
    • repositoryName

      @Stability(Stable) public Repository.Builder repositoryName(String repositoryName)
      Name of the repository.

      This property is required for all CodeCommit repositories.

      Parameters:
      repositoryName - Name of the repository. This parameter is required.
      Returns:
      this
    • code

      @Stability(Stable) public Repository.Builder code(Code code)
      The contents with which to initialize the repository after it has been created.

      Default: - No initialization (create empty repo)

      Parameters:
      code - The contents with which to initialize the repository after it has been created. This parameter is required.
      Returns:
      this
    • description

      @Stability(Stable) public Repository.Builder description(String description)
      A description of the repository.

      Use the description to identify the purpose of the repository.

      Default: - No description.

      Parameters:
      description - A description of the repository. This parameter is required.
      Returns:
      this
    • build

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