public static interface AssessmentRun.Builder extends SdkPojo, CopyableBuilder<AssessmentRun.Builder,AssessmentRun>
| Modifier and Type | Method and Description |
|---|---|
AssessmentRun.Builder |
arn(String arn)
The ARN of the assessment run.
|
AssessmentRun.Builder |
assessmentTemplateArn(String assessmentTemplateArn)
The ARN of the assessment template that is associated with the assessment run.
|
AssessmentRun.Builder |
completedAt(Instant completedAt)
The assessment run completion time that corresponds to the rules packages evaluation completion time or
failure.
|
AssessmentRun.Builder |
createdAt(Instant createdAt)
The time when StartAssessmentRun was called.
|
AssessmentRun.Builder |
dataCollected(Boolean dataCollected)
A Boolean value (true or false) that specifies whether the process of collecting data from the agents is
completed.
|
AssessmentRun.Builder |
durationInSeconds(Integer durationInSeconds)
The duration of the assessment run.
|
AssessmentRun.Builder |
findingCounts(Map<Severity,Integer> findingCounts)
Provides a total count of generated findings per severity.
|
AssessmentRun.Builder |
findingCountsWithStrings(Map<String,Integer> findingCounts)
Provides a total count of generated findings per severity.
|
AssessmentRun.Builder |
name(String name)
The auto-generated name for the assessment run.
|
AssessmentRun.Builder |
notifications(AssessmentRunNotification... notifications)
A list of notifications for the event subscriptions.
|
AssessmentRun.Builder |
notifications(Collection<AssessmentRunNotification> notifications)
A list of notifications for the event subscriptions.
|
AssessmentRun.Builder |
notifications(Consumer<AssessmentRunNotification.Builder>... notifications)
A list of notifications for the event subscriptions.
|
AssessmentRun.Builder |
rulesPackageArns(Collection<String> rulesPackageArns)
The rules packages selected for the assessment run.
|
AssessmentRun.Builder |
rulesPackageArns(String... rulesPackageArns)
The rules packages selected for the assessment run.
|
AssessmentRun.Builder |
startedAt(Instant startedAt)
The time when StartAssessmentRun was called.
|
AssessmentRun.Builder |
state(AssessmentRunState state)
The state of the assessment run.
|
AssessmentRun.Builder |
state(String state)
The state of the assessment run.
|
AssessmentRun.Builder |
stateChangedAt(Instant stateChangedAt)
The last time when the assessment run's state changed.
|
AssessmentRun.Builder |
stateChanges(AssessmentRunStateChange... stateChanges)
A list of the assessment run state changes.
|
AssessmentRun.Builder |
stateChanges(Collection<AssessmentRunStateChange> stateChanges)
A list of the assessment run state changes.
|
AssessmentRun.Builder |
stateChanges(Consumer<AssessmentRunStateChange.Builder>... stateChanges)
A list of the assessment run state changes.
|
AssessmentRun.Builder |
userAttributesForFindings(Attribute... userAttributesForFindings)
The user-defined attributes that are assigned to every generated finding.
|
AssessmentRun.Builder |
userAttributesForFindings(Collection<Attribute> userAttributesForFindings)
The user-defined attributes that are assigned to every generated finding.
|
AssessmentRun.Builder |
userAttributesForFindings(Consumer<Attribute.Builder>... userAttributesForFindings)
The user-defined attributes that are assigned to every generated finding.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildAssessmentRun.Builder arn(String arn)
The ARN of the assessment run.
arn - The ARN of the assessment run.AssessmentRun.Builder name(String name)
The auto-generated name for the assessment run.
name - The auto-generated name for the assessment run.AssessmentRun.Builder assessmentTemplateArn(String assessmentTemplateArn)
The ARN of the assessment template that is associated with the assessment run.
assessmentTemplateArn - The ARN of the assessment template that is associated with the assessment run.AssessmentRun.Builder state(String state)
The state of the assessment run.
state - The state of the assessment run.AssessmentRunState,
AssessmentRunStateAssessmentRun.Builder state(AssessmentRunState state)
The state of the assessment run.
state - The state of the assessment run.AssessmentRunState,
AssessmentRunStateAssessmentRun.Builder durationInSeconds(Integer durationInSeconds)
The duration of the assessment run.
durationInSeconds - The duration of the assessment run.AssessmentRun.Builder rulesPackageArns(Collection<String> rulesPackageArns)
The rules packages selected for the assessment run.
rulesPackageArns - The rules packages selected for the assessment run.AssessmentRun.Builder rulesPackageArns(String... rulesPackageArns)
The rules packages selected for the assessment run.
rulesPackageArns - The rules packages selected for the assessment run.AssessmentRun.Builder userAttributesForFindings(Collection<Attribute> userAttributesForFindings)
The user-defined attributes that are assigned to every generated finding.
userAttributesForFindings - The user-defined attributes that are assigned to every generated finding.AssessmentRun.Builder userAttributesForFindings(Attribute... userAttributesForFindings)
The user-defined attributes that are assigned to every generated finding.
userAttributesForFindings - The user-defined attributes that are assigned to every generated finding.AssessmentRun.Builder userAttributesForFindings(Consumer<Attribute.Builder>... userAttributesForFindings)
The user-defined attributes that are assigned to every generated finding.
This is a convenience method that creates an instance of theAttribute.Builder avoiding the need to create one
manually via Attribute.builder().
When the Consumer completes,
SdkBuilder.build() is called immediately and
its result is passed to #userAttributesForFindings(List.
userAttributesForFindings - a consumer that will call methods on
Attribute.Builder#userAttributesForFindings(java.util.Collection) AssessmentRun.Builder createdAt(Instant createdAt)
The time when StartAssessmentRun was called.
createdAt - The time when StartAssessmentRun was called.AssessmentRun.Builder startedAt(Instant startedAt)
The time when StartAssessmentRun was called.
startedAt - The time when StartAssessmentRun was called.AssessmentRun.Builder completedAt(Instant completedAt)
The assessment run completion time that corresponds to the rules packages evaluation completion time or failure.
completedAt - The assessment run completion time that corresponds to the rules packages evaluation completion time
or failure.AssessmentRun.Builder stateChangedAt(Instant stateChangedAt)
The last time when the assessment run's state changed.
stateChangedAt - The last time when the assessment run's state changed.AssessmentRun.Builder dataCollected(Boolean dataCollected)
A Boolean value (true or false) that specifies whether the process of collecting data from the agents is completed.
dataCollected - A Boolean value (true or false) that specifies whether the process of collecting data from the agents
is completed.AssessmentRun.Builder stateChanges(Collection<AssessmentRunStateChange> stateChanges)
A list of the assessment run state changes.
stateChanges - A list of the assessment run state changes.AssessmentRun.Builder stateChanges(AssessmentRunStateChange... stateChanges)
A list of the assessment run state changes.
stateChanges - A list of the assessment run state changes.AssessmentRun.Builder stateChanges(Consumer<AssessmentRunStateChange.Builder>... stateChanges)
A list of the assessment run state changes.
This is a convenience method that creates an instance of theAssessmentRunStateChange.Builder avoiding the need to
create one manually via
AssessmentRunStateChange.builder().
When the Consumer completes,
SdkBuilder.build() is called
immediately and its result is passed to #stateChanges(List.
stateChanges - a consumer that will call methods on
AssessmentRunStateChange.Builder#stateChanges(java.util.Collection) AssessmentRun.Builder notifications(Collection<AssessmentRunNotification> notifications)
A list of notifications for the event subscriptions. A notification about a particular generated finding is added to this list only once.
notifications - A list of notifications for the event subscriptions. A notification about a particular generated
finding is added to this list only once.AssessmentRun.Builder notifications(AssessmentRunNotification... notifications)
A list of notifications for the event subscriptions. A notification about a particular generated finding is added to this list only once.
notifications - A list of notifications for the event subscriptions. A notification about a particular generated
finding is added to this list only once.AssessmentRun.Builder notifications(Consumer<AssessmentRunNotification.Builder>... notifications)
A list of notifications for the event subscriptions. A notification about a particular generated finding is added to this list only once.
This is a convenience method that creates an instance of theAssessmentRunNotification.Builder avoiding the need
to create one manually via
AssessmentRunNotification.builder().
When the Consumer completes,
SdkBuilder.build() is called
immediately and its result is passed to #notifications(List.
notifications - a consumer that will call methods on
AssessmentRunNotification.Builder#notifications(java.util.Collection) AssessmentRun.Builder findingCountsWithStrings(Map<String,Integer> findingCounts)
Provides a total count of generated findings per severity.
findingCounts - Provides a total count of generated findings per severity.AssessmentRun.Builder findingCounts(Map<Severity,Integer> findingCounts)
Provides a total count of generated findings per severity.
findingCounts - Provides a total count of generated findings per severity.Copyright © 2023. All rights reserved.