public class Run extends Object implements Serializable, Cloneable
A snapshot of an Inspector assessment that contains the assessment's findings.
This data type is used as the response element in the DescribeRun action.
Constructor and Description |
---|
Run() |
Modifier and Type | Method and Description |
---|---|
Run |
clone() |
boolean |
equals(Object obj) |
String |
getAssessmentArn()
The ARN of the assessment that is associated with the run.
|
Date |
getCompletionTime()
Run completion time that corresponds to the rules packages evaluation
completion time or failure.
|
Date |
getCreationTime()
Run creation time that corresponds to the data collection completion time
or failure.
|
List<String> |
getRulesPackages()
Rules packages selected for the run of the assessment.
|
String |
getRunArn()
The ARN of the run.
|
String |
getRunName()
The auto-generated name for the run.
|
String |
getRunState()
The state of the run.
|
int |
hashCode() |
void |
setAssessmentArn(String assessmentArn)
The ARN of the assessment that is associated with the run.
|
void |
setCompletionTime(Date completionTime)
Run completion time that corresponds to the rules packages evaluation
completion time or failure.
|
void |
setCreationTime(Date creationTime)
Run creation time that corresponds to the data collection completion time
or failure.
|
void |
setRulesPackages(Collection<String> rulesPackages)
Rules packages selected for the run of the assessment.
|
void |
setRunArn(String runArn)
The ARN of the run.
|
void |
setRunName(String runName)
The auto-generated name for the run.
|
void |
setRunState(String runState)
The state of the run.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Run |
withAssessmentArn(String assessmentArn)
The ARN of the assessment that is associated with the run.
|
Run |
withCompletionTime(Date completionTime)
Run completion time that corresponds to the rules packages evaluation
completion time or failure.
|
Run |
withCreationTime(Date creationTime)
Run creation time that corresponds to the data collection completion time
or failure.
|
Run |
withRulesPackages(Collection<String> rulesPackages)
Rules packages selected for the run of the assessment.
|
Run |
withRulesPackages(String... rulesPackages)
Rules packages selected for the run of the assessment.
|
Run |
withRunArn(String runArn)
The ARN of the run.
|
Run |
withRunName(String runName)
The auto-generated name for the run.
|
Run |
withRunState(String runState)
The state of the run.
|
public void setRunArn(String runArn)
The ARN of the run.
runArn
- The ARN of the run.public String getRunArn()
The ARN of the run.
public Run withRunArn(String runArn)
The ARN of the run.
runArn
- The ARN of the run.public void setRunName(String runName)
The auto-generated name for the run.
runName
- The auto-generated name for the run.public String getRunName()
The auto-generated name for the run.
public Run withRunName(String runName)
The auto-generated name for the run.
runName
- The auto-generated name for the run.public void setAssessmentArn(String assessmentArn)
The ARN of the assessment that is associated with the run.
assessmentArn
- The ARN of the assessment that is associated with the run.public String getAssessmentArn()
The ARN of the assessment that is associated with the run.
public Run withAssessmentArn(String assessmentArn)
The ARN of the assessment that is associated with the run.
assessmentArn
- The ARN of the assessment that is associated with the run.public void setRunState(String runState)
The state of the run. Values can be set to DataCollectionComplete, EvaluatingPolicies, EvaluatingPoliciesErrorCanRetry, Completed, Failed, TombStoned.
runState
- The state of the run. Values can be set to
DataCollectionComplete, EvaluatingPolicies,
EvaluatingPoliciesErrorCanRetry, Completed,
Failed, TombStoned.public String getRunState()
The state of the run. Values can be set to DataCollectionComplete, EvaluatingPolicies, EvaluatingPoliciesErrorCanRetry, Completed, Failed, TombStoned.
public Run withRunState(String runState)
The state of the run. Values can be set to DataCollectionComplete, EvaluatingPolicies, EvaluatingPoliciesErrorCanRetry, Completed, Failed, TombStoned.
runState
- The state of the run. Values can be set to
DataCollectionComplete, EvaluatingPolicies,
EvaluatingPoliciesErrorCanRetry, Completed,
Failed, TombStoned.public List<String> getRulesPackages()
Rules packages selected for the run of the assessment.
public void setRulesPackages(Collection<String> rulesPackages)
Rules packages selected for the run of the assessment.
rulesPackages
- Rules packages selected for the run of the assessment.public Run withRulesPackages(String... rulesPackages)
Rules packages selected for the run of the assessment.
NOTE: This method appends the values to the existing list (if
any). Use setRulesPackages(java.util.Collection)
or
withRulesPackages(java.util.Collection)
if you want to override
the existing values.
rulesPackages
- Rules packages selected for the run of the assessment.public Run withRulesPackages(Collection<String> rulesPackages)
Rules packages selected for the run of the assessment.
rulesPackages
- Rules packages selected for the run of the assessment.public void setCreationTime(Date creationTime)
Run creation time that corresponds to the data collection completion time or failure.
creationTime
- Run creation time that corresponds to the data collection
completion time or failure.public Date getCreationTime()
Run creation time that corresponds to the data collection completion time or failure.
public Run withCreationTime(Date creationTime)
Run creation time that corresponds to the data collection completion time or failure.
creationTime
- Run creation time that corresponds to the data collection
completion time or failure.public void setCompletionTime(Date completionTime)
Run completion time that corresponds to the rules packages evaluation completion time or failure.
completionTime
- Run completion time that corresponds to the rules packages
evaluation completion time or failure.public Date getCompletionTime()
Run completion time that corresponds to the rules packages evaluation completion time or failure.
public Run withCompletionTime(Date completionTime)
Run completion time that corresponds to the rules packages evaluation completion time or failure.
completionTime
- Run completion time that corresponds to the rules packages
evaluation completion time or failure.public String toString()
toString
in class Object
Object.toString()
Copyright © 2015. All rights reserved.