Interface CodeRepositoryMetadata.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<CodeRepositoryMetadata.Builder,
,CodeRepositoryMetadata> SdkBuilder<CodeRepositoryMetadata.Builder,
,CodeRepositoryMetadata> SdkPojo
- Enclosing class:
CodeRepositoryMetadata
-
Method Summary
Modifier and TypeMethodDescriptionintegrationArn
(String integrationArn) The Amazon Resource Name (ARN) of the code security integration associated with the repository.lastScannedCommitId
(String lastScannedCommitId) The ID of the last commit that was scanned in the repository.default CodeRepositoryMetadata.Builder
onDemandScan
(Consumer<CodeRepositoryOnDemandScan.Builder> onDemandScan) Information about on-demand scans performed on the repository.onDemandScan
(CodeRepositoryOnDemandScan onDemandScan) Information about on-demand scans performed on the repository.projectName
(String projectName) The name of the project in the code repository.providerType
(String providerType) The type of repository provider (such as GitHub, GitLab, etc.).providerTypeVisibility
(String providerTypeVisibility) The visibility setting of the repository (public or private).default CodeRepositoryMetadata.Builder
scanConfiguration
(Consumer<ProjectCodeSecurityScanConfiguration.Builder> scanConfiguration) The scan configuration settings applied to the code repository.scanConfiguration
(ProjectCodeSecurityScanConfiguration scanConfiguration) The scan configuration settings applied to the code repository.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, sdkFieldNameToField, sdkFields
-
Method Details
-
integrationArn
The Amazon Resource Name (ARN) of the code security integration associated with the repository.
- Parameters:
integrationArn
- The Amazon Resource Name (ARN) of the code security integration associated with the repository.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lastScannedCommitId
The ID of the last commit that was scanned in the repository.
- Parameters:
lastScannedCommitId
- The ID of the last commit that was scanned in the repository.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
onDemandScan
Information about on-demand scans performed on the repository.
- Parameters:
onDemandScan
- Information about on-demand scans performed on the repository.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
onDemandScan
default CodeRepositoryMetadata.Builder onDemandScan(Consumer<CodeRepositoryOnDemandScan.Builder> onDemandScan) Information about on-demand scans performed on the repository.
This is a convenience method that creates an instance of theCodeRepositoryOnDemandScan.Builder
avoiding the need to create one manually viaCodeRepositoryOnDemandScan.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toonDemandScan(CodeRepositoryOnDemandScan)
.- Parameters:
onDemandScan
- a consumer that will call methods onCodeRepositoryOnDemandScan.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
projectName
The name of the project in the code repository.
- Parameters:
projectName
- The name of the project in the code repository.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
providerType
The type of repository provider (such as GitHub, GitLab, etc.).
- Parameters:
providerType
- The type of repository provider (such as GitHub, GitLab, etc.).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
providerTypeVisibility
The visibility setting of the repository (public or private).
- Parameters:
providerTypeVisibility
- The visibility setting of the repository (public or private).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
scanConfiguration
CodeRepositoryMetadata.Builder scanConfiguration(ProjectCodeSecurityScanConfiguration scanConfiguration) The scan configuration settings applied to the code repository.
- Parameters:
scanConfiguration
- The scan configuration settings applied to the code repository.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
scanConfiguration
default CodeRepositoryMetadata.Builder scanConfiguration(Consumer<ProjectCodeSecurityScanConfiguration.Builder> scanConfiguration) The scan configuration settings applied to the code repository.
This is a convenience method that creates an instance of theProjectCodeSecurityScanConfiguration.Builder
avoiding the need to create one manually viaProjectCodeSecurityScanConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toscanConfiguration(ProjectCodeSecurityScanConfiguration)
.- Parameters:
scanConfiguration
- a consumer that will call methods onProjectCodeSecurityScanConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-