Interface Code.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<Code.Builder,,Code> SdkBuilder<Code.Builder,,Code> SdkPojo
- Enclosing class:
Code
-
Method Summary
Modifier and TypeMethodDescriptiondefault Code.Builderdestination(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.Buildersource(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
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods 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.Builderavoiding the need to create one manually viaCodeSource.builder().When the
Consumercompletes,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.Builderavoiding the need to create one manually viaCodeDestination.builder().When the
Consumercompletes,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:
-