Class Finding
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<Finding.Builder,
Finding>
Contains information about an Amazon Inspector finding. This data type is used as the response element in the DescribeFindings action.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionfinal String
arn()
The ARN that specifies the finding.final AssetAttributes
A collection of attributes of the host from which the finding is generated.final AssetType
The type of the host from which the finding is generated.final String
The type of the host from which the finding is generated.The system-defined attributes for the finding.static Finding.Builder
builder()
final Integer
This data element is currently not used.final Instant
The time when the finding was generated.final String
The description of the finding.final boolean
final boolean
equalsBySdkFields
(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional
<T> getValueForField
(String fieldName, Class<T> clazz) final boolean
For responses, this returns true if the service returned a value for the Attributes property.final int
hashCode()
final boolean
For responses, this returns true if the service returned a value for the UserAttributes property.final String
id()
The ID of the finding.final Boolean
This data element is currently not used.final Double
The numeric value of the finding severity.final String
The recommendation for the finding.final Integer
The schema version of this data type.static Class
<? extends Finding.Builder> final String
service()
The data element is set to "Inspector".This data type is used in the Finding data type.final Severity
severity()
The finding severity.final String
The finding severity.final String
title()
The name of the finding.Take this object and create a builder that contains all of the current property values of this object.final String
toString()
Returns a string representation of this object.final Instant
The time when AddAttributesToFindings is called.The user-defined attributes that are assigned to the finding.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
arn
The ARN that specifies the finding.
- Returns:
- The ARN that specifies the finding.
-
schemaVersion
The schema version of this data type.
- Returns:
- The schema version of this data type.
-
service
The data element is set to "Inspector".
- Returns:
- The data element is set to "Inspector".
-
serviceAttributes
-
assetType
The type of the host from which the finding is generated.
If the service returns an enum value that is not available in the current SDK version,
assetType
will returnAssetType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromassetTypeAsString()
.- Returns:
- The type of the host from which the finding is generated.
- See Also:
-
assetTypeAsString
The type of the host from which the finding is generated.
If the service returns an enum value that is not available in the current SDK version,
assetType
will returnAssetType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromassetTypeAsString()
.- Returns:
- The type of the host from which the finding is generated.
- See Also:
-
assetAttributes
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.
-
id
-
title
-
description
The description of the finding.
- Returns:
- The description of the finding.
-
recommendation
The recommendation for the finding.
- Returns:
- The recommendation for the finding.
-
severity
The finding severity. Values can be set to High, Medium, Low, and Informational.
If the service returns an enum value that is not available in the current SDK version,
severity
will returnSeverity.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromseverityAsString()
.- Returns:
- The finding severity. Values can be set to High, Medium, Low, and Informational.
- See Also:
-
severityAsString
The finding severity. Values can be set to High, Medium, Low, and Informational.
If the service returns an enum value that is not available in the current SDK version,
severity
will returnSeverity.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromseverityAsString()
.- Returns:
- The finding severity. Values can be set to High, Medium, Low, and Informational.
- See Also:
-
numericSeverity
The numeric value of the finding severity.
- Returns:
- The numeric value of the finding severity.
-
confidence
This data element is currently not used.
- Returns:
- This data element is currently not used.
-
indicatorOfCompromise
This data element is currently not used.
- Returns:
- This data element is currently not used.
-
hasAttributes
public final boolean hasAttributes()For responses, this returns true if the service returned a value for the Attributes property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()
method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
attributes
The system-defined attributes for the finding.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasAttributes()
method.- Returns:
- The system-defined attributes for the finding.
-
hasUserAttributes
public final boolean hasUserAttributes()For responses, this returns true if the service returned a value for the UserAttributes property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()
method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
userAttributes
The user-defined attributes that are assigned to the finding.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasUserAttributes()
method.- Returns:
- The user-defined attributes that are assigned to the finding.
-
createdAt
The time when the finding was generated.
- Returns:
- The time when the finding was generated.
-
updatedAt
The time when AddAttributesToFindings is called.
- Returns:
- The time when AddAttributesToFindings is called.
-
toBuilder
Description copied from interface:ToCopyableBuilder
Take this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilder
in interfaceToCopyableBuilder<Finding.Builder,
Finding> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojo
Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojo
class, and is generated based on a service model.If an
SdkPojo
class does not have any inherited fields,equalsBySdkFields
andequals
are essentially the same.- Specified by:
equalsBySdkFields
in interfaceSdkPojo
- Parameters:
obj
- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-