Interface CodeRepository.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<CodeRepository.Builder,
,CodeRepository> SdkBuilder<CodeRepository.Builder,
,CodeRepository> SdkPojo
- Enclosing class:
CodeRepository
-
Method Summary
Modifier and TypeMethodDescriptiondefault CodeRepository.Builder
codeConfiguration
(Consumer<CodeConfiguration.Builder> codeConfiguration) Configuration for building and running the service from a source code repository.codeConfiguration
(CodeConfiguration codeConfiguration) Configuration for building and running the service from a source code repository.repositoryUrl
(String repositoryUrl) The location of the repository that contains the source code.default CodeRepository.Builder
sourceCodeVersion
(Consumer<SourceCodeVersion.Builder> sourceCodeVersion) The version that should be used within the source code repository.sourceCodeVersion
(SourceCodeVersion sourceCodeVersion) The version that should be used within the source code repository.sourceDirectory
(String sourceDirectory) The path of the directory that stores source code and configuration files.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
-
repositoryUrl
The location of the repository that contains the source code.
- Parameters:
repositoryUrl
- The location of the repository that contains the source code.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sourceCodeVersion
The version that should be used within the source code repository.
- Parameters:
sourceCodeVersion
- The version that should be used within the source code repository.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sourceCodeVersion
default CodeRepository.Builder sourceCodeVersion(Consumer<SourceCodeVersion.Builder> sourceCodeVersion) The version that should be used within the source code repository.
This is a convenience method that creates an instance of theSourceCodeVersion.Builder
avoiding the need to create one manually viaSourceCodeVersion.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosourceCodeVersion(SourceCodeVersion)
.- Parameters:
sourceCodeVersion
- a consumer that will call methods onSourceCodeVersion.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
codeConfiguration
Configuration for building and running the service from a source code repository.
CodeConfiguration
is required only forCreateService
request.- Parameters:
codeConfiguration
- Configuration for building and running the service from a source code repository.CodeConfiguration
is required only forCreateService
request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
codeConfiguration
default CodeRepository.Builder codeConfiguration(Consumer<CodeConfiguration.Builder> codeConfiguration) Configuration for building and running the service from a source code repository.
CodeConfiguration
is required only forCreateService
request.CodeConfiguration.Builder
avoiding the need to create one manually viaCodeConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocodeConfiguration(CodeConfiguration)
.- Parameters:
codeConfiguration
- a consumer that will call methods onCodeConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
sourceDirectory
The path of the directory that stores source code and configuration files. The build and start commands also execute from here. The path is absolute from root and, if not specified, defaults to the repository root.
- Parameters:
sourceDirectory
- The path of the directory that stores source code and configuration files. The build and start commands also execute from here. The path is absolute from root and, if not specified, defaults to the repository root.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-