Class AssessmentRun
- All Implemented Interfaces:
Serializable
,Cloneable
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:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
getArn()
The ARN of the assessment run.The ARN of the assessment template that is associated with the assessment run.The assessment run completion time that corresponds to the rules packages evaluation completion time or failure.The time when StartAssessmentRun was called.A Boolean value (true or false) that specifies whether the process of collecting data from the agents is completed.The duration of the assessment run.getName()
The auto-generated name for the assessment run.A list of notifications for the event subscriptions.The rules packages selected for the assessment run.The time when StartAssessmentRun was called.getState()
The state of the assessment run.The last time when the assessment run's state changed.A list of the assessment run state changes.The user-defined attributes that are assigned to every generated finding.int
hashCode()
A Boolean value (true or false) that specifies whether the process of collecting data from the agents is completed.void
The ARN of the assessment run.void
setAssessmentTemplateArn
(String assessmentTemplateArn) The ARN of the assessment template that is associated with the assessment run.void
setCompletedAt
(Date completedAt) The assessment run completion time that corresponds to the rules packages evaluation completion time or failure.void
setCreatedAt
(Date createdAt) The time when StartAssessmentRun was called.void
setDataCollected
(Boolean dataCollected) A Boolean value (true or false) that specifies whether the process of collecting data from the agents is completed.void
setDurationInSeconds
(Integer durationInSeconds) The duration of the assessment run.void
The auto-generated name for the assessment run.void
setNotifications
(Collection<AssessmentRunNotification> notifications) A list of notifications for the event subscriptions.void
setRulesPackageArns
(Collection<String> rulesPackageArns) The rules packages selected for the assessment run.void
setStartedAt
(Date startedAt) The time when StartAssessmentRun was called.void
setState
(AssessmentRunState state) The state of the assessment run.void
The state of the assessment run.void
setStateChangedAt
(Date stateChangedAt) The last time when the assessment run's state changed.void
setStateChanges
(Collection<AssessmentRunStateChange> stateChanges) A list of the assessment run state changes.void
setUserAttributesForFindings
(Collection<Attribute> userAttributesForFindings) The user-defined attributes that are assigned to every generated finding.toString()
Returns a string representation of this object; useful for testing and debugging.The ARN of the assessment run.withAssessmentTemplateArn
(String assessmentTemplateArn) The ARN of the assessment template that is associated with the assessment run.withCompletedAt
(Date completedAt) The assessment run completion time that corresponds to the rules packages evaluation completion time or failure.withCreatedAt
(Date createdAt) The time when StartAssessmentRun was called.withDataCollected
(Boolean dataCollected) A Boolean value (true or false) that specifies whether the process of collecting data from the agents is completed.withDurationInSeconds
(Integer durationInSeconds) The duration of the assessment run.The auto-generated name for the assessment run.withNotifications
(AssessmentRunNotification... notifications) A list of notifications for the event subscriptions.withNotifications
(Collection<AssessmentRunNotification> notifications) A list of notifications for the event subscriptions.withRulesPackageArns
(String... rulesPackageArns) The rules packages selected for the assessment run.withRulesPackageArns
(Collection<String> rulesPackageArns) The rules packages selected for the assessment run.withStartedAt
(Date startedAt) The time when StartAssessmentRun was called.withState
(AssessmentRunState state) The state of the assessment run.The state of the assessment run.withStateChangedAt
(Date stateChangedAt) The last time when the assessment run's state changed.withStateChanges
(AssessmentRunStateChange... stateChanges) A list of the assessment run state changes.withStateChanges
(Collection<AssessmentRunStateChange> stateChanges) A list of the assessment run state changes.withUserAttributesForFindings
(Attribute... userAttributesForFindings) The user-defined attributes that are assigned to every generated finding.withUserAttributesForFindings
(Collection<Attribute> userAttributesForFindings) The user-defined attributes that are assigned to every generated finding.
-
Constructor Details
-
AssessmentRun
public AssessmentRun()
-
-
Method Details
-
setArn
The ARN of the assessment run.
- Parameters:
arn
- The ARN of the assessment run.
-
getArn
The ARN of the assessment run.
- Returns:
- The ARN of the assessment run.
-
withArn
The ARN of the assessment run.
- Parameters:
arn
- The ARN of the assessment run.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setName
The auto-generated name for the assessment run.
- Parameters:
name
- The auto-generated name for the assessment run.
-
getName
The auto-generated name for the assessment run.
- Returns:
- The auto-generated name for the assessment run.
-
withName
The auto-generated name for the assessment run.
- Parameters:
name
- The auto-generated name for the assessment run.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setAssessmentTemplateArn
The ARN of the assessment template that is associated with the assessment run.
- Parameters:
assessmentTemplateArn
- The ARN of the assessment template that is associated with the assessment run.
-
getAssessmentTemplateArn
The 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.
-
withAssessmentTemplateArn
The ARN of the assessment template that is associated with the assessment run.
- Parameters:
assessmentTemplateArn
- The ARN of the assessment template that is associated with the assessment run.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setState
The state of the assessment run.
- Parameters:
state
- The state of the assessment run.- See Also:
-
getState
The state of the assessment run.
- Returns:
- The state of the assessment run.
- See Also:
-
withState
The state of the assessment run.
- Parameters:
state
- The state of the assessment run.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setState
The state of the assessment run.
- Parameters:
state
- The state of the assessment run.- See Also:
-
withState
The state of the assessment run.
- Parameters:
state
- The state of the assessment run.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setDurationInSeconds
The duration of the assessment run.
- Parameters:
durationInSeconds
- The duration of the assessment run.
-
getDurationInSeconds
The duration of the assessment run.
- Returns:
- The duration of the assessment run.
-
withDurationInSeconds
The duration of the assessment run.
- Parameters:
durationInSeconds
- The duration of the assessment run.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getRulesPackageArns
The rules packages selected for the assessment run.
- Returns:
- The rules packages selected for the assessment run.
-
setRulesPackageArns
The rules packages selected for the assessment run.
- Parameters:
rulesPackageArns
- The rules packages selected for the assessment run.
-
withRulesPackageArns
The rules packages selected for the assessment run.
NOTE: This method appends the values to the existing list (if any). Use
setRulesPackageArns(java.util.Collection)
orwithRulesPackageArns(java.util.Collection)
if you want to override the existing values.- Parameters:
rulesPackageArns
- The rules packages selected for the assessment run.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withRulesPackageArns
The rules packages selected for the assessment run.
- Parameters:
rulesPackageArns
- The rules packages selected for the assessment run.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getUserAttributesForFindings
The user-defined attributes that are assigned to every generated finding.
- Returns:
- The user-defined attributes that are assigned to every generated finding.
-
setUserAttributesForFindings
The user-defined attributes that are assigned to every generated finding.
- Parameters:
userAttributesForFindings
- The user-defined attributes that are assigned to every generated finding.
-
withUserAttributesForFindings
The user-defined attributes that are assigned to every generated finding.
NOTE: This method appends the values to the existing list (if any). Use
setUserAttributesForFindings(java.util.Collection)
orwithUserAttributesForFindings(java.util.Collection)
if you want to override the existing values.- Parameters:
userAttributesForFindings
- The user-defined attributes that are assigned to every generated finding.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withUserAttributesForFindings
The user-defined attributes that are assigned to every generated finding.
- Parameters:
userAttributesForFindings
- The user-defined attributes that are assigned to every generated finding.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setCreatedAt
The time when StartAssessmentRun was called.
- Parameters:
createdAt
- The time when StartAssessmentRun was called.
-
getCreatedAt
The time when StartAssessmentRun was called.
- Returns:
- The time when StartAssessmentRun was called.
-
withCreatedAt
The time when StartAssessmentRun was called.
- Parameters:
createdAt
- The time when StartAssessmentRun was called.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setStartedAt
The time when StartAssessmentRun was called.
- Parameters:
startedAt
- The time when StartAssessmentRun was called.
-
getStartedAt
The time when StartAssessmentRun was called.
- Returns:
- The time when StartAssessmentRun was called.
-
withStartedAt
The time when StartAssessmentRun was called.
- Parameters:
startedAt
- The time when StartAssessmentRun was called.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setCompletedAt
The assessment run completion time that corresponds to the rules packages evaluation completion time or failure.
- Parameters:
completedAt
- The assessment run completion time that corresponds to the rules packages evaluation completion time or failure.
-
getCompletedAt
The 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.
-
withCompletedAt
The assessment run completion time that corresponds to the rules packages evaluation completion time or failure.
- Parameters:
completedAt
- The assessment run completion time that corresponds to the rules packages evaluation completion time or failure.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setStateChangedAt
The last time when the assessment run's state changed.
- Parameters:
stateChangedAt
- The last time when the assessment run's state changed.
-
getStateChangedAt
The last time when the assessment run's state changed.
- Returns:
- The last time when the assessment run's state changed.
-
withStateChangedAt
The last time when the assessment run's state changed.
- Parameters:
stateChangedAt
- The last time when the assessment run's state changed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDataCollected
A Boolean value (true or false) that specifies whether the process of collecting data from the agents is completed.
- Parameters:
dataCollected
- A Boolean value (true or false) that specifies whether the process of collecting data from the agents is completed.
-
getDataCollected
A 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.
-
withDataCollected
A Boolean value (true or false) that specifies whether the process of collecting data from the agents is completed.
- Parameters:
dataCollected
- A Boolean value (true or false) that specifies whether the process of collecting data from the agents is completed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isDataCollected
A 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.
-
getStateChanges
A list of the assessment run state changes.
- Returns:
- A list of the assessment run state changes.
-
setStateChanges
A list of the assessment run state changes.
- Parameters:
stateChanges
- A list of the assessment run state changes.
-
withStateChanges
A list of the assessment run state changes.
NOTE: This method appends the values to the existing list (if any). Use
setStateChanges(java.util.Collection)
orwithStateChanges(java.util.Collection)
if you want to override the existing values.- Parameters:
stateChanges
- A list of the assessment run state changes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withStateChanges
A list of the assessment run state changes.
- Parameters:
stateChanges
- A list of the assessment run state changes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getNotifications
A list of notifications for the event subscriptions. A notification about a particular generated finding is added to this list only once.
- Returns:
- A list of notifications for the event subscriptions. A notification about a particular generated finding is added to this list only once.
-
setNotifications
A list of notifications for the event subscriptions. A notification about a particular generated finding is added to this list only once.
- Parameters:
notifications
- A list of notifications for the event subscriptions. A notification about a particular generated finding is added to this list only once.
-
withNotifications
A list of notifications for the event subscriptions. A notification about a particular generated finding is added to this list only once.
NOTE: This method appends the values to the existing list (if any). Use
setNotifications(java.util.Collection)
orwithNotifications(java.util.Collection)
if you want to override the existing values.- Parameters:
notifications
- A list of notifications for the event subscriptions. A notification about a particular generated finding is added to this list only once.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withNotifications
A list of notifications for the event subscriptions. A notification about a particular generated finding is added to this list only once.
- Parameters:
notifications
- A list of notifications for the event subscriptions. A notification about a particular generated finding is added to this list only once.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-