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