public class Finding
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Contains information about an Amazon Inspector finding. This data type is used as the response element in the DescribeFindings action.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
arn
The ARN that specifies the finding.
|
private AssetAttributes |
assetAttributes
A collection of attributes of the host from which the finding is
generated.
|
private java.lang.String |
assetType
The type of the host from which the finding is generated.
|
private java.util.List<Attribute> |
attributes
The system-defined attributes for the finding.
|
private java.lang.Integer |
confidence
This data element is currently not used.
|
private java.util.Date |
createdAt
The time when the finding was generated.
|
private java.lang.String |
description
The description of the finding.
|
private java.lang.String |
id
The ID of the finding.
|
private java.lang.Boolean |
indicatorOfCompromise
This data element is currently not used.
|
private java.lang.Double |
numericSeverity
The numeric value of the finding severity.
|
private java.lang.String |
recommendation
The recommendation for the finding.
|
private java.lang.Integer |
schemaVersion
The schema version of this data type.
|
private java.lang.String |
service
The data element is set to "Inspector".
|
private InspectorServiceAttributes |
serviceAttributes |
private java.lang.String |
severity
The finding severity.
|
private java.lang.String |
title
The name of the finding.
|
private java.util.Date |
updatedAt
The time when AddAttributesToFindings is called.
|
private java.util.List<Attribute> |
userAttributes
The user-defined attributes that are assigned to the finding.
|
Constructor and Description |
---|
Finding() |
Modifier and Type | Method and Description |
---|---|
Finding |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getArn()
The ARN that specifies the finding.
|
AssetAttributes |
getAssetAttributes()
A collection of attributes of the host from which the finding is
generated.
|
java.lang.String |
getAssetType()
The type of the host from which the finding is generated.
|
java.util.List<Attribute> |
getAttributes()
The system-defined attributes for the finding.
|
java.lang.Integer |
getConfidence()
This data element is currently not used.
|
java.util.Date |
getCreatedAt()
The time when the finding was generated.
|
java.lang.String |
getDescription()
The description of the finding.
|
java.lang.String |
getId()
The ID of the finding.
|
java.lang.Boolean |
getIndicatorOfCompromise()
This data element is currently not used.
|
java.lang.Double |
getNumericSeverity()
The numeric value of the finding severity.
|
java.lang.String |
getRecommendation()
The recommendation for the finding.
|
java.lang.Integer |
getSchemaVersion()
The schema version of this data type.
|
java.lang.String |
getService()
The data element is set to "Inspector".
|
InspectorServiceAttributes |
getServiceAttributes() |
java.lang.String |
getSeverity()
The finding severity.
|
java.lang.String |
getTitle()
The name of the finding.
|
java.util.Date |
getUpdatedAt()
The time when AddAttributesToFindings is called.
|
java.util.List<Attribute> |
getUserAttributes()
The user-defined attributes that are assigned to the finding.
|
int |
hashCode() |
java.lang.Boolean |
isIndicatorOfCompromise()
This data element is currently not used.
|
void |
setArn(java.lang.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(java.lang.String assetType)
The type of the host from which the finding is generated.
|
void |
setAttributes(java.util.Collection<Attribute> attributes)
The system-defined attributes for the finding.
|
void |
setConfidence(java.lang.Integer confidence)
This data element is currently not used.
|
void |
setCreatedAt(java.util.Date createdAt)
The time when the finding was generated.
|
void |
setDescription(java.lang.String description)
The description of the finding.
|
void |
setId(java.lang.String id)
The ID of the finding.
|
void |
setIndicatorOfCompromise(java.lang.Boolean indicatorOfCompromise)
This data element is currently not used.
|
void |
setNumericSeverity(java.lang.Double numericSeverity)
The numeric value of the finding severity.
|
void |
setRecommendation(java.lang.String recommendation)
The recommendation for the finding.
|
void |
setSchemaVersion(java.lang.Integer schemaVersion)
The schema version of this data type.
|
void |
setService(java.lang.String service)
The data element is set to "Inspector".
|
void |
setServiceAttributes(InspectorServiceAttributes serviceAttributes) |
void |
setSeverity(Severity severity)
The finding severity.
|
void |
setSeverity(java.lang.String severity)
The finding severity.
|
void |
setTitle(java.lang.String title)
The name of the finding.
|
void |
setUpdatedAt(java.util.Date updatedAt)
The time when AddAttributesToFindings is called.
|
void |
setUserAttributes(java.util.Collection<Attribute> userAttributes)
The user-defined attributes that are assigned to the finding.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Finding |
withArn(java.lang.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(java.lang.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(java.util.Collection<Attribute> attributes)
The system-defined attributes for the finding.
|
Finding |
withConfidence(java.lang.Integer confidence)
This data element is currently not used.
|
Finding |
withCreatedAt(java.util.Date createdAt)
The time when the finding was generated.
|
Finding |
withDescription(java.lang.String description)
The description of the finding.
|
Finding |
withId(java.lang.String id)
The ID of the finding.
|
Finding |
withIndicatorOfCompromise(java.lang.Boolean indicatorOfCompromise)
This data element is currently not used.
|
Finding |
withNumericSeverity(java.lang.Double numericSeverity)
The numeric value of the finding severity.
|
Finding |
withRecommendation(java.lang.String recommendation)
The recommendation for the finding.
|
Finding |
withSchemaVersion(java.lang.Integer schemaVersion)
The schema version of this data type.
|
Finding |
withService(java.lang.String service)
The data element is set to "Inspector".
|
Finding |
withServiceAttributes(InspectorServiceAttributes serviceAttributes) |
Finding |
withSeverity(Severity severity)
The finding severity.
|
Finding |
withSeverity(java.lang.String severity)
The finding severity.
|
Finding |
withTitle(java.lang.String title)
The name of the finding.
|
Finding |
withUpdatedAt(java.util.Date updatedAt)
The time when AddAttributesToFindings is called.
|
Finding |
withUserAttributes(Attribute... userAttributes)
The user-defined attributes that are assigned to the finding.
|
Finding |
withUserAttributes(java.util.Collection<Attribute> userAttributes)
The user-defined attributes that are assigned to the finding.
|
private java.lang.String arn
The ARN that specifies the finding.
private java.lang.Integer schemaVersion
The schema version of this data type.
private java.lang.String service
The data element is set to "Inspector".
private InspectorServiceAttributes serviceAttributes
private java.lang.String assetType
The type of the host from which the finding is generated.
private AssetAttributes assetAttributes
A collection of attributes of the host from which the finding is generated.
private java.lang.String id
The ID of the finding.
private java.lang.String title
The name of the finding.
private java.lang.String description
The description of the finding.
private java.lang.String recommendation
The recommendation for the finding.
private java.lang.String severity
The finding severity. Values can be set to High, Medium, Low, and Informational.
private java.lang.Double numericSeverity
The numeric value of the finding severity.
private java.lang.Integer confidence
This data element is currently not used.
private java.lang.Boolean indicatorOfCompromise
This data element is currently not used.
private java.util.List<Attribute> attributes
The system-defined attributes for the finding.
private java.util.List<Attribute> userAttributes
The user-defined attributes that are assigned to the finding.
private java.util.Date createdAt
The time when the finding was generated.
private java.util.Date updatedAt
The time when AddAttributesToFindings is called.
public void setArn(java.lang.String arn)
The ARN that specifies the finding.
arn
- The ARN that specifies the finding.public java.lang.String getArn()
The ARN that specifies the finding.
public Finding withArn(java.lang.String arn)
The ARN that specifies the finding.
arn
- The ARN that specifies the finding.public void setSchemaVersion(java.lang.Integer schemaVersion)
The schema version of this data type.
schemaVersion
- The schema version of this data type.public java.lang.Integer getSchemaVersion()
The schema version of this data type.
public Finding withSchemaVersion(java.lang.Integer schemaVersion)
The schema version of this data type.
schemaVersion
- The schema version of this data type.public void setService(java.lang.String service)
The data element is set to "Inspector".
service
- The data element is set to "Inspector".public java.lang.String getService()
The data element is set to "Inspector".
public Finding withService(java.lang.String service)
The data element is set to "Inspector".
service
- The data element is set to "Inspector".public void setServiceAttributes(InspectorServiceAttributes serviceAttributes)
serviceAttributes
- public InspectorServiceAttributes getServiceAttributes()
public Finding withServiceAttributes(InspectorServiceAttributes serviceAttributes)
serviceAttributes
- public void setAssetType(java.lang.String assetType)
The type of the host from which the finding is generated.
assetType
- The type of the host from which the finding is generated.AssetType
public java.lang.String getAssetType()
The type of the host from which the finding is generated.
AssetType
public Finding withAssetType(java.lang.String assetType)
The type of the host from which the finding is generated.
assetType
- The type of the host from which the finding is generated.AssetType
public void setAssetType(AssetType assetType)
The type of the host from which the finding is generated.
assetType
- The type of the host from which the finding is generated.AssetType
public Finding withAssetType(AssetType assetType)
The type of the host from which the finding is generated.
assetType
- The type of the host from which the finding is generated.AssetType
public void setAssetAttributes(AssetAttributes assetAttributes)
A collection of attributes of the host from which the finding is generated.
assetAttributes
- A collection of attributes of the host from which the finding is
generated.public AssetAttributes getAssetAttributes()
A collection of attributes of the host from which the finding is generated.
public Finding withAssetAttributes(AssetAttributes assetAttributes)
A collection of attributes of the host from which the finding is generated.
assetAttributes
- A collection of attributes of the host from which the finding is
generated.public void setId(java.lang.String id)
The ID of the finding.
id
- The ID of the finding.public java.lang.String getId()
The ID of the finding.
public Finding withId(java.lang.String id)
The ID of the finding.
id
- The ID of the finding.public void setTitle(java.lang.String title)
The name of the finding.
title
- The name of the finding.public java.lang.String getTitle()
The name of the finding.
public Finding withTitle(java.lang.String title)
The name of the finding.
title
- The name of the finding.public void setDescription(java.lang.String description)
The description of the finding.
description
- The description of the finding.public java.lang.String getDescription()
The description of the finding.
public Finding withDescription(java.lang.String description)
The description of the finding.
description
- The description of the finding.public void setRecommendation(java.lang.String recommendation)
The recommendation for the finding.
recommendation
- The recommendation for the finding.public java.lang.String getRecommendation()
The recommendation for the finding.
public Finding withRecommendation(java.lang.String recommendation)
The recommendation for the finding.
recommendation
- The recommendation for the finding.public void setSeverity(java.lang.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.Severity
public java.lang.String getSeverity()
The finding severity. Values can be set to High, Medium, Low, and Informational.
Severity
public Finding withSeverity(java.lang.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.Severity
public void setSeverity(Severity 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.Severity
public Finding withSeverity(Severity 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.Severity
public void setNumericSeverity(java.lang.Double numericSeverity)
The numeric value of the finding severity.
numericSeverity
- The numeric value of the finding severity.public java.lang.Double getNumericSeverity()
The numeric value of the finding severity.
public Finding withNumericSeverity(java.lang.Double numericSeverity)
The numeric value of the finding severity.
numericSeverity
- The numeric value of the finding severity.public void setConfidence(java.lang.Integer confidence)
This data element is currently not used.
confidence
- This data element is currently not used.public java.lang.Integer getConfidence()
This data element is currently not used.
public Finding withConfidence(java.lang.Integer confidence)
This data element is currently not used.
confidence
- This data element is currently not used.public void setIndicatorOfCompromise(java.lang.Boolean indicatorOfCompromise)
This data element is currently not used.
indicatorOfCompromise
- This data element is currently not used.public java.lang.Boolean getIndicatorOfCompromise()
This data element is currently not used.
public Finding withIndicatorOfCompromise(java.lang.Boolean indicatorOfCompromise)
This data element is currently not used.
indicatorOfCompromise
- This data element is currently not used.public java.lang.Boolean isIndicatorOfCompromise()
This data element is currently not used.
public java.util.List<Attribute> getAttributes()
The system-defined attributes for the finding.
public void setAttributes(java.util.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(java.util.Collection<Attribute> attributes)
The system-defined attributes for the finding.
attributes
- The system-defined attributes for the finding.public java.util.List<Attribute> getUserAttributes()
The user-defined attributes that are assigned to the finding.
public void setUserAttributes(java.util.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(java.util.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 void setCreatedAt(java.util.Date createdAt)
The time when the finding was generated.
createdAt
- The time when the finding was generated.public java.util.Date getCreatedAt()
The time when the finding was generated.
public Finding withCreatedAt(java.util.Date createdAt)
The time when the finding was generated.
createdAt
- The time when the finding was generated.public void setUpdatedAt(java.util.Date updatedAt)
The time when AddAttributesToFindings is called.
updatedAt
- The time when AddAttributesToFindings is called.public java.util.Date getUpdatedAt()
The time when AddAttributesToFindings is called.
public Finding withUpdatedAt(java.util.Date updatedAt)
The time when AddAttributesToFindings is called.
updatedAt
- The time when AddAttributesToFindings is called.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public Finding clone()
clone
in class java.lang.Object