@Generated(value="software.amazon.awssdk:codegen") public final class Finding extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Finding.Builder,Finding>
Contains information about an Amazon Inspector finding. This data type is used as the response element in the DescribeFindings action.
| Modifier and Type | Class and Description |
|---|---|
static interface |
Finding.Builder |
| Modifier and Type | Method and Description |
|---|---|
String |
arn()
The ARN that specifies the finding.
|
AssetAttributes |
assetAttributes()
A collection of attributes of the host from which the finding is generated.
|
AssetType |
assetType()
The type of the host from which the finding is generated.
|
String |
assetTypeAsString()
The type of the host from which the finding is generated.
|
List<Attribute> |
attributes()
The system-defined attributes for the finding.
|
static Finding.Builder |
builder() |
Integer |
confidence()
This data element is currently not used.
|
Instant |
createdAt()
The time when the finding was generated.
|
String |
description()
The description of the finding.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasAttributes()
For responses, this returns true if the service returned a value for the Attributes property.
|
int |
hashCode() |
boolean |
hasUserAttributes()
For responses, this returns true if the service returned a value for the UserAttributes property.
|
String |
id()
The ID of the finding.
|
Boolean |
indicatorOfCompromise()
This data element is currently not used.
|
Double |
numericSeverity()
The numeric value of the finding severity.
|
String |
recommendation()
The recommendation for the finding.
|
Integer |
schemaVersion()
The schema version of this data type.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends Finding.Builder> |
serializableBuilderClass() |
String |
service()
The data element is set to "Inspector".
|
InspectorServiceAttributes |
serviceAttributes()
This data type is used in the Finding data type.
|
Severity |
severity()
The finding severity.
|
String |
severityAsString()
The finding severity.
|
String |
title()
The name of the finding.
|
Finding.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
Instant |
updatedAt()
The time when AddAttributesToFindings is called.
|
List<Attribute> |
userAttributes()
The user-defined attributes that are assigned to the finding.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String arn()
The ARN that specifies the finding.
public final Integer schemaVersion()
The schema version of this data type.
public final String service()
The data element is set to "Inspector".
public final InspectorServiceAttributes serviceAttributes()
This data type is used in the Finding data type.
public final AssetType 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
return AssetType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
assetTypeAsString().
AssetTypepublic final String 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
return AssetType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
assetTypeAsString().
AssetTypepublic final AssetAttributes assetAttributes()
A collection of attributes of the host from which the finding is generated.
public final String id()
The ID of the finding.
public final String title()
The name of the finding.
public final String description()
The description of the finding.
public final String recommendation()
The recommendation for the finding.
public final Severity 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
return Severity.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
severityAsString().
Severitypublic final String 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
return Severity.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
severityAsString().
Severitypublic final Double numericSeverity()
The numeric value of the finding severity.
public final Integer confidence()
This data element is currently not used.
public final Boolean indicatorOfCompromise()
This data element is currently not used.
public final boolean hasAttributes()
isEmpty() 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.public final List<Attribute> 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.
public final boolean hasUserAttributes()
isEmpty() 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.public final List<Attribute> 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.
public final Instant createdAt()
The time when the finding was generated.
public final Instant updatedAt()
The time when AddAttributesToFindings is called.
public Finding.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<Finding.Builder,Finding>public static Finding.Builder builder()
public static Class<? extends Finding.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.