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 Stringarn()The ARN that specifies the finding.final AssetAttributesA collection of attributes of the host from which the finding is generated.final AssetTypeThe type of the host from which the finding is generated.final StringThe type of the host from which the finding is generated.The system-defined attributes for the finding.static Finding.Builderbuilder()final IntegerThis data element is currently not used.final InstantThe time when the finding was generated.final StringThe description of the finding.final booleanfinal booleanequalsBySdkFields(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 booleanFor responses, this returns true if the service returned a value for the Attributes property.final inthashCode()final booleanFor responses, this returns true if the service returned a value for the UserAttributes property.final Stringid()The ID of the finding.final BooleanThis data element is currently not used.final DoubleThe numeric value of the finding severity.final StringThe recommendation for the finding.final IntegerThe schema version of this data type.static Class<? extends Finding.Builder> final Stringservice()The data element is set to "Inspector".This data type is used in the Finding data type.final Severityseverity()The finding severity.final StringThe finding severity.final Stringtitle()The name of the finding.Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.final InstantThe 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,
assetTypewill 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,
assetTypewill 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,
severitywill 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,
severitywill 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:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<Finding.Builder,Finding> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin 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
-