Interface Code.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<Code.Builder,
,Code> SdkBuilder<Code.Builder,
,Code> SdkPojo
- Enclosing class:
Code
-
Method Summary
Modifier and TypeMethodDescriptiondefault Code.Builder
destination
(Consumer<CodeDestination.Builder> destination) The repository to be created in AWS CodeStar.destination
(CodeDestination destination) The repository to be created in AWS CodeStar.default Code.Builder
source
(Consumer<CodeSource.Builder> source) The location where the source code files provided with the project request are stored.source
(CodeSource source) The location where the source code files provided with the project request are stored.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
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
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 theCodeSource.Builder
avoiding the need to create one manually viaCodeSource.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosource(CodeSource)
.- Parameters:
source
- a consumer that will call methods onCodeSource.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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
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 theCodeDestination.Builder
avoiding the need to create one manually viaCodeDestination.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed todestination(CodeDestination)
.- Parameters:
destination
- a consumer that will call methods onCodeDestination.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-