Interface Code.Builder

All Superinterfaces:
Buildable, CopyableBuilder<Code.Builder,Code>, SdkBuilder<Code.Builder,Code>, SdkPojo
Enclosing class:
Code

public static interface Code.Builder extends SdkPojo, CopyableBuilder<Code.Builder,Code>
  • Method Details

    • source

      Code.Builder source(CodeSource source)

      The location where the source code files provided with the project request are stored. AWS CodeStar retrieves the files during project creation.

      Parameters:
      source - The location where the source code files provided with the project request are stored. AWS CodeStar retrieves the files during project creation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • source

      default Code.Builder source(Consumer<CodeSource.Builder> source)

      The location where the source code files provided with the project request are stored. AWS CodeStar retrieves the files during project creation.

      This is a convenience method that creates an instance of the CodeSource.Builder avoiding the need to create one manually via CodeSource.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to source(CodeSource).

      Parameters:
      source - a consumer that will call methods on CodeSource.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • destination

      Code.Builder destination(CodeDestination destination)

      The repository to be created in AWS CodeStar. Valid values are AWS CodeCommit or GitHub. After AWS CodeStar provisions the new repository, the source code files provided with the project request are placed in the repository.

      Parameters:
      destination - The repository to be created in AWS CodeStar. Valid values are AWS CodeCommit or GitHub. After AWS CodeStar provisions the new repository, the source code files provided with the project request are placed in the repository.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • destination

      default Code.Builder destination(Consumer<CodeDestination.Builder> destination)

      The repository to be created in AWS CodeStar. Valid values are AWS CodeCommit or GitHub. After AWS CodeStar provisions the new repository, the source code files provided with the project request are placed in the repository.

      This is a convenience method that creates an instance of the CodeDestination.Builder avoiding the need to create one manually via CodeDestination.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to destination(CodeDestination).

      Parameters:
      destination - a consumer that will call methods on CodeDestination.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: