Class AssessmentRunFilter
- java.lang.Object
-
- com.amazonaws.services.inspector.model.AssessmentRunFilter
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class AssessmentRunFilter extends Object implements Serializable, Cloneable
Used as the request parameter in the ListAssessmentRuns action.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AssessmentRunFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AssessmentRunFilter
clone()
boolean
equals(Object obj)
TimestampRange
getCompletionTimeRange()
For a record to match a filter, the value that is specified for this data type property must inclusively match any value between the specified minimum and maximum values of the completedAt property of the AssessmentRun data type.DurationRange
getDurationRange()
For a record to match a filter, the value that is specified for this data type property must inclusively match any value between the specified minimum and maximum values of the durationInSeconds property of the AssessmentRun data type.String
getNamePattern()
For a record to match a filter, an explicit value or a string containing a wildcard that is specified for this data type property must match the value of the assessmentRunName property of the AssessmentRun data type.List<String>
getRulesPackageArns()
For a record to match a filter, the value that is specified for this data type property must be contained in the list of values of the rulesPackages property of the AssessmentRun data type.TimestampRange
getStartTimeRange()
For a record to match a filter, the value that is specified for this data type property must inclusively match any value between the specified minimum and maximum values of the startTime property of the AssessmentRun data type.TimestampRange
getStateChangeTimeRange()
For a record to match a filter, the value that is specified for this data type property must match the stateChangedAt property of the AssessmentRun data type.List<String>
getStates()
For a record to match a filter, one of the values specified for this data type property must be the exact match of the value of the assessmentRunState property of the AssessmentRun data type.int
hashCode()
void
setCompletionTimeRange(TimestampRange completionTimeRange)
For a record to match a filter, the value that is specified for this data type property must inclusively match any value between the specified minimum and maximum values of the completedAt property of the AssessmentRun data type.void
setDurationRange(DurationRange durationRange)
For a record to match a filter, the value that is specified for this data type property must inclusively match any value between the specified minimum and maximum values of the durationInSeconds property of the AssessmentRun data type.void
setNamePattern(String namePattern)
For a record to match a filter, an explicit value or a string containing a wildcard that is specified for this data type property must match the value of the assessmentRunName property of the AssessmentRun data type.void
setRulesPackageArns(Collection<String> rulesPackageArns)
For a record to match a filter, the value that is specified for this data type property must be contained in the list of values of the rulesPackages property of the AssessmentRun data type.void
setStartTimeRange(TimestampRange startTimeRange)
For a record to match a filter, the value that is specified for this data type property must inclusively match any value between the specified minimum and maximum values of the startTime property of the AssessmentRun data type.void
setStateChangeTimeRange(TimestampRange stateChangeTimeRange)
For a record to match a filter, the value that is specified for this data type property must match the stateChangedAt property of the AssessmentRun data type.void
setStates(Collection<String> states)
For a record to match a filter, one of the values specified for this data type property must be the exact match of the value of the assessmentRunState property of the AssessmentRun data type.String
toString()
Returns a string representation of this object; useful for testing and debugging.AssessmentRunFilter
withCompletionTimeRange(TimestampRange completionTimeRange)
For a record to match a filter, the value that is specified for this data type property must inclusively match any value between the specified minimum and maximum values of the completedAt property of the AssessmentRun data type.AssessmentRunFilter
withDurationRange(DurationRange durationRange)
For a record to match a filter, the value that is specified for this data type property must inclusively match any value between the specified minimum and maximum values of the durationInSeconds property of the AssessmentRun data type.AssessmentRunFilter
withNamePattern(String namePattern)
For a record to match a filter, an explicit value or a string containing a wildcard that is specified for this data type property must match the value of the assessmentRunName property of the AssessmentRun data type.AssessmentRunFilter
withRulesPackageArns(String... rulesPackageArns)
For a record to match a filter, the value that is specified for this data type property must be contained in the list of values of the rulesPackages property of the AssessmentRun data type.AssessmentRunFilter
withRulesPackageArns(Collection<String> rulesPackageArns)
For a record to match a filter, the value that is specified for this data type property must be contained in the list of values of the rulesPackages property of the AssessmentRun data type.AssessmentRunFilter
withStartTimeRange(TimestampRange startTimeRange)
For a record to match a filter, the value that is specified for this data type property must inclusively match any value between the specified minimum and maximum values of the startTime property of the AssessmentRun data type.AssessmentRunFilter
withStateChangeTimeRange(TimestampRange stateChangeTimeRange)
For a record to match a filter, the value that is specified for this data type property must match the stateChangedAt property of the AssessmentRun data type.AssessmentRunFilter
withStates(AssessmentRunState... states)
For a record to match a filter, one of the values specified for this data type property must be the exact match of the value of the assessmentRunState property of the AssessmentRun data type.AssessmentRunFilter
withStates(String... states)
For a record to match a filter, one of the values specified for this data type property must be the exact match of the value of the assessmentRunState property of the AssessmentRun data type.AssessmentRunFilter
withStates(Collection<String> states)
For a record to match a filter, one of the values specified for this data type property must be the exact match of the value of the assessmentRunState property of the AssessmentRun data type.
-
-
-
Method Detail
-
setNamePattern
public void setNamePattern(String namePattern)
For a record to match a filter, an explicit value or a string containing a wildcard that is specified for this data type property must match the value of the assessmentRunName property of the AssessmentRun data type.
- Parameters:
namePattern
- For a record to match a filter, an explicit value or a string containing a wildcard that is specified for this data type property must match the value of the assessmentRunName property of the AssessmentRun data type.
-
getNamePattern
public String getNamePattern()
For a record to match a filter, an explicit value or a string containing a wildcard that is specified for this data type property must match the value of the assessmentRunName property of the AssessmentRun data type.
- Returns:
- For a record to match a filter, an explicit value or a string containing a wildcard that is specified for this data type property must match the value of the assessmentRunName property of the AssessmentRun data type.
-
withNamePattern
public AssessmentRunFilter withNamePattern(String namePattern)
For a record to match a filter, an explicit value or a string containing a wildcard that is specified for this data type property must match the value of the assessmentRunName property of the AssessmentRun data type.
- Parameters:
namePattern
- For a record to match a filter, an explicit value or a string containing a wildcard that is specified for this data type property must match the value of the assessmentRunName property of the AssessmentRun data type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getStates
public List<String> getStates()
For a record to match a filter, one of the values specified for this data type property must be the exact match of the value of the assessmentRunState property of the AssessmentRun data type.
- Returns:
- For a record to match a filter, one of the values specified for this data type property must be the exact match of the value of the assessmentRunState property of the AssessmentRun data type.
- See Also:
AssessmentRunState
-
setStates
public void setStates(Collection<String> states)
For a record to match a filter, one of the values specified for this data type property must be the exact match of the value of the assessmentRunState property of the AssessmentRun data type.
- Parameters:
states
- For a record to match a filter, one of the values specified for this data type property must be the exact match of the value of the assessmentRunState property of the AssessmentRun data type.- See Also:
AssessmentRunState
-
withStates
public AssessmentRunFilter withStates(String... states)
For a record to match a filter, one of the values specified for this data type property must be the exact match of the value of the assessmentRunState property of the AssessmentRun data type.
NOTE: This method appends the values to the existing list (if any). Use
setStates(java.util.Collection)
orwithStates(java.util.Collection)
if you want to override the existing values.- Parameters:
states
- For a record to match a filter, one of the values specified for this data type property must be the exact match of the value of the assessmentRunState property of the AssessmentRun data type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
AssessmentRunState
-
withStates
public AssessmentRunFilter withStates(Collection<String> states)
For a record to match a filter, one of the values specified for this data type property must be the exact match of the value of the assessmentRunState property of the AssessmentRun data type.
- Parameters:
states
- For a record to match a filter, one of the values specified for this data type property must be the exact match of the value of the assessmentRunState property of the AssessmentRun data type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
AssessmentRunState
-
withStates
public AssessmentRunFilter withStates(AssessmentRunState... states)
For a record to match a filter, one of the values specified for this data type property must be the exact match of the value of the assessmentRunState property of the AssessmentRun data type.
- Parameters:
states
- For a record to match a filter, one of the values specified for this data type property must be the exact match of the value of the assessmentRunState property of the AssessmentRun data type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
AssessmentRunState
-
setDurationRange
public void setDurationRange(DurationRange durationRange)
For a record to match a filter, the value that is specified for this data type property must inclusively match any value between the specified minimum and maximum values of the durationInSeconds property of the AssessmentRun data type.
- Parameters:
durationRange
- For a record to match a filter, the value that is specified for this data type property must inclusively match any value between the specified minimum and maximum values of the durationInSeconds property of the AssessmentRun data type.
-
getDurationRange
public DurationRange getDurationRange()
For a record to match a filter, the value that is specified for this data type property must inclusively match any value between the specified minimum and maximum values of the durationInSeconds property of the AssessmentRun data type.
- Returns:
- For a record to match a filter, the value that is specified for this data type property must inclusively match any value between the specified minimum and maximum values of the durationInSeconds property of the AssessmentRun data type.
-
withDurationRange
public AssessmentRunFilter withDurationRange(DurationRange durationRange)
For a record to match a filter, the value that is specified for this data type property must inclusively match any value between the specified minimum and maximum values of the durationInSeconds property of the AssessmentRun data type.
- Parameters:
durationRange
- For a record to match a filter, the value that is specified for this data type property must inclusively match any value between the specified minimum and maximum values of the durationInSeconds property of the AssessmentRun data type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getRulesPackageArns
public List<String> getRulesPackageArns()
For a record to match a filter, the value that is specified for this data type property must be contained in the list of values of the rulesPackages property of the AssessmentRun data type.
- Returns:
- For a record to match a filter, the value that is specified for this data type property must be contained in the list of values of the rulesPackages property of the AssessmentRun data type.
-
setRulesPackageArns
public void setRulesPackageArns(Collection<String> rulesPackageArns)
For a record to match a filter, the value that is specified for this data type property must be contained in the list of values of the rulesPackages property of the AssessmentRun data type.
- Parameters:
rulesPackageArns
- For a record to match a filter, the value that is specified for this data type property must be contained in the list of values of the rulesPackages property of the AssessmentRun data type.
-
withRulesPackageArns
public AssessmentRunFilter withRulesPackageArns(String... rulesPackageArns)
For a record to match a filter, the value that is specified for this data type property must be contained in the list of values of the rulesPackages property of the AssessmentRun data type.
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
- For a record to match a filter, the value that is specified for this data type property must be contained in the list of values of the rulesPackages property of the AssessmentRun data type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withRulesPackageArns
public AssessmentRunFilter withRulesPackageArns(Collection<String> rulesPackageArns)
For a record to match a filter, the value that is specified for this data type property must be contained in the list of values of the rulesPackages property of the AssessmentRun data type.
- Parameters:
rulesPackageArns
- For a record to match a filter, the value that is specified for this data type property must be contained in the list of values of the rulesPackages property of the AssessmentRun data type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setStartTimeRange
public void setStartTimeRange(TimestampRange startTimeRange)
For a record to match a filter, the value that is specified for this data type property must inclusively match any value between the specified minimum and maximum values of the startTime property of the AssessmentRun data type.
- Parameters:
startTimeRange
- For a record to match a filter, the value that is specified for this data type property must inclusively match any value between the specified minimum and maximum values of the startTime property of the AssessmentRun data type.
-
getStartTimeRange
public TimestampRange getStartTimeRange()
For a record to match a filter, the value that is specified for this data type property must inclusively match any value between the specified minimum and maximum values of the startTime property of the AssessmentRun data type.
- Returns:
- For a record to match a filter, the value that is specified for this data type property must inclusively match any value between the specified minimum and maximum values of the startTime property of the AssessmentRun data type.
-
withStartTimeRange
public AssessmentRunFilter withStartTimeRange(TimestampRange startTimeRange)
For a record to match a filter, the value that is specified for this data type property must inclusively match any value between the specified minimum and maximum values of the startTime property of the AssessmentRun data type.
- Parameters:
startTimeRange
- For a record to match a filter, the value that is specified for this data type property must inclusively match any value between the specified minimum and maximum values of the startTime property of the AssessmentRun data type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setCompletionTimeRange
public void setCompletionTimeRange(TimestampRange completionTimeRange)
For a record to match a filter, the value that is specified for this data type property must inclusively match any value between the specified minimum and maximum values of the completedAt property of the AssessmentRun data type.
- Parameters:
completionTimeRange
- For a record to match a filter, the value that is specified for this data type property must inclusively match any value between the specified minimum and maximum values of the completedAt property of the AssessmentRun data type.
-
getCompletionTimeRange
public TimestampRange getCompletionTimeRange()
For a record to match a filter, the value that is specified for this data type property must inclusively match any value between the specified minimum and maximum values of the completedAt property of the AssessmentRun data type.
- Returns:
- For a record to match a filter, the value that is specified for this data type property must inclusively match any value between the specified minimum and maximum values of the completedAt property of the AssessmentRun data type.
-
withCompletionTimeRange
public AssessmentRunFilter withCompletionTimeRange(TimestampRange completionTimeRange)
For a record to match a filter, the value that is specified for this data type property must inclusively match any value between the specified minimum and maximum values of the completedAt property of the AssessmentRun data type.
- Parameters:
completionTimeRange
- For a record to match a filter, the value that is specified for this data type property must inclusively match any value between the specified minimum and maximum values of the completedAt property of the AssessmentRun data type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setStateChangeTimeRange
public void setStateChangeTimeRange(TimestampRange stateChangeTimeRange)
For a record to match a filter, the value that is specified for this data type property must match the stateChangedAt property of the AssessmentRun data type.
- Parameters:
stateChangeTimeRange
- For a record to match a filter, the value that is specified for this data type property must match the stateChangedAt property of the AssessmentRun data type.
-
getStateChangeTimeRange
public TimestampRange getStateChangeTimeRange()
For a record to match a filter, the value that is specified for this data type property must match the stateChangedAt property of the AssessmentRun data type.
- Returns:
- For a record to match a filter, the value that is specified for this data type property must match the stateChangedAt property of the AssessmentRun data type.
-
withStateChangeTimeRange
public AssessmentRunFilter withStateChangeTimeRange(TimestampRange stateChangeTimeRange)
For a record to match a filter, the value that is specified for this data type property must match the stateChangedAt property of the AssessmentRun data type.
- Parameters:
stateChangeTimeRange
- For a record to match a filter, the value that is specified for this data type property must match the stateChangedAt property of the AssessmentRun data type.- 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:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public AssessmentRunFilter clone()
-
-