@Generated(value="software.amazon.awssdk:codegen") public final class CodeVulnerabilityDetails extends Object implements SdkPojo, Serializable, ToCopyableBuilder<CodeVulnerabilityDetails.Builder,CodeVulnerabilityDetails>
Contains information on the code vulnerability identified in your Lambda function.
| Modifier and Type | Class and Description |
|---|---|
static interface |
CodeVulnerabilityDetails.Builder |
| Modifier and Type | Method and Description |
|---|---|
static CodeVulnerabilityDetails.Builder |
builder() |
List<String> |
cwes()
The Common Weakness Enumeration (CWE) item associated with the detected vulnerability.
|
String |
detectorId()
The ID for the Amazon CodeGuru detector associated with the finding.
|
String |
detectorName()
The name of the detector used to identify the code vulnerability.
|
List<String> |
detectorTags()
The detector tag associated with the vulnerability.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
CodeFilePath |
filePath()
Contains information on where the code vulnerability is located in your code.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasCwes()
For responses, this returns true if the service returned a value for the Cwes property.
|
boolean |
hasDetectorTags()
For responses, this returns true if the service returned a value for the DetectorTags property.
|
int |
hashCode() |
boolean |
hasReferenceUrls()
For responses, this returns true if the service returned a value for the ReferenceUrls property.
|
List<String> |
referenceUrls()
A URL containing supporting documentation about the code vulnerability detected.
|
String |
ruleId()
The identifier for a rule that was used to detect the code vulnerability.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends CodeVulnerabilityDetails.Builder> |
serializableBuilderClass() |
String |
sourceLambdaLayerArn()
The Amazon Resource Name (ARN) of the Lambda layer that the code vulnerability was detected in.
|
CodeVulnerabilityDetails.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final boolean hasCwes()
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 List<String> cwes()
The Common Weakness Enumeration (CWE) item associated with the detected vulnerability.
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 hasCwes() method.
public final String detectorId()
The ID for the Amazon CodeGuru detector associated with the finding. For more information on detectors see Amazon CodeGuru Detector Library.
public final String detectorName()
The name of the detector used to identify the code vulnerability. For more information on detectors see CodeGuru Detector Library.
public final boolean hasDetectorTags()
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 List<String> detectorTags()
The detector tag associated with the vulnerability. Detector tags group related vulnerabilities by common themes or tactics. For a list of available tags by programming language, see Java tags, or Python tags.
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 hasDetectorTags() method.
public final CodeFilePath filePath()
Contains information on where the code vulnerability is located in your code.
public final boolean hasReferenceUrls()
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 List<String> referenceUrls()
A URL containing supporting documentation about the code vulnerability detected.
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 hasReferenceUrls() method.
public final String ruleId()
The identifier for a rule that was used to detect the code vulnerability.
public final String sourceLambdaLayerArn()
The Amazon Resource Name (ARN) of the Lambda layer that the code vulnerability was detected in.
public CodeVulnerabilityDetails.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<CodeVulnerabilityDetails.Builder,CodeVulnerabilityDetails>public static CodeVulnerabilityDetails.Builder builder()
public static Class<? extends CodeVulnerabilityDetails.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.