Interface CreateCodeSecurityScanConfigurationRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<CreateCodeSecurityScanConfigurationRequest.Builder,
,CreateCodeSecurityScanConfigurationRequest> Inspector2Request.Builder
,SdkBuilder<CreateCodeSecurityScanConfigurationRequest.Builder,
,CreateCodeSecurityScanConfigurationRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
CreateCodeSecurityScanConfigurationRequest
-
Method Summary
Modifier and TypeMethodDescriptionconfiguration
(Consumer<CodeSecurityScanConfiguration.Builder> configuration) The configuration settings for the code security scan.configuration
(CodeSecurityScanConfiguration configuration) The configuration settings for the code security scan.The security level for the scan configuration.level
(ConfigurationLevel level) The security level for the scan configuration.The name of the scan configuration.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.scopeSettings
(Consumer<ScopeSettings.Builder> scopeSettings) The scope settings that define which repositories will be scanned.scopeSettings
(ScopeSettings scopeSettings) The scope settings that define which repositories will be scanned.The tags to apply to the scan configuration.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.inspector2.model.Inspector2Request.Builder
build
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
-
configuration
CreateCodeSecurityScanConfigurationRequest.Builder configuration(CodeSecurityScanConfiguration configuration) The configuration settings for the code security scan.
- Parameters:
configuration
- The configuration settings for the code security scan.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
configuration
default CreateCodeSecurityScanConfigurationRequest.Builder configuration(Consumer<CodeSecurityScanConfiguration.Builder> configuration) The configuration settings for the code security scan.
This is a convenience method that creates an instance of theCodeSecurityScanConfiguration.Builder
avoiding the need to create one manually viaCodeSecurityScanConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toconfiguration(CodeSecurityScanConfiguration)
.- Parameters:
configuration
- a consumer that will call methods onCodeSecurityScanConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
level
The security level for the scan configuration.
- Parameters:
level
- The security level for the scan configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
level
The security level for the scan configuration.
- Parameters:
level
- The security level for the scan configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
name
The name of the scan configuration.
- Parameters:
name
- The name of the scan configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
scopeSettings
The scope settings that define which repositories will be scanned. Include this parameter to create a default scan configuration. Otherwise Amazon Inspector creates a general scan configuration.
A default scan configuration automatically applies to all existing and future projects imported into Amazon Inspector. Use the
BatchAssociateCodeSecurityScanConfiguration
operation to associate a general scan configuration with projects.- Parameters:
scopeSettings
- The scope settings that define which repositories will be scanned. Include this parameter to create a default scan configuration. Otherwise Amazon Inspector creates a general scan configuration.A default scan configuration automatically applies to all existing and future projects imported into Amazon Inspector. Use the
BatchAssociateCodeSecurityScanConfiguration
operation to associate a general scan configuration with projects.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
scopeSettings
default CreateCodeSecurityScanConfigurationRequest.Builder scopeSettings(Consumer<ScopeSettings.Builder> scopeSettings) The scope settings that define which repositories will be scanned. Include this parameter to create a default scan configuration. Otherwise Amazon Inspector creates a general scan configuration.
A default scan configuration automatically applies to all existing and future projects imported into Amazon Inspector. Use the
This is a convenience method that creates an instance of theBatchAssociateCodeSecurityScanConfiguration
operation to associate a general scan configuration with projects.ScopeSettings.Builder
avoiding the need to create one manually viaScopeSettings.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toscopeSettings(ScopeSettings)
.- Parameters:
scopeSettings
- a consumer that will call methods onScopeSettings.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
tags
The tags to apply to the scan configuration.
- Parameters:
tags
- The tags to apply to the scan configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
CreateCodeSecurityScanConfigurationRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateCodeSecurityScanConfigurationRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-