@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()
Returns true if the Attributes property was specified by the sender (it may be empty), or false if the sender did
not specify the value (it will be empty).
|
int |
hashCode() |
boolean |
hasUserAttributes()
Returns true if the UserAttributes property was specified by the sender (it may be empty), or false if the sender
did not specify the value (it will be empty).
|
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()
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.
You can use hasAttributes() to see if a value was sent in this field.
public final boolean hasUserAttributes()
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.
You can use hasUserAttributes() to see if a value was sent in this field.
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 © 2021. All rights reserved.