public static interface Code.Builder extends SdkPojo, CopyableBuilder<Code.Builder,Code>
Modifier and Type | Method and Description |
---|---|
Code.Builder |
destination(CodeDestination destination)
The repository to be created in AWS CodeStar.
|
default Code.Builder |
destination(Consumer<CodeDestination.Builder> destination)
The repository to be created in AWS CodeStar.
|
Code.Builder |
source(CodeSource source)
The location where the source code files provided with the project request are stored.
|
default Code.Builder |
source(Consumer<CodeSource.Builder> source)
The location where the source code files provided with the project request are stored.
|
copy
applyMutation, build
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.
source
- The location where the source code files provided with the project request are stored. AWS CodeStar
retrieves the files during project creation.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 that creates an instance of theCodeSource.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)
.source
- a consumer that will call methods on CodeSource.Builder
source(CodeSource)
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.
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.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 that creates an instance of theCodeDestination.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)
.destination
- a consumer that will call methods on CodeDestination.Builder
destination(CodeDestination)
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.