@Generated(value="software.amazon.awssdk:codegen") public final class CreateScanRequest extends CodeGuruSecurityRequest implements ToCopyableBuilder<CreateScanRequest.Builder,CreateScanRequest>
| Modifier and Type | Class and Description |
|---|---|
static interface |
CreateScanRequest.Builder |
| Modifier and Type | Method and Description |
|---|---|
AnalysisType |
analysisType()
The type of analysis you want CodeGuru Security to perform in the scan, either
Security or
All. |
String |
analysisTypeAsString()
The type of analysis you want CodeGuru Security to perform in the scan, either
Security or
All. |
static CreateScanRequest.Builder |
builder() |
String |
clientToken()
The idempotency token for the request.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasTags()
For responses, this returns true if the service returned a value for the Tags property.
|
ResourceId |
resourceId()
The identifier for an input resource used to create a scan.
|
String |
scanName()
The unique name that CodeGuru Security uses to track revisions across multiple scans of the same resource.
|
ScanType |
scanType()
The type of scan, either
Standard or Express. |
String |
scanTypeAsString()
The type of scan, either
Standard or Express. |
List<SdkField<?>> |
sdkFields() |
static Class<? extends CreateScanRequest.Builder> |
serializableBuilderClass() |
Map<String,String> |
tags()
An array of key-value pairs used to tag a scan.
|
CreateScanRequest.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
overrideConfigurationclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final AnalysisType analysisType()
The type of analysis you want CodeGuru Security to perform in the scan, either Security or
All. The Secuirty type only generates findings related to security. The
All type generates both security findings and quality findings. Defaults to Security
type if missing.
If the service returns an enum value that is not available in the current SDK version, analysisType will
return AnalysisType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
analysisTypeAsString().
Security or
All. The Secuirty type only generates findings related to security. The
All type generates both security findings and quality findings. Defaults to
Security type if missing.AnalysisTypepublic final String analysisTypeAsString()
The type of analysis you want CodeGuru Security to perform in the scan, either Security or
All. The Secuirty type only generates findings related to security. The
All type generates both security findings and quality findings. Defaults to Security
type if missing.
If the service returns an enum value that is not available in the current SDK version, analysisType will
return AnalysisType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
analysisTypeAsString().
Security or
All. The Secuirty type only generates findings related to security. The
All type generates both security findings and quality findings. Defaults to
Security type if missing.AnalysisTypepublic final 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.
public final ResourceId resourceId()
The identifier for an input resource used to create a scan.
public final String scanName()
The unique name that CodeGuru Security uses to track revisions across multiple scans of the same resource. Only
allowed for a STANDARD scan type. If not specified, it will be auto generated.
STANDARD scan type. If not specified, it will be auto
generated.public final ScanType scanType()
The type of scan, either Standard or Express. Defaults to Standard type if
missing.
Express scans run on limited resources and use a limited set of detectors to analyze your code in
near-real time. Standard scans have standard resource limits and use the full set of detectors to
analyze your code.
If the service returns an enum value that is not available in the current SDK version, scanType will
return ScanType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
scanTypeAsString().
Standard or Express. Defaults to Standard
type if missing.
Express scans run on limited resources and use a limited set of detectors to analyze your
code in near-real time. Standard scans have standard resource limits and use the full set of
detectors to analyze your code.
ScanTypepublic final String scanTypeAsString()
The type of scan, either Standard or Express. Defaults to Standard type if
missing.
Express scans run on limited resources and use a limited set of detectors to analyze your code in
near-real time. Standard scans have standard resource limits and use the full set of detectors to
analyze your code.
If the service returns an enum value that is not available in the current SDK version, scanType will
return ScanType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
scanTypeAsString().
Standard or Express. Defaults to Standard
type if missing.
Express scans run on limited resources and use a limited set of detectors to analyze your
code in near-real time. Standard scans have standard resource limits and use the full set of
detectors to analyze your code.
ScanTypepublic final boolean hasTags()
isEmpty() method on the property). This is useful
because the SDK will never return a null collection or map, but you may need to differentiate between the service
returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true
if a value for the property was specified in the request builder, and false if a value was not specified.public final 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, or Secret. 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.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasTags() method.
A tag key. For example, CostCenter, Environment, or Secret. 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.
public CreateScanRequest.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<CreateScanRequest.Builder,CreateScanRequest>toBuilder in class CodeGuruSecurityRequestpublic static CreateScanRequest.Builder builder()
public static Class<? extends CreateScanRequest.Builder> serializableBuilderClass()
public final int hashCode()
hashCode in class AwsRequestpublic final boolean equals(Object obj)
equals in class AwsRequestpublic final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkRequestCopyright © 2023. All rights reserved.