Class AssessmentRun
- All Implemented Interfaces:
- Serializable,- SdkPojo,- 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.
- See Also:
- 
Nested Class SummaryNested Classes
- 
Method SummaryModifier and TypeMethodDescriptionfinal Stringarn()The ARN of the assessment run.final StringThe ARN of the assessment template that is associated with the assessment run.static AssessmentRun.Builderbuilder()final InstantThe assessment run completion time that corresponds to the rules packages evaluation completion time or failure.final InstantThe time when StartAssessmentRun was called.final BooleanA Boolean value (true or false) that specifies whether the process of collecting data from the agents is completed.final IntegerThe duration of the assessment run.final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.Provides a total count of generated findings per severity.Provides a total count of generated findings per severity.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final booleanFor responses, this returns true if the service returned a value for the FindingCounts property.final inthashCode()final booleanFor responses, this returns true if the service returned a value for the Notifications property.final booleanFor responses, this returns true if the service returned a value for the RulesPackageArns property.final booleanFor responses, this returns true if the service returned a value for the StateChanges property.final booleanFor responses, this returns true if the service returned a value for the UserAttributesForFindings property.final Stringname()The auto-generated name for the assessment run.final List<AssessmentRunNotification> A list of notifications for the event subscriptions.The rules packages selected for the assessment run.static Class<? extends AssessmentRun.Builder> final InstantThe time when StartAssessmentRun was called.final AssessmentRunStatestate()The state of the assessment run.final StringThe state of the assessment run.final InstantThe last time when the assessment run's state changed.final List<AssessmentRunStateChange> A list of the assessment run state changes.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.The user-defined attributes that are assigned to every generated finding.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuildercopy
- 
Method Details- 
arn
- 
nameThe auto-generated name for the assessment run. - Returns:
- The auto-generated name for the assessment run.
 
- 
assessmentTemplateArnThe ARN of the assessment template that is associated with the assessment run. - Returns:
- The ARN of the assessment template that is associated with the assessment run.
 
- 
stateThe state of the assessment run. If the service returns an enum value that is not available in the current SDK version, statewill returnAssessmentRunState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstateAsString().- Returns:
- The state of the assessment run.
- See Also:
 
- 
stateAsStringThe state of the assessment run. If the service returns an enum value that is not available in the current SDK version, statewill returnAssessmentRunState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstateAsString().- Returns:
- The state of the assessment run.
- See Also:
 
- 
durationInSecondsThe duration of the assessment run. - Returns:
- The duration of the assessment run.
 
- 
hasRulesPackageArnspublic final boolean hasRulesPackageArns()For responses, this returns true if the service returned a value for the RulesPackageArns 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.
- 
rulesPackageArnsThe 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.- Returns:
- The rules packages selected for the assessment run.
 
- 
hasUserAttributesForFindingspublic final boolean hasUserAttributesForFindings()For responses, this returns true if the service returned a value for the UserAttributesForFindings 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.
- 
userAttributesForFindingsThe 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.- Returns:
- The user-defined attributes that are assigned to every generated finding.
 
- 
createdAtThe time when StartAssessmentRun was called. - Returns:
- The time when StartAssessmentRun was called.
 
- 
startedAtThe time when StartAssessmentRun was called. - Returns:
- The time when StartAssessmentRun was called.
 
- 
completedAtThe assessment run completion time that corresponds to the rules packages evaluation completion time or failure. - Returns:
- The assessment run completion time that corresponds to the rules packages evaluation completion time or failure.
 
- 
stateChangedAtThe last time when the assessment run's state changed. - Returns:
- The last time when the assessment run's state changed.
 
- 
dataCollectedA Boolean value (true or false) that specifies whether the process of collecting data from the agents is completed. - Returns:
- A Boolean value (true or false) that specifies whether the process of collecting data from the agents is completed.
 
- 
hasStateChangespublic final boolean hasStateChanges()For responses, this returns true if the service returned a value for the StateChanges 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.
- 
stateChangesA 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.- Returns:
- A list of the assessment run state changes.
 
- 
hasNotificationspublic final boolean hasNotifications()For responses, this returns true if the service returned a value for the Notifications 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.
- 
notificationsA 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.- Returns:
- A list of notifications for the event subscriptions. A notification about a particular generated finding is added to this list only once.
 
- 
findingCountsProvides 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.- Returns:
- Provides a total count of generated findings per severity.
 
- 
hasFindingCountspublic final boolean hasFindingCounts()For responses, this returns true if the service returned a value for the FindingCounts 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.
- 
findingCountsAsStringsProvides 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.- Returns:
- Provides a total count of generated findings per severity.
 
- 
toBuilderDescription copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
- toBuilderin interface- ToCopyableBuilder<AssessmentRun.Builder,- AssessmentRun> 
- Returns:
- a builder for type T
 
- 
builder
- 
serializableBuilderClass
- 
hashCode
- 
equals
- 
equalsBySdkFieldsDescription 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 interface- SdkPojo
- 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
- 
sdkFieldNameToField- Specified by:
- sdkFieldNameToFieldin interface- SdkPojo
- Returns:
- The mapping between the field name and its corresponding field.
 
 
-