@Generated(value="software.amazon.awssdk:codegen") public final class AssessmentRun extends Object implements StructuredPojo, 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) |
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) |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
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.
|
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()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
List<Attribute> |
userAttributesForFindings()
The user-defined attributes that are assigned to every generated finding.
|
copy
public String arn()
The ARN of the assessment run.
public String name()
The auto-generated name for the assessment run.
public String assessmentTemplateArn()
The ARN of the assessment template that is associated with the assessment run.
public 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()
.
AssessmentRunState
public 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()
.
AssessmentRunState
public Integer durationInSeconds()
The duration of the assessment run.
public 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.
public 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.
public Instant createdAt()
The time when StartAssessmentRun was called.
public Instant startedAt()
The time when StartAssessmentRun was called.
public Instant completedAt()
The assessment run completion time that corresponds to the rules packages evaluation completion time or failure.
public Instant stateChangedAt()
The last time when the assessment run's state changed.
public Boolean dataCollected()
A Boolean value (true or false) that specifies whether the process of collecting data from the agents is completed.
public 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.
public 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.
public 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.
public 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.
public AssessmentRun.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<AssessmentRun.Builder,AssessmentRun>
public static AssessmentRun.Builder builder()
public static Class<? extends AssessmentRun.Builder> serializableBuilderClass()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.