Class Finding
- java.lang.Object
-
- com.amazonaws.services.inspector.model.Finding
-
- All Implemented Interfaces:
Serializable,Cloneable
public class Finding extends Object implements Serializable, Cloneable
Contains information about an Amazon Inspector finding. This data type is used as the response element in the DescribeFindings action.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Finding()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Findingclone()booleanequals(Object obj)StringgetArn()The ARN that specifies the finding.AssetAttributesgetAssetAttributes()A collection of attributes of the host from which the finding is generated.StringgetAssetType()The type of the host from which the finding is generated.List<Attribute>getAttributes()The system-defined attributes for the finding.IntegergetConfidence()This data element is currently not used.DategetCreatedAt()The time when the finding was generated.StringgetDescription()The description of the finding.StringgetId()The ID of the finding.BooleangetIndicatorOfCompromise()This data element is currently not used.DoublegetNumericSeverity()The numeric value of the finding severity.StringgetRecommendation()The recommendation for the finding.IntegergetSchemaVersion()The schema version of this data type.StringgetService()The data element is set to "Inspector".InspectorServiceAttributesgetServiceAttributes()StringgetSeverity()The finding severity.StringgetTitle()The name of the finding.DategetUpdatedAt()The time when AddAttributesToFindings is called.List<Attribute>getUserAttributes()The user-defined attributes that are assigned to the finding.inthashCode()BooleanisIndicatorOfCompromise()This data element is currently not used.voidsetArn(String arn)The ARN that specifies the finding.voidsetAssetAttributes(AssetAttributes assetAttributes)A collection of attributes of the host from which the finding is generated.voidsetAssetType(AssetType assetType)The type of the host from which the finding is generated.voidsetAssetType(String assetType)The type of the host from which the finding is generated.voidsetAttributes(Collection<Attribute> attributes)The system-defined attributes for the finding.voidsetConfidence(Integer confidence)This data element is currently not used.voidsetCreatedAt(Date createdAt)The time when the finding was generated.voidsetDescription(String description)The description of the finding.voidsetId(String id)The ID of the finding.voidsetIndicatorOfCompromise(Boolean indicatorOfCompromise)This data element is currently not used.voidsetNumericSeverity(Double numericSeverity)The numeric value of the finding severity.voidsetRecommendation(String recommendation)The recommendation for the finding.voidsetSchemaVersion(Integer schemaVersion)The schema version of this data type.voidsetService(String service)The data element is set to "Inspector".voidsetServiceAttributes(InspectorServiceAttributes serviceAttributes)voidsetSeverity(Severity severity)The finding severity.voidsetSeverity(String severity)The finding severity.voidsetTitle(String title)The name of the finding.voidsetUpdatedAt(Date updatedAt)The time when AddAttributesToFindings is called.voidsetUserAttributes(Collection<Attribute> userAttributes)The user-defined attributes that are assigned to the finding.StringtoString()Returns a string representation of this object; useful for testing and debugging.FindingwithArn(String arn)The ARN that specifies the finding.FindingwithAssetAttributes(AssetAttributes assetAttributes)A collection of attributes of the host from which the finding is generated.FindingwithAssetType(AssetType assetType)The type of the host from which the finding is generated.FindingwithAssetType(String assetType)The type of the host from which the finding is generated.FindingwithAttributes(Attribute... attributes)The system-defined attributes for the finding.FindingwithAttributes(Collection<Attribute> attributes)The system-defined attributes for the finding.FindingwithConfidence(Integer confidence)This data element is currently not used.FindingwithCreatedAt(Date createdAt)The time when the finding was generated.FindingwithDescription(String description)The description of the finding.FindingwithId(String id)The ID of the finding.FindingwithIndicatorOfCompromise(Boolean indicatorOfCompromise)This data element is currently not used.FindingwithNumericSeverity(Double numericSeverity)The numeric value of the finding severity.FindingwithRecommendation(String recommendation)The recommendation for the finding.FindingwithSchemaVersion(Integer schemaVersion)The schema version of this data type.FindingwithService(String service)The data element is set to "Inspector".FindingwithServiceAttributes(InspectorServiceAttributes serviceAttributes)FindingwithSeverity(Severity severity)The finding severity.FindingwithSeverity(String severity)The finding severity.FindingwithTitle(String title)The name of the finding.FindingwithUpdatedAt(Date updatedAt)The time when AddAttributesToFindings is called.FindingwithUserAttributes(Attribute... userAttributes)The user-defined attributes that are assigned to the finding.FindingwithUserAttributes(Collection<Attribute> userAttributes)The user-defined attributes that are assigned to the finding.
-
-
-
Method Detail
-
setArn
public void setArn(String arn)
The ARN that specifies the finding.
- Parameters:
arn- The ARN that specifies the finding.
-
getArn
public String getArn()
The ARN that specifies the finding.
- Returns:
- The ARN that specifies the finding.
-
withArn
public Finding withArn(String arn)
The ARN that specifies the finding.
- Parameters:
arn- The ARN that specifies the finding.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setSchemaVersion
public void setSchemaVersion(Integer schemaVersion)
The schema version of this data type.
- Parameters:
schemaVersion- The schema version of this data type.
-
getSchemaVersion
public Integer getSchemaVersion()
The schema version of this data type.
- Returns:
- The schema version of this data type.
-
withSchemaVersion
public Finding withSchemaVersion(Integer schemaVersion)
The schema version of this data type.
- Parameters:
schemaVersion- The schema version of this data type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setService
public void setService(String service)
The data element is set to "Inspector".
- Parameters:
service- The data element is set to "Inspector".
-
getService
public String getService()
The data element is set to "Inspector".
- Returns:
- The data element is set to "Inspector".
-
withService
public Finding withService(String service)
The data element is set to "Inspector".
- Parameters:
service- The data element is set to "Inspector".- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setServiceAttributes
public void setServiceAttributes(InspectorServiceAttributes serviceAttributes)
- Parameters:
serviceAttributes-
-
getServiceAttributes
public InspectorServiceAttributes getServiceAttributes()
- Returns:
-
withServiceAttributes
public Finding withServiceAttributes(InspectorServiceAttributes serviceAttributes)
- Parameters:
serviceAttributes-- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setAssetType
public void setAssetType(String assetType)
The type of the host from which the finding is generated.
- Parameters:
assetType- The type of the host from which the finding is generated.- See Also:
AssetType
-
getAssetType
public String getAssetType()
The type of the host from which the finding is generated.
- Returns:
- The type of the host from which the finding is generated.
- See Also:
AssetType
-
withAssetType
public Finding withAssetType(String assetType)
The type of the host from which the finding is generated.
- Parameters:
assetType- The type of the host from which the finding is generated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
AssetType
-
setAssetType
public void setAssetType(AssetType assetType)
The type of the host from which the finding is generated.
- Parameters:
assetType- The type of the host from which the finding is generated.- See Also:
AssetType
-
withAssetType
public Finding withAssetType(AssetType assetType)
The type of the host from which the finding is generated.
- Parameters:
assetType- The type of the host from which the finding is generated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
AssetType
-
setAssetAttributes
public void setAssetAttributes(AssetAttributes assetAttributes)
A collection of attributes of the host from which the finding is generated.
- Parameters:
assetAttributes- A collection of attributes of the host from which the finding is generated.
-
getAssetAttributes
public AssetAttributes getAssetAttributes()
A collection of attributes of the host from which the finding is generated.
- Returns:
- A collection of attributes of the host from which the finding is generated.
-
withAssetAttributes
public Finding withAssetAttributes(AssetAttributes assetAttributes)
A collection of attributes of the host from which the finding is generated.
- Parameters:
assetAttributes- A collection of attributes of the host from which the finding is generated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setId
public void setId(String id)
The ID of the finding.
- Parameters:
id- The ID of the finding.
-
getId
public String getId()
The ID of the finding.
- Returns:
- The ID of the finding.
-
withId
public Finding withId(String id)
The ID of the finding.
- Parameters:
id- The ID of the finding.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setTitle
public void setTitle(String title)
The name of the finding.
- Parameters:
title- The name of the finding.
-
getTitle
public String getTitle()
The name of the finding.
- Returns:
- The name of the finding.
-
withTitle
public Finding withTitle(String title)
The name of the finding.
- Parameters:
title- The name of the finding.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDescription
public void setDescription(String description)
The description of the finding.
- Parameters:
description- The description of the finding.
-
getDescription
public String getDescription()
The description of the finding.
- Returns:
- The description of the finding.
-
withDescription
public Finding withDescription(String description)
The description of the finding.
- Parameters:
description- The description of the finding.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setRecommendation
public void setRecommendation(String recommendation)
The recommendation for the finding.
- Parameters:
recommendation- The recommendation for the finding.
-
getRecommendation
public String getRecommendation()
The recommendation for the finding.
- Returns:
- The recommendation for the finding.
-
withRecommendation
public Finding withRecommendation(String recommendation)
The recommendation for the finding.
- Parameters:
recommendation- The recommendation for the finding.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setSeverity
public void setSeverity(String severity)
The finding severity. Values can be set to High, Medium, Low, and Informational.
- Parameters:
severity- The finding severity. Values can be set to High, Medium, Low, and Informational.- See Also:
Severity
-
getSeverity
public String getSeverity()
The finding severity. Values can be set to High, Medium, Low, and Informational.
- Returns:
- The finding severity. Values can be set to High, Medium, Low, and Informational.
- See Also:
Severity
-
withSeverity
public Finding withSeverity(String severity)
The finding severity. Values can be set to High, Medium, Low, and Informational.
- Parameters:
severity- The finding severity. Values can be set to High, Medium, Low, and Informational.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
Severity
-
setSeverity
public void setSeverity(Severity severity)
The finding severity. Values can be set to High, Medium, Low, and Informational.
- Parameters:
severity- The finding severity. Values can be set to High, Medium, Low, and Informational.- See Also:
Severity
-
withSeverity
public Finding withSeverity(Severity severity)
The finding severity. Values can be set to High, Medium, Low, and Informational.
- Parameters:
severity- The finding severity. Values can be set to High, Medium, Low, and Informational.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
Severity
-
setNumericSeverity
public void setNumericSeverity(Double numericSeverity)
The numeric value of the finding severity.
- Parameters:
numericSeverity- The numeric value of the finding severity.
-
getNumericSeverity
public Double getNumericSeverity()
The numeric value of the finding severity.
- Returns:
- The numeric value of the finding severity.
-
withNumericSeverity
public Finding withNumericSeverity(Double numericSeverity)
The numeric value of the finding severity.
- Parameters:
numericSeverity- The numeric value of the finding severity.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setConfidence
public void setConfidence(Integer confidence)
This data element is currently not used.
- Parameters:
confidence- This data element is currently not used.
-
getConfidence
public Integer getConfidence()
This data element is currently not used.
- Returns:
- This data element is currently not used.
-
withConfidence
public Finding withConfidence(Integer confidence)
This data element is currently not used.
- Parameters:
confidence- This data element is currently not used.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setIndicatorOfCompromise
public void setIndicatorOfCompromise(Boolean indicatorOfCompromise)
This data element is currently not used.
- Parameters:
indicatorOfCompromise- This data element is currently not used.
-
getIndicatorOfCompromise
public Boolean getIndicatorOfCompromise()
This data element is currently not used.
- Returns:
- This data element is currently not used.
-
withIndicatorOfCompromise
public Finding withIndicatorOfCompromise(Boolean indicatorOfCompromise)
This data element is currently not used.
- Parameters:
indicatorOfCompromise- This data element is currently not used.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isIndicatorOfCompromise
public Boolean isIndicatorOfCompromise()
This data element is currently not used.
- Returns:
- This data element is currently not used.
-
getAttributes
public List<Attribute> getAttributes()
The system-defined attributes for the finding.
- Returns:
- The system-defined attributes for the finding.
-
setAttributes
public void setAttributes(Collection<Attribute> attributes)
The system-defined attributes for the finding.
- Parameters:
attributes- The system-defined attributes for the finding.
-
withAttributes
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)orwithAttributes(java.util.Collection)if you want to override the existing values.- Parameters:
attributes- The system-defined attributes for the finding.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withAttributes
public Finding withAttributes(Collection<Attribute> attributes)
The system-defined attributes for the finding.
- Parameters:
attributes- The system-defined attributes for the finding.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getUserAttributes
public List<Attribute> getUserAttributes()
The user-defined attributes that are assigned to the finding.
- Returns:
- The user-defined attributes that are assigned to the finding.
-
setUserAttributes
public void setUserAttributes(Collection<Attribute> userAttributes)
The user-defined attributes that are assigned to the finding.
- Parameters:
userAttributes- The user-defined attributes that are assigned to the finding.
-
withUserAttributes
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)orwithUserAttributes(java.util.Collection)if you want to override the existing values.- Parameters:
userAttributes- The user-defined attributes that are assigned to the finding.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withUserAttributes
public Finding withUserAttributes(Collection<Attribute> userAttributes)
The user-defined attributes that are assigned to the finding.
- Parameters:
userAttributes- The user-defined attributes that are assigned to the finding.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setCreatedAt
public void setCreatedAt(Date createdAt)
The time when the finding was generated.
- Parameters:
createdAt- The time when the finding was generated.
-
getCreatedAt
public Date getCreatedAt()
The time when the finding was generated.
- Returns:
- The time when the finding was generated.
-
withCreatedAt
public Finding withCreatedAt(Date createdAt)
The time when the finding was generated.
- Parameters:
createdAt- The time when the finding was generated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setUpdatedAt
public void setUpdatedAt(Date updatedAt)
The time when AddAttributesToFindings is called.
- Parameters:
updatedAt- The time when AddAttributesToFindings is called.
-
getUpdatedAt
public Date getUpdatedAt()
The time when AddAttributesToFindings is called.
- Returns:
- The time when AddAttributesToFindings is called.
-
withUpdatedAt
public Finding withUpdatedAt(Date updatedAt)
The time when AddAttributesToFindings is called.
- Parameters:
updatedAt- The time when AddAttributesToFindings is called.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
-