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 Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default Code.Builderdestination(Consumer<CodeDestination.Builder> destination)The repository to be created in AWS CodeStar.Code.Builderdestination(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.Code.Buildersource(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 Detail
-
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 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:
source(CodeSource)
-
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 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:
destination(CodeDestination)
-
-