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 Finding
clone()
boolean
equals(Object obj)
String
getArn()
The ARN that specifies the finding.AssetAttributes
getAssetAttributes()
A collection of attributes of the host from which the finding is generated.String
getAssetType()
The type of the host from which the finding is generated.List<Attribute>
getAttributes()
The system-defined attributes for the finding.Integer
getConfidence()
This data element is currently not used.Date
getCreatedAt()
The time when the finding was generated.String
getDescription()
The description of the finding.String
getId()
The ID of the finding.Boolean
getIndicatorOfCompromise()
This data element is currently not used.Double
getNumericSeverity()
The numeric value of the finding severity.String
getRecommendation()
The recommendation for the finding.Integer
getSchemaVersion()
The schema version of this data type.String
getService()
The data element is set to "Inspector".InspectorServiceAttributes
getServiceAttributes()
String
getSeverity()
The finding severity.String
getTitle()
The name of the finding.Date
getUpdatedAt()
The time when AddAttributesToFindings is called.List<Attribute>
getUserAttributes()
The user-defined attributes that are assigned to the finding.int
hashCode()
Boolean
isIndicatorOfCompromise()
This data element is currently not used.void
setArn(String arn)
The ARN that specifies the finding.void
setAssetAttributes(AssetAttributes assetAttributes)
A collection of attributes of the host from which the finding is generated.void
setAssetType(AssetType assetType)
The type of the host from which the finding is generated.void
setAssetType(String assetType)
The type of the host from which the finding is generated.void
setAttributes(Collection<Attribute> attributes)
The system-defined attributes for the finding.void
setConfidence(Integer confidence)
This data element is currently not used.void
setCreatedAt(Date createdAt)
The time when the finding was generated.void
setDescription(String description)
The description of the finding.void
setId(String id)
The ID of the finding.void
setIndicatorOfCompromise(Boolean indicatorOfCompromise)
This data element is currently not used.void
setNumericSeverity(Double numericSeverity)
The numeric value of the finding severity.void
setRecommendation(String recommendation)
The recommendation for the finding.void
setSchemaVersion(Integer schemaVersion)
The schema version of this data type.void
setService(String service)
The data element is set to "Inspector".void
setServiceAttributes(InspectorServiceAttributes serviceAttributes)
void
setSeverity(Severity severity)
The finding severity.void
setSeverity(String severity)
The finding severity.void
setTitle(String title)
The name of the finding.void
setUpdatedAt(Date updatedAt)
The time when AddAttributesToFindings is called.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
withArn(String arn)
The ARN that specifies the finding.Finding
withAssetAttributes(AssetAttributes assetAttributes)
A collection of attributes of the host from which the finding is generated.Finding
withAssetType(AssetType assetType)
The type of the host from which the finding is generated.Finding
withAssetType(String assetType)
The type of the host from which the finding is generated.Finding
withAttributes(Attribute... attributes)
The system-defined attributes for the finding.Finding
withAttributes(Collection<Attribute> attributes)
The system-defined attributes for the finding.Finding
withConfidence(Integer confidence)
This data element is currently not used.Finding
withCreatedAt(Date createdAt)
The time when the finding was generated.Finding
withDescription(String description)
The description of the finding.Finding
withId(String id)
The ID of the finding.Finding
withIndicatorOfCompromise(Boolean indicatorOfCompromise)
This data element is currently not used.Finding
withNumericSeverity(Double numericSeverity)
The numeric value of the finding severity.Finding
withRecommendation(String recommendation)
The recommendation for the finding.Finding
withSchemaVersion(Integer schemaVersion)
The schema version of this data type.Finding
withService(String service)
The data element is set to "Inspector".Finding
withServiceAttributes(InspectorServiceAttributes serviceAttributes)
Finding
withSeverity(Severity severity)
The finding severity.Finding
withSeverity(String severity)
The finding severity.Finding
withTitle(String title)
The name of the finding.Finding
withUpdatedAt(Date updatedAt)
The time when AddAttributesToFindings is called.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.
-
-
-
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:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
-