@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()
Returns true if the FindingCounts 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 |
hasNotifications()
Returns true if the Notifications property was specified by the sender (it may be empty), or false if the sender
did not specify the value (it will be empty).
|
boolean |
hasRulesPackageArns()
Returns true if the RulesPackageArns property was specified by the sender (it may be empty), or false if the
sender did not specify the value (it will be empty).
|
boolean |
hasStateChanges()
Returns true if the StateChanges property was specified by the sender (it may be empty), or false if the sender
did not specify the value (it will be empty).
|
boolean |
hasUserAttributesForFindings()
Returns true if the UserAttributesForFindings 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 |
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()
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.
You can use hasRulesPackageArns() to see if a value was sent in this field.
public final boolean hasUserAttributesForFindings()
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.
You can use hasUserAttributesForFindings() to see if a value was sent in this field.
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()
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.
You can use hasStateChanges() to see if a value was sent in this field.
public final boolean hasNotifications()
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.
You can use hasNotifications() to see if a value was sent in this field.
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.
You can use hasFindingCounts() to see if a value was sent in this field.
public final boolean hasFindingCounts()
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.
You can use hasFindingCounts() to see if a value was sent in this field.
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 © 2021. All rights reserved.