@Generated(value="software.amazon.awssdk:codegen") public final class AssessmentRun extends Object implements SdkPojo, Serializable, ToCopyableBuilder<AssessmentRun.Builder,AssessmentRun>
A snapshot of an Amazon Inspector assessment run that contains the findings of the assessment run .
Used as the response element in the DescribeAssessmentRuns action.
| Modifier and Type | Class and Description |
|---|---|
static interface |
AssessmentRun.Builder |
| Modifier and Type | Method and Description |
|---|---|
String |
arn()
The ARN of the assessment run.
|
String |
assessmentTemplateArn()
The ARN of the assessment template that is associated with the assessment run.
|
static AssessmentRun.Builder |
builder() |
Instant |
completedAt()
The assessment run completion time that corresponds to the rules packages evaluation completion time or failure.
|
Instant |
createdAt()
The time when StartAssessmentRun was called.
|
Boolean |
dataCollected()
A Boolean value (true or false) that specifies whether the process of collecting data from the agents is
completed.
|
Integer |
durationInSeconds()
The duration of the assessment run.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
Map<Severity,Integer> |
findingCounts()
Provides a total count of generated findings per severity.
|
Map<String,Integer> |
findingCountsAsStrings()
Provides a total count of generated findings per severity.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasFindingCounts()
For responses, this returns true if the service returned a value for the FindingCounts property.
|
int |
hashCode() |
boolean |
hasNotifications()
For responses, this returns true if the service returned a value for the Notifications property.
|
boolean |
hasRulesPackageArns()
For responses, this returns true if the service returned a value for the RulesPackageArns property.
|
boolean |
hasStateChanges()
For responses, this returns true if the service returned a value for the StateChanges property.
|
boolean |
hasUserAttributesForFindings()
For responses, this returns true if the service returned a value for the UserAttributesForFindings property.
|
String |
name()
The auto-generated name for the assessment run.
|
List<AssessmentRunNotification> |
notifications()
A list of notifications for the event subscriptions.
|
List<String> |
rulesPackageArns()
The rules packages selected for the assessment run.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends AssessmentRun.Builder> |
serializableBuilderClass() |
Instant |
startedAt()
The time when StartAssessmentRun was called.
|
AssessmentRunState |
state()
The state of the assessment run.
|
String |
stateAsString()
The state of the assessment run.
|
Instant |
stateChangedAt()
The last time when the assessment run's state changed.
|
List<AssessmentRunStateChange> |
stateChanges()
A list of the assessment run state changes.
|
AssessmentRun.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
List<Attribute> |
userAttributesForFindings()
The user-defined attributes that are assigned to every generated finding.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String arn()
The ARN of the assessment run.
public final String name()
The auto-generated name for the assessment run.
public final String assessmentTemplateArn()
The ARN of the assessment template that is associated with the assessment run.
public final AssessmentRunState state()
The state of the assessment run.
If the service returns an enum value that is not available in the current SDK version, state will return
AssessmentRunState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
stateAsString().
AssessmentRunStatepublic final String stateAsString()
The state of the assessment run.
If the service returns an enum value that is not available in the current SDK version, state will return
AssessmentRunState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
stateAsString().
AssessmentRunStatepublic final Integer durationInSeconds()
The duration of the assessment run.
public final boolean hasRulesPackageArns()
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<String> rulesPackageArns()
The rules packages selected for the assessment run.
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 hasRulesPackageArns() method.
public final boolean hasUserAttributesForFindings()
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> userAttributesForFindings()
The user-defined attributes that are assigned to every generated 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 hasUserAttributesForFindings() method.
public final Instant createdAt()
The time when StartAssessmentRun was called.
public final Instant startedAt()
The time when StartAssessmentRun was called.
public final Instant completedAt()
The assessment run completion time that corresponds to the rules packages evaluation completion time or failure.
public final Instant stateChangedAt()
The last time when the assessment run's state changed.
public final Boolean dataCollected()
A Boolean value (true or false) that specifies whether the process of collecting data from the agents is completed.
public final boolean hasStateChanges()
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<AssessmentRunStateChange> stateChanges()
A list of the assessment run state changes.
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 hasStateChanges() method.
public final boolean hasNotifications()
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<AssessmentRunNotification> notifications()
A list of notifications for the event subscriptions. A notification about a particular generated finding is added to this list only once.
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 hasNotifications() method.
public final Map<Severity,Integer> findingCounts()
Provides a total count of generated findings per severity.
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 hasFindingCounts() method.
public final boolean hasFindingCounts()
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 Map<String,Integer> findingCountsAsStrings()
Provides a total count of generated findings per severity.
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 hasFindingCounts() method.
public AssessmentRun.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<AssessmentRun.Builder,AssessmentRun>public static AssessmentRun.Builder builder()
public static Class<? extends AssessmentRun.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.