@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AssessmentRun extends Object implements Serializable, Cloneable, StructuredPojo
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.
Constructor and Description |
---|
AssessmentRun() |
Modifier and Type | Method and Description |
---|---|
AssessmentRun |
addFindingCountsEntry(String key,
Integer value) |
AssessmentRun |
clearFindingCountsEntries()
Removes all the entries added into FindingCounts.
|
AssessmentRun |
clone() |
boolean |
equals(Object obj) |
String |
getArn()
The ARN of the assessment run.
|
String |
getAssessmentTemplateArn()
The ARN of the assessment template that is associated with the assessment run.
|
Date |
getCompletedAt()
The assessment run completion time that corresponds to the rules packages evaluation completion time or failure.
|
Date |
getCreatedAt()
The time when StartAssessmentRun was called.
|
Boolean |
getDataCollected()
A Boolean value (true or false) that specifies whether the process of collecting data from the agents is
completed.
|
Integer |
getDurationInSeconds()
The duration of the assessment run.
|
Map<String,Integer> |
getFindingCounts()
Provides a total count of generated findings per severity.
|
String |
getName()
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.
|
Date |
getStartedAt()
The time when StartAssessmentRun was called.
|
String |
getState()
The state of the assessment run.
|
Date |
getStateChangedAt()
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.
|
int |
hashCode() |
Boolean |
isDataCollected()
A Boolean value (true or false) that specifies whether the process of collecting data from the agents is
completed.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setArn(String arn)
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 |
setFindingCounts(Map<String,Integer> findingCounts)
Provides a total count of generated findings per severity.
|
void |
setName(String name)
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 |
setState(String state)
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.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
AssessmentRun |
withArn(String arn)
The ARN of the assessment run.
|
AssessmentRun |
withAssessmentTemplateArn(String assessmentTemplateArn)
The ARN of the assessment template that is associated with the assessment run.
|
AssessmentRun |
withCompletedAt(Date completedAt)
The assessment run completion time that corresponds to the rules packages evaluation completion time or failure.
|
AssessmentRun |
withCreatedAt(Date createdAt)
The time when StartAssessmentRun was called.
|
AssessmentRun |
withDataCollected(Boolean dataCollected)
A Boolean value (true or false) that specifies whether the process of collecting data from the agents is
completed.
|
AssessmentRun |
withDurationInSeconds(Integer durationInSeconds)
The duration of the assessment run.
|
AssessmentRun |
withFindingCounts(Map<String,Integer> findingCounts)
Provides a total count of generated findings per severity.
|
AssessmentRun |
withName(String name)
The auto-generated name for the assessment run.
|
AssessmentRun |
withNotifications(AssessmentRunNotification... notifications)
A list of notifications for the event subscriptions.
|
AssessmentRun |
withNotifications(Collection<AssessmentRunNotification> notifications)
A list of notifications for the event subscriptions.
|
AssessmentRun |
withRulesPackageArns(Collection<String> rulesPackageArns)
The rules packages selected for the assessment run.
|
AssessmentRun |
withRulesPackageArns(String... rulesPackageArns)
The rules packages selected for the assessment run.
|
AssessmentRun |
withStartedAt(Date startedAt)
The time when StartAssessmentRun was called.
|
AssessmentRun |
withState(AssessmentRunState state)
The state of the assessment run.
|
AssessmentRun |
withState(String state)
The state of the assessment run.
|
AssessmentRun |
withStateChangedAt(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(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(Collection<Attribute> userAttributesForFindings)
The user-defined attributes that are assigned to every generated finding.
|
public void setArn(String arn)
The ARN of the assessment run.
arn
- The ARN of the assessment run.public String getArn()
The ARN of the assessment run.
public AssessmentRun withArn(String arn)
The ARN of the assessment run.
arn
- The ARN of the assessment run.public void setName(String name)
The auto-generated name for the assessment run.
name
- The auto-generated name for the assessment run.public String getName()
The auto-generated name for the assessment run.
public AssessmentRun withName(String name)
The auto-generated name for the assessment run.
name
- The auto-generated name for the assessment run.public void setAssessmentTemplateArn(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 String getAssessmentTemplateArn()
The ARN of the assessment template that is associated with the assessment run.
public AssessmentRun withAssessmentTemplateArn(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(String state)
The state of the assessment run.
state
- The state of the assessment run.AssessmentRunState
public String getState()
The state of the assessment run.
AssessmentRunState
public AssessmentRun withState(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(Integer durationInSeconds)
The duration of the assessment run.
durationInSeconds
- The duration of the assessment run.public Integer getDurationInSeconds()
The duration of the assessment run.
public AssessmentRun withDurationInSeconds(Integer durationInSeconds)
The duration of the assessment run.
durationInSeconds
- The duration of the assessment run.public List<String> getRulesPackageArns()
The rules packages selected for the assessment run.
public void setRulesPackageArns(Collection<String> rulesPackageArns)
The rules packages selected for the assessment run.
rulesPackageArns
- The rules packages selected for the assessment run.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)
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(Collection<String> rulesPackageArns)
The rules packages selected for the assessment run.
rulesPackageArns
- The rules packages selected for the assessment run.public List<Attribute> getUserAttributesForFindings()
The user-defined attributes that are assigned to every generated finding.
public void setUserAttributesForFindings(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(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(Date createdAt)
The time when StartAssessmentRun was called.
createdAt
- The time when StartAssessmentRun was called.public Date getCreatedAt()
The time when StartAssessmentRun was called.
public AssessmentRun withCreatedAt(Date createdAt)
The time when StartAssessmentRun was called.
createdAt
- The time when StartAssessmentRun was called.public void setStartedAt(Date startedAt)
The time when StartAssessmentRun was called.
startedAt
- The time when StartAssessmentRun was called.public Date getStartedAt()
The time when StartAssessmentRun was called.
public AssessmentRun withStartedAt(Date startedAt)
The time when StartAssessmentRun was called.
startedAt
- The time when StartAssessmentRun was called.public void setCompletedAt(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 Date getCompletedAt()
The assessment run completion time that corresponds to the rules packages evaluation completion time or failure.
public AssessmentRun withCompletedAt(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(Date stateChangedAt)
The last time when the assessment run's state changed.
stateChangedAt
- The last time when the assessment run's state changed.public Date getStateChangedAt()
The last time when the assessment run's state changed.
public AssessmentRun withStateChangedAt(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(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 Boolean getDataCollected()
A Boolean value (true or false) that specifies whether the process of collecting data from the agents is completed.
public AssessmentRun withDataCollected(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 Boolean isDataCollected()
A Boolean value (true or false) that specifies whether the process of collecting data from the agents is completed.
public List<AssessmentRunStateChange> getStateChanges()
A list of the assessment run state changes.
public void setStateChanges(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(Collection<AssessmentRunStateChange> stateChanges)
A list of the assessment run state changes.
stateChanges
- A list of the assessment run state changes.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.
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.
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(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 Map<String,Integer> getFindingCounts()
Provides a total count of generated findings per severity.
public void setFindingCounts(Map<String,Integer> findingCounts)
Provides a total count of generated findings per severity.
findingCounts
- Provides a total count of generated findings per severity.public AssessmentRun withFindingCounts(Map<String,Integer> findingCounts)
Provides a total count of generated findings per severity.
findingCounts
- Provides a total count of generated findings per severity.public AssessmentRun addFindingCountsEntry(String key, Integer value)
public AssessmentRun clearFindingCountsEntries()
public String toString()
toString
in class Object
Object.toString()
public AssessmentRun clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.