@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class VulnerabilityCodeVulnerabilities extends Object implements Serializable, Cloneable, StructuredPojo
Provides details about the vulnerabilities found in your Lambda function code. This field pertains to findings that Security Hub receives from Amazon Inspector.
Constructor and Description |
---|
VulnerabilityCodeVulnerabilities() |
Modifier and Type | Method and Description |
---|---|
VulnerabilityCodeVulnerabilities |
clone() |
boolean |
equals(Object obj) |
List<String> |
getCwes()
The Common Weakness Enumeration (CWE) item associated with the detected code vulnerability.
|
CodeVulnerabilitiesFilePath |
getFilePath()
Provides details about where a code vulnerability is located in your Lambda function.
|
String |
getSourceArn()
The Amazon Resource Name (ARN) of the Lambda layer in which the code vulnerability is located.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setCwes(Collection<String> cwes)
The Common Weakness Enumeration (CWE) item associated with the detected code vulnerability.
|
void |
setFilePath(CodeVulnerabilitiesFilePath filePath)
Provides details about where a code vulnerability is located in your Lambda function.
|
void |
setSourceArn(String sourceArn)
The Amazon Resource Name (ARN) of the Lambda layer in which the code vulnerability is located.
|
String |
toString()
Returns a string representation of this object.
|
VulnerabilityCodeVulnerabilities |
withCwes(Collection<String> cwes)
The Common Weakness Enumeration (CWE) item associated with the detected code vulnerability.
|
VulnerabilityCodeVulnerabilities |
withCwes(String... cwes)
The Common Weakness Enumeration (CWE) item associated with the detected code vulnerability.
|
VulnerabilityCodeVulnerabilities |
withFilePath(CodeVulnerabilitiesFilePath filePath)
Provides details about where a code vulnerability is located in your Lambda function.
|
VulnerabilityCodeVulnerabilities |
withSourceArn(String sourceArn)
The Amazon Resource Name (ARN) of the Lambda layer in which the code vulnerability is located.
|
public List<String> getCwes()
The Common Weakness Enumeration (CWE) item associated with the detected code vulnerability.
public void setCwes(Collection<String> cwes)
The Common Weakness Enumeration (CWE) item associated with the detected code vulnerability.
cwes
- The Common Weakness Enumeration (CWE) item associated with the detected code vulnerability.public VulnerabilityCodeVulnerabilities withCwes(String... cwes)
The Common Weakness Enumeration (CWE) item associated with the detected code vulnerability.
NOTE: This method appends the values to the existing list (if any). Use
setCwes(java.util.Collection)
or withCwes(java.util.Collection)
if you want to override the
existing values.
cwes
- The Common Weakness Enumeration (CWE) item associated with the detected code vulnerability.public VulnerabilityCodeVulnerabilities withCwes(Collection<String> cwes)
The Common Weakness Enumeration (CWE) item associated with the detected code vulnerability.
cwes
- The Common Weakness Enumeration (CWE) item associated with the detected code vulnerability.public void setFilePath(CodeVulnerabilitiesFilePath filePath)
Provides details about where a code vulnerability is located in your Lambda function.
filePath
- Provides details about where a code vulnerability is located in your Lambda function.public CodeVulnerabilitiesFilePath getFilePath()
Provides details about where a code vulnerability is located in your Lambda function.
public VulnerabilityCodeVulnerabilities withFilePath(CodeVulnerabilitiesFilePath filePath)
Provides details about where a code vulnerability is located in your Lambda function.
filePath
- Provides details about where a code vulnerability is located in your Lambda function.public void setSourceArn(String sourceArn)
The Amazon Resource Name (ARN) of the Lambda layer in which the code vulnerability is located.
sourceArn
- The Amazon Resource Name (ARN) of the Lambda layer in which the code vulnerability is located.public String getSourceArn()
The Amazon Resource Name (ARN) of the Lambda layer in which the code vulnerability is located.
public VulnerabilityCodeVulnerabilities withSourceArn(String sourceArn)
The Amazon Resource Name (ARN) of the Lambda layer in which the code vulnerability is located.
sourceArn
- The Amazon Resource Name (ARN) of the Lambda layer in which the code vulnerability is located.public String toString()
toString
in class Object
Object.toString()
public VulnerabilityCodeVulnerabilities clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.