@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Finding extends Object implements Serializable, Cloneable, StructuredPojo
Information about a finding that was detected in your code.
Constructor and Description |
---|
Finding() |
Modifier and Type | Method and Description |
---|---|
Finding |
clone() |
boolean |
equals(Object obj) |
Date |
getCreatedAt()
The time when the finding was created.
|
String |
getDescription()
A description of the finding.
|
String |
getDetectorId()
The identifier for the detector that detected the finding in your code.
|
String |
getDetectorName()
The name of the detector that identified the security vulnerability in your code.
|
List<String> |
getDetectorTags()
One or more tags or categorizations that are associated with a detector.
|
String |
getGeneratorId()
The identifier for the component that generated a finding such as AmazonCodeGuruSecurity.
|
String |
getId()
The identifier for a finding.
|
Remediation |
getRemediation()
An object that contains the details about how to remediate a finding.
|
Resource |
getResource()
The resource where Amazon CodeGuru Security detected a finding.
|
String |
getRuleId()
The identifier for the rule that generated the finding.
|
String |
getSeverity()
The severity of the finding.
|
String |
getStatus()
The status of the finding.
|
String |
getTitle()
The title of the finding.
|
String |
getType()
The type of finding.
|
Date |
getUpdatedAt()
The time when the finding was last updated.
|
Vulnerability |
getVulnerability()
An object that describes the detected security vulnerability.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setCreatedAt(Date createdAt)
The time when the finding was created.
|
void |
setDescription(String description)
A description of the finding.
|
void |
setDetectorId(String detectorId)
The identifier for the detector that detected the finding in your code.
|
void |
setDetectorName(String detectorName)
The name of the detector that identified the security vulnerability in your code.
|
void |
setDetectorTags(Collection<String> detectorTags)
One or more tags or categorizations that are associated with a detector.
|
void |
setGeneratorId(String generatorId)
The identifier for the component that generated a finding such as AmazonCodeGuruSecurity.
|
void |
setId(String id)
The identifier for a finding.
|
void |
setRemediation(Remediation remediation)
An object that contains the details about how to remediate a finding.
|
void |
setResource(Resource resource)
The resource where Amazon CodeGuru Security detected a finding.
|
void |
setRuleId(String ruleId)
The identifier for the rule that generated the finding.
|
void |
setSeverity(String severity)
The severity of the finding.
|
void |
setStatus(String status)
The status of the finding.
|
void |
setTitle(String title)
The title of the finding.
|
void |
setType(String type)
The type of finding.
|
void |
setUpdatedAt(Date updatedAt)
The time when the finding was last updated.
|
void |
setVulnerability(Vulnerability vulnerability)
An object that describes the detected security vulnerability.
|
String |
toString()
Returns a string representation of this object.
|
Finding |
withCreatedAt(Date createdAt)
The time when the finding was created.
|
Finding |
withDescription(String description)
A description of the finding.
|
Finding |
withDetectorId(String detectorId)
The identifier for the detector that detected the finding in your code.
|
Finding |
withDetectorName(String detectorName)
The name of the detector that identified the security vulnerability in your code.
|
Finding |
withDetectorTags(Collection<String> detectorTags)
One or more tags or categorizations that are associated with a detector.
|
Finding |
withDetectorTags(String... detectorTags)
One or more tags or categorizations that are associated with a detector.
|
Finding |
withGeneratorId(String generatorId)
The identifier for the component that generated a finding such as AmazonCodeGuruSecurity.
|
Finding |
withId(String id)
The identifier for a finding.
|
Finding |
withRemediation(Remediation remediation)
An object that contains the details about how to remediate a finding.
|
Finding |
withResource(Resource resource)
The resource where Amazon CodeGuru Security detected a finding.
|
Finding |
withRuleId(String ruleId)
The identifier for the rule that generated the finding.
|
Finding |
withSeverity(Severity severity)
The severity of the finding.
|
Finding |
withSeverity(String severity)
The severity of the finding.
|
Finding |
withStatus(Status status)
The status of the finding.
|
Finding |
withStatus(String status)
The status of the finding.
|
Finding |
withTitle(String title)
The title of the finding.
|
Finding |
withType(String type)
The type of finding.
|
Finding |
withUpdatedAt(Date updatedAt)
The time when the finding was last updated.
|
Finding |
withVulnerability(Vulnerability vulnerability)
An object that describes the detected security vulnerability.
|
public void setCreatedAt(Date createdAt)
The time when the finding was created.
createdAt
- The time when the finding was created.public Date getCreatedAt()
The time when the finding was created.
public Finding withCreatedAt(Date createdAt)
The time when the finding was created.
createdAt
- The time when the finding was created.public void setDescription(String description)
A description of the finding.
description
- A description of the finding.public String getDescription()
A description of the finding.
public Finding withDescription(String description)
A description of the finding.
description
- A description of the finding.public void setDetectorId(String detectorId)
The identifier for the detector that detected the finding in your code. A detector is a defined rule based on industry standards and AWS best practices.
detectorId
- The identifier for the detector that detected the finding in your code. A detector is a defined rule based
on industry standards and AWS best practices.public String getDetectorId()
The identifier for the detector that detected the finding in your code. A detector is a defined rule based on industry standards and AWS best practices.
public Finding withDetectorId(String detectorId)
The identifier for the detector that detected the finding in your code. A detector is a defined rule based on industry standards and AWS best practices.
detectorId
- The identifier for the detector that detected the finding in your code. A detector is a defined rule based
on industry standards and AWS best practices.public void setDetectorName(String detectorName)
The name of the detector that identified the security vulnerability in your code.
detectorName
- The name of the detector that identified the security vulnerability in your code.public String getDetectorName()
The name of the detector that identified the security vulnerability in your code.
public Finding withDetectorName(String detectorName)
The name of the detector that identified the security vulnerability in your code.
detectorName
- The name of the detector that identified the security vulnerability in your code.public List<String> getDetectorTags()
One or more tags or categorizations that are associated with a detector. These tags are defined by type, programming language, or other classification such as maintainability or consistency.
public void setDetectorTags(Collection<String> detectorTags)
One or more tags or categorizations that are associated with a detector. These tags are defined by type, programming language, or other classification such as maintainability or consistency.
detectorTags
- One or more tags or categorizations that are associated with a detector. These tags are defined by type,
programming language, or other classification such as maintainability or consistency.public Finding withDetectorTags(String... detectorTags)
One or more tags or categorizations that are associated with a detector. These tags are defined by type, programming language, or other classification such as maintainability or consistency.
NOTE: This method appends the values to the existing list (if any). Use
setDetectorTags(java.util.Collection)
or withDetectorTags(java.util.Collection)
if you want to
override the existing values.
detectorTags
- One or more tags or categorizations that are associated with a detector. These tags are defined by type,
programming language, or other classification such as maintainability or consistency.public Finding withDetectorTags(Collection<String> detectorTags)
One or more tags or categorizations that are associated with a detector. These tags are defined by type, programming language, or other classification such as maintainability or consistency.
detectorTags
- One or more tags or categorizations that are associated with a detector. These tags are defined by type,
programming language, or other classification such as maintainability or consistency.public void setGeneratorId(String generatorId)
The identifier for the component that generated a finding such as AmazonCodeGuruSecurity.
generatorId
- The identifier for the component that generated a finding such as AmazonCodeGuruSecurity.public String getGeneratorId()
The identifier for the component that generated a finding such as AmazonCodeGuruSecurity.
public Finding withGeneratorId(String generatorId)
The identifier for the component that generated a finding such as AmazonCodeGuruSecurity.
generatorId
- The identifier for the component that generated a finding such as AmazonCodeGuruSecurity.public void setId(String id)
The identifier for a finding.
id
- The identifier for a finding.public String getId()
The identifier for a finding.
public Finding withId(String id)
The identifier for a finding.
id
- The identifier for a finding.public void setRemediation(Remediation remediation)
An object that contains the details about how to remediate a finding.
remediation
- An object that contains the details about how to remediate a finding.public Remediation getRemediation()
An object that contains the details about how to remediate a finding.
public Finding withRemediation(Remediation remediation)
An object that contains the details about how to remediate a finding.
remediation
- An object that contains the details about how to remediate a finding.public void setResource(Resource resource)
The resource where Amazon CodeGuru Security detected a finding.
resource
- The resource where Amazon CodeGuru Security detected a finding.public Resource getResource()
The resource where Amazon CodeGuru Security detected a finding.
public Finding withResource(Resource resource)
The resource where Amazon CodeGuru Security detected a finding.
resource
- The resource where Amazon CodeGuru Security detected a finding.public void setRuleId(String ruleId)
The identifier for the rule that generated the finding.
ruleId
- The identifier for the rule that generated the finding.public String getRuleId()
The identifier for the rule that generated the finding.
public Finding withRuleId(String ruleId)
The identifier for the rule that generated the finding.
ruleId
- The identifier for the rule that generated the finding.public void setSeverity(String severity)
The severity of the finding. Severity can be critical, high, medium, low, or informational. For information on severity levels, see Finding severity in the Amazon CodeGuru Security User Guide.
severity
- The severity of the finding. Severity can be critical, high, medium, low, or informational. For
information on severity levels, see Finding severity in the Amazon CodeGuru Security User Guide.Severity
public String getSeverity()
The severity of the finding. Severity can be critical, high, medium, low, or informational. For information on severity levels, see Finding severity in the Amazon CodeGuru Security User Guide.
Severity
public Finding withSeverity(String severity)
The severity of the finding. Severity can be critical, high, medium, low, or informational. For information on severity levels, see Finding severity in the Amazon CodeGuru Security User Guide.
severity
- The severity of the finding. Severity can be critical, high, medium, low, or informational. For
information on severity levels, see Finding severity in the Amazon CodeGuru Security User Guide.Severity
public Finding withSeverity(Severity severity)
The severity of the finding. Severity can be critical, high, medium, low, or informational. For information on severity levels, see Finding severity in the Amazon CodeGuru Security User Guide.
severity
- The severity of the finding. Severity can be critical, high, medium, low, or informational. For
information on severity levels, see Finding severity in the Amazon CodeGuru Security User Guide.Severity
public void setStatus(String status)
The status of the finding. A finding status can be open or closed.
status
- The status of the finding. A finding status can be open or closed.Status
public String getStatus()
The status of the finding. A finding status can be open or closed.
Status
public Finding withStatus(String status)
The status of the finding. A finding status can be open or closed.
status
- The status of the finding. A finding status can be open or closed.Status
public Finding withStatus(Status status)
The status of the finding. A finding status can be open or closed.
status
- The status of the finding. A finding status can be open or closed.Status
public void setTitle(String title)
The title of the finding.
title
- The title of the finding.public String getTitle()
The title of the finding.
public Finding withTitle(String title)
The title of the finding.
title
- The title of the finding.public void setType(String type)
The type of finding.
type
- The type of finding.public String getType()
The type of finding.
public Finding withType(String type)
The type of finding.
type
- The type of finding.public void setUpdatedAt(Date updatedAt)
The time when the finding was last updated. Findings are updated when you remediate them or when the finding code location changes.
updatedAt
- The time when the finding was last updated. Findings are updated when you remediate them or when the
finding code location changes.public Date getUpdatedAt()
The time when the finding was last updated. Findings are updated when you remediate them or when the finding code location changes.
public Finding withUpdatedAt(Date updatedAt)
The time when the finding was last updated. Findings are updated when you remediate them or when the finding code location changes.
updatedAt
- The time when the finding was last updated. Findings are updated when you remediate them or when the
finding code location changes.public void setVulnerability(Vulnerability vulnerability)
An object that describes the detected security vulnerability.
vulnerability
- An object that describes the detected security vulnerability.public Vulnerability getVulnerability()
An object that describes the detected security vulnerability.
public Finding withVulnerability(Vulnerability vulnerability)
An object that describes the detected security vulnerability.
vulnerability
- An object that describes the detected security vulnerability.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.