@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Vulnerability extends Object implements Serializable, Cloneable, StructuredPojo
Information about a security vulnerability that Amazon CodeGuru Security detected.
Constructor and Description |
---|
Vulnerability() |
Modifier and Type | Method and Description |
---|---|
Vulnerability |
clone() |
boolean |
equals(Object obj) |
FilePath |
getFilePath()
An object that describes the location of the detected security vulnerability in your code.
|
String |
getId()
The identifier for the vulnerability.
|
Integer |
getItemCount()
Deprecated.
|
List<String> |
getReferenceUrls()
One or more URL addresses that contain details about a vulnerability.
|
List<String> |
getRelatedVulnerabilities()
One or more vulnerabilities that are related to the vulnerability being described.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setFilePath(FilePath filePath)
An object that describes the location of the detected security vulnerability in your code.
|
void |
setId(String id)
The identifier for the vulnerability.
|
void |
setItemCount(Integer itemCount)
Deprecated.
|
void |
setReferenceUrls(Collection<String> referenceUrls)
One or more URL addresses that contain details about a vulnerability.
|
void |
setRelatedVulnerabilities(Collection<String> relatedVulnerabilities)
One or more vulnerabilities that are related to the vulnerability being described.
|
String |
toString()
Returns a string representation of this object.
|
Vulnerability |
withFilePath(FilePath filePath)
An object that describes the location of the detected security vulnerability in your code.
|
Vulnerability |
withId(String id)
The identifier for the vulnerability.
|
Vulnerability |
withItemCount(Integer itemCount)
Deprecated.
|
Vulnerability |
withReferenceUrls(Collection<String> referenceUrls)
One or more URL addresses that contain details about a vulnerability.
|
Vulnerability |
withReferenceUrls(String... referenceUrls)
One or more URL addresses that contain details about a vulnerability.
|
Vulnerability |
withRelatedVulnerabilities(Collection<String> relatedVulnerabilities)
One or more vulnerabilities that are related to the vulnerability being described.
|
Vulnerability |
withRelatedVulnerabilities(String... relatedVulnerabilities)
One or more vulnerabilities that are related to the vulnerability being described.
|
public void setFilePath(FilePath filePath)
An object that describes the location of the detected security vulnerability in your code.
filePath
- An object that describes the location of the detected security vulnerability in your code.public FilePath getFilePath()
An object that describes the location of the detected security vulnerability in your code.
public Vulnerability withFilePath(FilePath filePath)
An object that describes the location of the detected security vulnerability in your code.
filePath
- An object that describes the location of the detected security vulnerability in your code.public void setId(String id)
The identifier for the vulnerability.
id
- The identifier for the vulnerability.public String getId()
The identifier for the vulnerability.
public Vulnerability withId(String id)
The identifier for the vulnerability.
id
- The identifier for the vulnerability.@Deprecated public void setItemCount(Integer itemCount)
The number of times the vulnerability appears in your code.
itemCount
- The number of times the vulnerability appears in your code.@Deprecated public Integer getItemCount()
The number of times the vulnerability appears in your code.
@Deprecated public Vulnerability withItemCount(Integer itemCount)
The number of times the vulnerability appears in your code.
itemCount
- The number of times the vulnerability appears in your code.public List<String> getReferenceUrls()
One or more URL addresses that contain details about a vulnerability.
public void setReferenceUrls(Collection<String> referenceUrls)
One or more URL addresses that contain details about a vulnerability.
referenceUrls
- One or more URL addresses that contain details about a vulnerability.public Vulnerability withReferenceUrls(String... referenceUrls)
One or more URL addresses that contain details about a vulnerability.
NOTE: This method appends the values to the existing list (if any). Use
setReferenceUrls(java.util.Collection)
or withReferenceUrls(java.util.Collection)
if you want
to override the existing values.
referenceUrls
- One or more URL addresses that contain details about a vulnerability.public Vulnerability withReferenceUrls(Collection<String> referenceUrls)
One or more URL addresses that contain details about a vulnerability.
referenceUrls
- One or more URL addresses that contain details about a vulnerability.public List<String> getRelatedVulnerabilities()
One or more vulnerabilities that are related to the vulnerability being described.
public void setRelatedVulnerabilities(Collection<String> relatedVulnerabilities)
One or more vulnerabilities that are related to the vulnerability being described.
relatedVulnerabilities
- One or more vulnerabilities that are related to the vulnerability being described.public Vulnerability withRelatedVulnerabilities(String... relatedVulnerabilities)
One or more vulnerabilities that are related to the vulnerability being described.
NOTE: This method appends the values to the existing list (if any). Use
setRelatedVulnerabilities(java.util.Collection)
or
withRelatedVulnerabilities(java.util.Collection)
if you want to override the existing values.
relatedVulnerabilities
- One or more vulnerabilities that are related to the vulnerability being described.public Vulnerability withRelatedVulnerabilities(Collection<String> relatedVulnerabilities)
One or more vulnerabilities that are related to the vulnerability being described.
relatedVulnerabilities
- One or more vulnerabilities that are related to the vulnerability being described.public String toString()
toString
in class Object
Object.toString()
public Vulnerability clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.