@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateScanRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
CreateScanRequest() |
Modifier and Type | Method and Description |
---|---|
CreateScanRequest |
addTagsEntry(String key,
String value)
Add a single Tags entry
|
CreateScanRequest |
clearTagsEntries()
Removes all the entries added into Tags.
|
CreateScanRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getAnalysisType()
The type of analysis you want CodeGuru Security to perform in the scan, either
Security or
All . |
String |
getClientToken()
The idempotency token for the request.
|
ResourceId |
getResourceId()
The identifier for the resource object to be scanned.
|
String |
getScanName()
The unique name that CodeGuru Security uses to track revisions across multiple scans of the same resource.
|
String |
getScanType()
The type of scan, either
Standard or Express . |
Map<String,String> |
getTags()
An array of key-value pairs used to tag a scan.
|
int |
hashCode() |
void |
setAnalysisType(String analysisType)
The type of analysis you want CodeGuru Security to perform in the scan, either
Security or
All . |
void |
setClientToken(String clientToken)
The idempotency token for the request.
|
void |
setResourceId(ResourceId resourceId)
The identifier for the resource object to be scanned.
|
void |
setScanName(String scanName)
The unique name that CodeGuru Security uses to track revisions across multiple scans of the same resource.
|
void |
setScanType(String scanType)
The type of scan, either
Standard or Express . |
void |
setTags(Map<String,String> tags)
An array of key-value pairs used to tag a scan.
|
String |
toString()
Returns a string representation of this object.
|
CreateScanRequest |
withAnalysisType(AnalysisType analysisType)
The type of analysis you want CodeGuru Security to perform in the scan, either
Security or
All . |
CreateScanRequest |
withAnalysisType(String analysisType)
The type of analysis you want CodeGuru Security to perform in the scan, either
Security or
All . |
CreateScanRequest |
withClientToken(String clientToken)
The idempotency token for the request.
|
CreateScanRequest |
withResourceId(ResourceId resourceId)
The identifier for the resource object to be scanned.
|
CreateScanRequest |
withScanName(String scanName)
The unique name that CodeGuru Security uses to track revisions across multiple scans of the same resource.
|
CreateScanRequest |
withScanType(ScanType scanType)
The type of scan, either
Standard or Express . |
CreateScanRequest |
withScanType(String scanType)
The type of scan, either
Standard or Express . |
CreateScanRequest |
withTags(Map<String,String> tags)
An array of key-value pairs used to tag a scan.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setAnalysisType(String analysisType)
The type of analysis you want CodeGuru Security to perform in the scan, either Security
or
All
. The Security
type only generates findings related to security. The
All
type generates both security findings and quality findings. Defaults to Security
type if missing.
analysisType
- The type of analysis you want CodeGuru Security to perform in the scan, either Security
or
All
. The Security
type only generates findings related to security. The
All
type generates both security findings and quality findings. Defaults to
Security
type if missing.AnalysisType
public String getAnalysisType()
The type of analysis you want CodeGuru Security to perform in the scan, either Security
or
All
. The Security
type only generates findings related to security. The
All
type generates both security findings and quality findings. Defaults to Security
type if missing.
Security
or
All
. The Security
type only generates findings related to security. The
All
type generates both security findings and quality findings. Defaults to
Security
type if missing.AnalysisType
public CreateScanRequest withAnalysisType(String analysisType)
The type of analysis you want CodeGuru Security to perform in the scan, either Security
or
All
. The Security
type only generates findings related to security. The
All
type generates both security findings and quality findings. Defaults to Security
type if missing.
analysisType
- The type of analysis you want CodeGuru Security to perform in the scan, either Security
or
All
. The Security
type only generates findings related to security. The
All
type generates both security findings and quality findings. Defaults to
Security
type if missing.AnalysisType
public CreateScanRequest withAnalysisType(AnalysisType analysisType)
The type of analysis you want CodeGuru Security to perform in the scan, either Security
or
All
. The Security
type only generates findings related to security. The
All
type generates both security findings and quality findings. Defaults to Security
type if missing.
analysisType
- The type of analysis you want CodeGuru Security to perform in the scan, either Security
or
All
. The Security
type only generates findings related to security. The
All
type generates both security findings and quality findings. Defaults to
Security
type if missing.AnalysisType
public void setClientToken(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.
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 String getClientToken()
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 CreateScanRequest withClientToken(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.
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 void setResourceId(ResourceId resourceId)
The identifier for the resource object to be scanned.
resourceId
- The identifier for the resource object to be scanned.public ResourceId getResourceId()
The identifier for the resource object to be scanned.
public CreateScanRequest withResourceId(ResourceId resourceId)
The identifier for the resource object to be scanned.
resourceId
- The identifier for the resource object to be scanned.public void setScanName(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.
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.public String getScanName()
The unique name that CodeGuru Security uses to track revisions across multiple scans of the same resource. Only
allowed for a STANDARD
scan type.
STANDARD
scan type.public CreateScanRequest withScanName(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.
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.public void setScanType(String 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.
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.
ScanType
public String getScanType()
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.
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.
ScanType
public CreateScanRequest withScanType(String 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.
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.
ScanType
public CreateScanRequest withScanType(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.
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.
ScanType
public Map<String,String> getTags()
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.
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 void setTags(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.
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.
public CreateScanRequest withTags(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.
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.
public CreateScanRequest addTagsEntry(String key, String value)
public CreateScanRequest clearTagsEntries()
public String toString()
toString
in class Object
Object.toString()
public CreateScanRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()