Interface CreateScanRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CodeGuruSecurityRequest.Builder,CopyableBuilder<CreateScanRequest.Builder,CreateScanRequest>,SdkBuilder<CreateScanRequest.Builder,CreateScanRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- CreateScanRequest
public static interface CreateScanRequest.Builder extends CodeGuruSecurityRequest.Builder, SdkPojo, CopyableBuilder<CreateScanRequest.Builder,CreateScanRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description CreateScanRequest.BuilderanalysisType(String analysisType)The type of analysis you want CodeGuru Security to perform in the scan, eitherSecurityorAll.CreateScanRequest.BuilderanalysisType(AnalysisType analysisType)The type of analysis you want CodeGuru Security to perform in the scan, eitherSecurityorAll.CreateScanRequest.BuilderclientToken(String clientToken)The idempotency token for the request.CreateScanRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)CreateScanRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)default CreateScanRequest.BuilderresourceId(Consumer<ResourceId.Builder> resourceId)The identifier for an input resource used to create a scan.CreateScanRequest.BuilderresourceId(ResourceId resourceId)The identifier for an input resource used to create a scan.CreateScanRequest.BuilderscanName(String scanName)The unique name that CodeGuru Security uses to track revisions across multiple scans of the same resource.CreateScanRequest.BuilderscanType(String scanType)The type of scan, eitherStandardorExpress.CreateScanRequest.BuilderscanType(ScanType scanType)The type of scan, eitherStandardorExpress.CreateScanRequest.Buildertags(Map<String,String> tags)An array of key-value pairs used to tag a scan.-
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
-
Methods inherited from interface software.amazon.awssdk.services.codegurusecurity.model.CodeGuruSecurityRequest.Builder
build
-
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
-
analysisType
CreateScanRequest.Builder analysisType(String analysisType)
The type of analysis you want CodeGuru Security to perform in the scan, either
SecurityorAll. TheSecuritytype only generates findings related to security. TheAlltype generates both security findings and quality findings. Defaults toSecuritytype if missing.- Parameters:
analysisType- The type of analysis you want CodeGuru Security to perform in the scan, eitherSecurityorAll. TheSecuritytype only generates findings related to security. TheAlltype generates both security findings and quality findings. Defaults toSecuritytype if missing.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
AnalysisType,AnalysisType
-
analysisType
CreateScanRequest.Builder analysisType(AnalysisType analysisType)
The type of analysis you want CodeGuru Security to perform in the scan, either
SecurityorAll. TheSecuritytype only generates findings related to security. TheAlltype generates both security findings and quality findings. Defaults toSecuritytype if missing.- Parameters:
analysisType- The type of analysis you want CodeGuru Security to perform in the scan, eitherSecurityorAll. TheSecuritytype only generates findings related to security. TheAlltype generates both security findings and quality findings. Defaults toSecuritytype if missing.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
AnalysisType,AnalysisType
-
clientToken
CreateScanRequest.Builder clientToken(String clientToken)
The idempotency token for the request. Amazon CodeGuru Security uses this value to prevent the accidental creation of duplicate scans if there are failures and retries.
- Parameters:
clientToken- The idempotency token for the request. Amazon CodeGuru Security uses this value to prevent the accidental creation of duplicate scans if there are failures and retries.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceId
CreateScanRequest.Builder resourceId(ResourceId resourceId)
The identifier for an input resource used to create a scan.
- Parameters:
resourceId- The identifier for an input resource used to create a scan.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceId
default CreateScanRequest.Builder resourceId(Consumer<ResourceId.Builder> resourceId)
The identifier for an input resource used to create a scan.
This is a convenience method that creates an instance of theResourceId.Builderavoiding the need to create one manually viaResourceId.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toresourceId(ResourceId).- Parameters:
resourceId- a consumer that will call methods onResourceId.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
resourceId(ResourceId)
-
scanName
CreateScanRequest.Builder scanName(String scanName)
The unique name that CodeGuru Security uses to track revisions across multiple scans of the same resource. Only allowed for a
STANDARDscan type. If not specified, it will be auto generated.- Parameters:
scanName- The unique name that CodeGuru Security uses to track revisions across multiple scans of the same resource. Only allowed for aSTANDARDscan type. If not specified, it will be auto generated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
scanType
CreateScanRequest.Builder scanType(String scanType)
The type of scan, either
StandardorExpress. Defaults toStandardtype if missing.Expressscans run on limited resources and use a limited set of detectors to analyze your code in near-real time.Standardscans have standard resource limits and use the full set of detectors to analyze your code.- Parameters:
scanType- The type of scan, eitherStandardorExpress. Defaults toStandardtype if missing.Expressscans run on limited resources and use a limited set of detectors to analyze your code in near-real time.Standardscans have standard resource limits and use the full set of detectors to analyze your code.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ScanType,ScanType
-
scanType
CreateScanRequest.Builder scanType(ScanType scanType)
The type of scan, either
StandardorExpress. Defaults toStandardtype if missing.Expressscans run on limited resources and use a limited set of detectors to analyze your code in near-real time.Standardscans have standard resource limits and use the full set of detectors to analyze your code.- Parameters:
scanType- The type of scan, eitherStandardorExpress. Defaults toStandardtype if missing.Expressscans run on limited resources and use a limited set of detectors to analyze your code in near-real time.Standardscans have standard resource limits and use the full set of detectors to analyze your code.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ScanType,ScanType
-
tags
CreateScanRequest.Builder tags(Map<String,String> tags)
An array of key-value pairs used to tag a scan. A tag is a custom attribute label with two parts:
-
A tag key. For example,
CostCenter,Environment, orSecret. Tag keys are case sensitive. -
An optional tag value field. For example,
111122223333,Production, or a team name. Omitting the tag value is the same as using an empty string. Tag values are case sensitive.
- Parameters:
tags- An array of key-value pairs used to tag a scan. A tag is a custom attribute label with two parts:-
A tag key. For example,
CostCenter,Environment, orSecret. Tag keys are case sensitive. -
An optional tag value field. For example,
111122223333,Production, or a team name. Omitting the tag value is the same as using an empty string. Tag values are case sensitive.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
overrideConfiguration
CreateScanRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
CreateScanRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-