public class Finding extends Object implements Serializable, Cloneable
Contains information about an Inspector finding.
This data type is used as the response element in the DescribeFinding action.
Constructor and Description |
---|
Finding() |
Modifier and Type | Method and Description |
---|---|
Finding |
clone() |
boolean |
equals(Object obj) |
String |
getAgentId()
The EC2 instance ID where the agent is installed that is used during the
assessment that generates the finding.
|
List<Attribute> |
getAttributes()
The system-defined attributes for the finding.
|
String |
getAutoScalingGroup()
The autoscaling group of the EC2 instance where the agent is installed
that is used during the assessment that generates the finding.
|
LocalizedText |
getDescription()
The description of the finding.
|
LocalizedText |
getFinding()
A short description that identifies the finding.
|
String |
getFindingArn()
The ARN specifying the finding.
|
LocalizedText |
getRecommendation()
The recommendation for the finding.
|
String |
getRuleName()
The rule name that is used to generate the finding.
|
String |
getRulesPackageArn()
The ARN of the rules package that is used to generate the finding.
|
String |
getRunArn()
The ARN of the assessment run that generated the finding.
|
String |
getSeverity()
The finding severity.
|
List<Attribute> |
getUserAttributes()
The user-defined attributes that are assigned to the finding.
|
int |
hashCode() |
void |
setAgentId(String agentId)
The EC2 instance ID where the agent is installed that is used during the
assessment that generates the finding.
|
void |
setAttributes(Collection<Attribute> attributes)
The system-defined attributes for the finding.
|
void |
setAutoScalingGroup(String autoScalingGroup)
The autoscaling group of the EC2 instance where the agent is installed
that is used during the assessment that generates the finding.
|
void |
setDescription(LocalizedText description)
The description of the finding.
|
void |
setFinding(LocalizedText finding)
A short description that identifies the finding.
|
void |
setFindingArn(String findingArn)
The ARN specifying the finding.
|
void |
setRecommendation(LocalizedText recommendation)
The recommendation for the finding.
|
void |
setRuleName(String ruleName)
The rule name that is used to generate the finding.
|
void |
setRulesPackageArn(String rulesPackageArn)
The ARN of the rules package that is used to generate the finding.
|
void |
setRunArn(String runArn)
The ARN of the assessment run that generated the finding.
|
void |
setSeverity(String severity)
The finding severity.
|
void |
setUserAttributes(Collection<Attribute> userAttributes)
The user-defined attributes that are assigned to the finding.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Finding |
withAgentId(String agentId)
The EC2 instance ID where the agent is installed that is used during the
assessment that generates the finding.
|
Finding |
withAttributes(Attribute... attributes)
The system-defined attributes for the finding.
|
Finding |
withAttributes(Collection<Attribute> attributes)
The system-defined attributes for the finding.
|
Finding |
withAutoScalingGroup(String autoScalingGroup)
The autoscaling group of the EC2 instance where the agent is installed
that is used during the assessment that generates the finding.
|
Finding |
withDescription(LocalizedText description)
The description of the finding.
|
Finding |
withFinding(LocalizedText finding)
A short description that identifies the finding.
|
Finding |
withFindingArn(String findingArn)
The ARN specifying the finding.
|
Finding |
withRecommendation(LocalizedText recommendation)
The recommendation for the finding.
|
Finding |
withRuleName(String ruleName)
The rule name that is used to generate the finding.
|
Finding |
withRulesPackageArn(String rulesPackageArn)
The ARN of the rules package that is used to generate the finding.
|
Finding |
withRunArn(String runArn)
The ARN of the assessment run that generated the finding.
|
Finding |
withSeverity(String severity)
The finding severity.
|
Finding |
withUserAttributes(Attribute... userAttributes)
The user-defined attributes that are assigned to the finding.
|
Finding |
withUserAttributes(Collection<Attribute> userAttributes)
The user-defined attributes that are assigned to the finding.
|
public void setFindingArn(String findingArn)
The ARN specifying the finding.
findingArn
- The ARN specifying the finding.public String getFindingArn()
The ARN specifying the finding.
public Finding withFindingArn(String findingArn)
The ARN specifying the finding.
findingArn
- The ARN specifying the finding.public void setRunArn(String runArn)
The ARN of the assessment run that generated the finding.
runArn
- The ARN of the assessment run that generated the finding.public String getRunArn()
The ARN of the assessment run that generated the finding.
public Finding withRunArn(String runArn)
The ARN of the assessment run that generated the finding.
runArn
- The ARN of the assessment run that generated the finding.public void setRulesPackageArn(String rulesPackageArn)
The ARN of the rules package that is used to generate the finding.
rulesPackageArn
- The ARN of the rules package that is used to generate the finding.public String getRulesPackageArn()
The ARN of the rules package that is used to generate the finding.
public Finding withRulesPackageArn(String rulesPackageArn)
The ARN of the rules package that is used to generate the finding.
rulesPackageArn
- The ARN of the rules package that is used to generate the finding.public void setRuleName(String ruleName)
The rule name that is used to generate the finding.
ruleName
- The rule name that is used to generate the finding.public String getRuleName()
The rule name that is used to generate the finding.
public Finding withRuleName(String ruleName)
The rule name that is used to generate the finding.
ruleName
- The rule name that is used to generate the finding.public void setAgentId(String agentId)
The EC2 instance ID where the agent is installed that is used during the assessment that generates the finding.
agentId
- The EC2 instance ID where the agent is installed that is used
during the assessment that generates the finding.public String getAgentId()
The EC2 instance ID where the agent is installed that is used during the assessment that generates the finding.
public Finding withAgentId(String agentId)
The EC2 instance ID where the agent is installed that is used during the assessment that generates the finding.
agentId
- The EC2 instance ID where the agent is installed that is used
during the assessment that generates the finding.public void setAutoScalingGroup(String autoScalingGroup)
The autoscaling group of the EC2 instance where the agent is installed that is used during the assessment that generates the finding.
autoScalingGroup
- The autoscaling group of the EC2 instance where the agent is
installed that is used during the assessment that generates the
finding.public String getAutoScalingGroup()
The autoscaling group of the EC2 instance where the agent is installed that is used during the assessment that generates the finding.
public Finding withAutoScalingGroup(String autoScalingGroup)
The autoscaling group of the EC2 instance where the agent is installed that is used during the assessment that generates the finding.
autoScalingGroup
- The autoscaling group of the EC2 instance where the agent is
installed that is used during the assessment that generates the
finding.public void setSeverity(String severity)
The finding severity. Values can be set to High, Medium, Low, and Informational.
severity
- The finding severity. Values can be set to High,
Medium, Low, and Informational.public String getSeverity()
The finding severity. Values can be set to High, Medium, Low, and Informational.
public Finding withSeverity(String severity)
The finding severity. Values can be set to High, Medium, Low, and Informational.
severity
- The finding severity. Values can be set to High,
Medium, Low, and Informational.public void setFinding(LocalizedText finding)
A short description that identifies the finding.
finding
- A short description that identifies the finding.public LocalizedText getFinding()
A short description that identifies the finding.
public Finding withFinding(LocalizedText finding)
A short description that identifies the finding.
finding
- A short description that identifies the finding.public void setDescription(LocalizedText description)
The description of the finding.
description
- The description of the finding.public LocalizedText getDescription()
The description of the finding.
public Finding withDescription(LocalizedText description)
The description of the finding.
description
- The description of the finding.public void setRecommendation(LocalizedText recommendation)
The recommendation for the finding.
recommendation
- The recommendation for the finding.public LocalizedText getRecommendation()
The recommendation for the finding.
public Finding withRecommendation(LocalizedText recommendation)
The recommendation for the finding.
recommendation
- The recommendation for the finding.public List<Attribute> getAttributes()
The system-defined attributes for the finding.
public void setAttributes(Collection<Attribute> attributes)
The system-defined attributes for the finding.
attributes
- The system-defined attributes for the finding.public Finding withAttributes(Attribute... attributes)
The system-defined attributes for the finding.
NOTE: This method appends the values to the existing list (if
any). Use setAttributes(java.util.Collection)
or
withAttributes(java.util.Collection)
if you want to override the
existing values.
attributes
- The system-defined attributes for the finding.public Finding withAttributes(Collection<Attribute> attributes)
The system-defined attributes for the finding.
attributes
- The system-defined attributes for the finding.public List<Attribute> getUserAttributes()
The user-defined attributes that are assigned to the finding.
public void setUserAttributes(Collection<Attribute> userAttributes)
The user-defined attributes that are assigned to the finding.
userAttributes
- The user-defined attributes that are assigned to the finding.public Finding withUserAttributes(Attribute... userAttributes)
The user-defined attributes that are assigned to the finding.
NOTE: This method appends the values to the existing list (if
any). Use setUserAttributes(java.util.Collection)
or
withUserAttributes(java.util.Collection)
if you want to override
the existing values.
userAttributes
- The user-defined attributes that are assigned to the finding.public Finding withUserAttributes(Collection<Attribute> userAttributes)
The user-defined attributes that are assigned to the finding.
userAttributes
- The user-defined attributes that are assigned to the finding.public String toString()
toString
in class Object
Object.toString()
Copyright © 2015. All rights reserved.