Class AssessmentRun
- java.lang.Object
-
- com.amazonaws.services.inspector.model.AssessmentRun
-
- All Implemented Interfaces:
Serializable,Cloneable
public class AssessmentRun extends Object implements 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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AssessmentRun()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AssessmentRunclone()booleanequals(Object obj)StringgetArn()The ARN of the assessment run.StringgetAssessmentTemplateArn()The ARN of the assessment template that is associated with the assessment run.DategetCompletedAt()The assessment run completion time that corresponds to the rules packages evaluation completion time or failure.DategetCreatedAt()The time when StartAssessmentRun was called.BooleangetDataCollected()A Boolean value (true or false) that specifies whether the process of collecting data from the agents is completed.IntegergetDurationInSeconds()The duration of the assessment run.StringgetName()The auto-generated name for the assessment run.List<AssessmentRunNotification>getNotifications()A list of notifications for the event subscriptions.List<String>getRulesPackageArns()The rules packages selected for the assessment run.DategetStartedAt()The time when StartAssessmentRun was called.StringgetState()The state of the assessment run.DategetStateChangedAt()The last time when the assessment run's state changed.List<AssessmentRunStateChange>getStateChanges()A list of the assessment run state changes.List<Attribute>getUserAttributesForFindings()The user-defined attributes that are assigned to every generated finding.inthashCode()BooleanisDataCollected()A Boolean value (true or false) that specifies whether the process of collecting data from the agents is completed.voidsetArn(String arn)The ARN of the assessment run.voidsetAssessmentTemplateArn(String assessmentTemplateArn)The ARN of the assessment template that is associated with the assessment run.voidsetCompletedAt(Date completedAt)The assessment run completion time that corresponds to the rules packages evaluation completion time or failure.voidsetCreatedAt(Date createdAt)The time when StartAssessmentRun was called.voidsetDataCollected(Boolean dataCollected)A Boolean value (true or false) that specifies whether the process of collecting data from the agents is completed.voidsetDurationInSeconds(Integer durationInSeconds)The duration of the assessment run.voidsetName(String name)The auto-generated name for the assessment run.voidsetNotifications(Collection<AssessmentRunNotification> notifications)A list of notifications for the event subscriptions.voidsetRulesPackageArns(Collection<String> rulesPackageArns)The rules packages selected for the assessment run.voidsetStartedAt(Date startedAt)The time when StartAssessmentRun was called.voidsetState(AssessmentRunState state)The state of the assessment run.voidsetState(String state)The state of the assessment run.voidsetStateChangedAt(Date stateChangedAt)The last time when the assessment run's state changed.voidsetStateChanges(Collection<AssessmentRunStateChange> stateChanges)A list of the assessment run state changes.voidsetUserAttributesForFindings(Collection<Attribute> userAttributesForFindings)The user-defined attributes that are assigned to every generated finding.StringtoString()Returns a string representation of this object; useful for testing and debugging.AssessmentRunwithArn(String arn)The ARN of the assessment run.AssessmentRunwithAssessmentTemplateArn(String assessmentTemplateArn)The ARN of the assessment template that is associated with the assessment run.AssessmentRunwithCompletedAt(Date completedAt)The assessment run completion time that corresponds to the rules packages evaluation completion time or failure.AssessmentRunwithCreatedAt(Date createdAt)The time when StartAssessmentRun was called.AssessmentRunwithDataCollected(Boolean dataCollected)A Boolean value (true or false) that specifies whether the process of collecting data from the agents is completed.AssessmentRunwithDurationInSeconds(Integer durationInSeconds)The duration of the assessment run.AssessmentRunwithName(String name)The auto-generated name for the assessment run.AssessmentRunwithNotifications(AssessmentRunNotification... notifications)A list of notifications for the event subscriptions.AssessmentRunwithNotifications(Collection<AssessmentRunNotification> notifications)A list of notifications for the event subscriptions.AssessmentRunwithRulesPackageArns(String... rulesPackageArns)The rules packages selected for the assessment run.AssessmentRunwithRulesPackageArns(Collection<String> rulesPackageArns)The rules packages selected for the assessment run.AssessmentRunwithStartedAt(Date startedAt)The time when StartAssessmentRun was called.AssessmentRunwithState(AssessmentRunState state)The state of the assessment run.AssessmentRunwithState(String state)The state of the assessment run.AssessmentRunwithStateChangedAt(Date stateChangedAt)The last time when the assessment run's state changed.AssessmentRunwithStateChanges(AssessmentRunStateChange... stateChanges)A list of the assessment run state changes.AssessmentRunwithStateChanges(Collection<AssessmentRunStateChange> stateChanges)A list of the assessment run state changes.AssessmentRunwithUserAttributesForFindings(Attribute... userAttributesForFindings)The user-defined attributes that are assigned to every generated finding.AssessmentRunwithUserAttributesForFindings(Collection<Attribute> userAttributesForFindings)The user-defined attributes that are assigned to every generated finding.
-
-
-
Method Detail
-
setArn
public void setArn(String arn)
The ARN of the assessment run.
- Parameters:
arn- The ARN of the assessment run.
-
getArn
public String getArn()
The ARN of the assessment run.
- Returns:
- The ARN of the assessment run.
-
withArn
public AssessmentRun withArn(String arn)
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
public void setName(String name)
The auto-generated name for the assessment run.
- Parameters:
name- The auto-generated name for the assessment run.
-
getName
public String getName()
The auto-generated name for the assessment run.
- Returns:
- The auto-generated name for the assessment run.
-
withName
public AssessmentRun withName(String name)
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
public void setAssessmentTemplateArn(String assessmentTemplateArn)
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
public String 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
public AssessmentRun withAssessmentTemplateArn(String assessmentTemplateArn)
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
public void setState(String state)
The state of the assessment run.
- Parameters:
state- The state of the assessment run.- See Also:
AssessmentRunState
-
getState
public String getState()
The state of the assessment run.
- Returns:
- The state of the assessment run.
- See Also:
AssessmentRunState
-
withState
public AssessmentRun withState(String state)
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:
AssessmentRunState
-
setState
public void setState(AssessmentRunState state)
The state of the assessment run.
- Parameters:
state- The state of the assessment run.- See Also:
AssessmentRunState
-
withState
public AssessmentRun withState(AssessmentRunState state)
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:
AssessmentRunState
-
setDurationInSeconds
public void setDurationInSeconds(Integer durationInSeconds)
The duration of the assessment run.
- Parameters:
durationInSeconds- The duration of the assessment run.
-
getDurationInSeconds
public Integer getDurationInSeconds()
The duration of the assessment run.
- Returns:
- The duration of the assessment run.
-
withDurationInSeconds
public AssessmentRun withDurationInSeconds(Integer durationInSeconds)
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
public List<String> getRulesPackageArns()
The rules packages selected for the assessment run.
- Returns:
- The rules packages selected for the assessment run.
-
setRulesPackageArns
public void setRulesPackageArns(Collection<String> rulesPackageArns)
The rules packages selected for the assessment run.
- Parameters:
rulesPackageArns- The rules packages selected for the assessment run.
-
withRulesPackageArns
public AssessmentRun withRulesPackageArns(String... rulesPackageArns)
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
public AssessmentRun withRulesPackageArns(Collection<String> rulesPackageArns)
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
public List<Attribute> 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
public void setUserAttributesForFindings(Collection<Attribute> userAttributesForFindings)
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
public AssessmentRun withUserAttributesForFindings(Attribute... userAttributesForFindings)
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
public AssessmentRun withUserAttributesForFindings(Collection<Attribute> userAttributesForFindings)
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
public void setCreatedAt(Date createdAt)
The time when StartAssessmentRun was called.
- Parameters:
createdAt- The time when StartAssessmentRun was called.
-
getCreatedAt
public Date getCreatedAt()
The time when StartAssessmentRun was called.
- Returns:
- The time when StartAssessmentRun was called.
-
withCreatedAt
public AssessmentRun withCreatedAt(Date createdAt)
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
public void setStartedAt(Date startedAt)
The time when StartAssessmentRun was called.
- Parameters:
startedAt- The time when StartAssessmentRun was called.
-
getStartedAt
public Date getStartedAt()
The time when StartAssessmentRun was called.
- Returns:
- The time when StartAssessmentRun was called.
-
withStartedAt
public AssessmentRun withStartedAt(Date startedAt)
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
public void setCompletedAt(Date completedAt)
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
public Date 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
public AssessmentRun withCompletedAt(Date completedAt)
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
public void setStateChangedAt(Date stateChangedAt)
The last time when the assessment run's state changed.
- Parameters:
stateChangedAt- The last time when the assessment run's state changed.
-
getStateChangedAt
public Date getStateChangedAt()
The last time when the assessment run's state changed.
- Returns:
- The last time when the assessment run's state changed.
-
withStateChangedAt
public AssessmentRun withStateChangedAt(Date stateChangedAt)
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
public void setDataCollected(Boolean dataCollected)
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
public Boolean 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
public AssessmentRun withDataCollected(Boolean dataCollected)
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
public Boolean 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
public List<AssessmentRunStateChange> getStateChanges()
A list of the assessment run state changes.
- Returns:
- A list of the assessment run state changes.
-
setStateChanges
public void setStateChanges(Collection<AssessmentRunStateChange> stateChanges)
A list of the assessment run state changes.
- Parameters:
stateChanges- A list of the assessment run state changes.
-
withStateChanges
public AssessmentRun withStateChanges(AssessmentRunStateChange... stateChanges)
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
public AssessmentRun withStateChanges(Collection<AssessmentRunStateChange> stateChanges)
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
public List<AssessmentRunNotification> 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
public void setNotifications(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.
- 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
public AssessmentRun withNotifications(AssessmentRunNotification... notifications)
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
public AssessmentRun withNotifications(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.
- 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
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public AssessmentRun clone()
-
-