Class AssessmentTemplateFilter
- java.lang.Object
-
- com.amazonaws.services.inspector.model.AssessmentTemplateFilter
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class AssessmentTemplateFilter extends Object implements Serializable, Cloneable
Used as the request parameter in the ListAssessmentTemplates action.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AssessmentTemplateFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AssessmentTemplateFilter
clone()
boolean
equals(Object obj)
DurationRange
getDurationRange()
For a record to match a filter, the value specified for this data type property must inclusively match any value between the specified minimum and maximum values of the durationInSeconds property of the AssessmentTemplate data type.String
getNamePattern()
For a record to match a filter, an explicit value or a string that contains a wildcard that is specified for this data type property must match the value of the assessmentTemplateName property of the AssessmentTemplate data type.List<String>
getRulesPackageArns()
For a record to match a filter, the values that are specified for this data type property must be contained in the list of values of the rulesPackageArns property of the AssessmentTemplate data type.int
hashCode()
void
setDurationRange(DurationRange durationRange)
For a record to match a filter, the value specified for this data type property must inclusively match any value between the specified minimum and maximum values of the durationInSeconds property of the AssessmentTemplate data type.void
setNamePattern(String namePattern)
For a record to match a filter, an explicit value or a string that contains a wildcard that is specified for this data type property must match the value of the assessmentTemplateName property of the AssessmentTemplate data type.void
setRulesPackageArns(Collection<String> rulesPackageArns)
For a record to match a filter, the values that are specified for this data type property must be contained in the list of values of the rulesPackageArns property of the AssessmentTemplate data type.String
toString()
Returns a string representation of this object; useful for testing and debugging.AssessmentTemplateFilter
withDurationRange(DurationRange durationRange)
For a record to match a filter, the value specified for this data type property must inclusively match any value between the specified minimum and maximum values of the durationInSeconds property of the AssessmentTemplate data type.AssessmentTemplateFilter
withNamePattern(String namePattern)
For a record to match a filter, an explicit value or a string that contains a wildcard that is specified for this data type property must match the value of the assessmentTemplateName property of the AssessmentTemplate data type.AssessmentTemplateFilter
withRulesPackageArns(String... rulesPackageArns)
For a record to match a filter, the values that are specified for this data type property must be contained in the list of values of the rulesPackageArns property of the AssessmentTemplate data type.AssessmentTemplateFilter
withRulesPackageArns(Collection<String> rulesPackageArns)
For a record to match a filter, the values that are specified for this data type property must be contained in the list of values of the rulesPackageArns property of the AssessmentTemplate data type.
-
-
-
Method Detail
-
setNamePattern
public void setNamePattern(String namePattern)
For a record to match a filter, an explicit value or a string that contains a wildcard that is specified for this data type property must match the value of the assessmentTemplateName property of the AssessmentTemplate data type.
- Parameters:
namePattern
- For a record to match a filter, an explicit value or a string that contains a wildcard that is specified for this data type property must match the value of the assessmentTemplateName property of the AssessmentTemplate data type.
-
getNamePattern
public String getNamePattern()
For a record to match a filter, an explicit value or a string that contains a wildcard that is specified for this data type property must match the value of the assessmentTemplateName property of the AssessmentTemplate data type.
- Returns:
- For a record to match a filter, an explicit value or a string that contains a wildcard that is specified for this data type property must match the value of the assessmentTemplateName property of the AssessmentTemplate data type.
-
withNamePattern
public AssessmentTemplateFilter withNamePattern(String namePattern)
For a record to match a filter, an explicit value or a string that contains a wildcard that is specified for this data type property must match the value of the assessmentTemplateName property of the AssessmentTemplate data type.
- Parameters:
namePattern
- For a record to match a filter, an explicit value or a string that contains a wildcard that is specified for this data type property must match the value of the assessmentTemplateName property of the AssessmentTemplate data type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDurationRange
public void setDurationRange(DurationRange durationRange)
For a record to match a filter, the value specified for this data type property must inclusively match any value between the specified minimum and maximum values of the durationInSeconds property of the AssessmentTemplate data type.
- Parameters:
durationRange
- For a record to match a filter, the value specified for this data type property must inclusively match any value between the specified minimum and maximum values of the durationInSeconds property of the AssessmentTemplate data type.
-
getDurationRange
public DurationRange getDurationRange()
For a record to match a filter, the value specified for this data type property must inclusively match any value between the specified minimum and maximum values of the durationInSeconds property of the AssessmentTemplate data type.
- Returns:
- For a record to match a filter, the value specified for this data type property must inclusively match any value between the specified minimum and maximum values of the durationInSeconds property of the AssessmentTemplate data type.
-
withDurationRange
public AssessmentTemplateFilter withDurationRange(DurationRange durationRange)
For a record to match a filter, the value specified for this data type property must inclusively match any value between the specified minimum and maximum values of the durationInSeconds property of the AssessmentTemplate data type.
- Parameters:
durationRange
- For a record to match a filter, the value specified for this data type property must inclusively match any value between the specified minimum and maximum values of the durationInSeconds property of the AssessmentTemplate 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 values that are specified for this data type property must be contained in the list of values of the rulesPackageArns property of the AssessmentTemplate data type.
- Returns:
- For a record to match a filter, the values that are specified for this data type property must be contained in the list of values of the rulesPackageArns property of the AssessmentTemplate data type.
-
setRulesPackageArns
public void setRulesPackageArns(Collection<String> rulesPackageArns)
For a record to match a filter, the values that are specified for this data type property must be contained in the list of values of the rulesPackageArns property of the AssessmentTemplate data type.
- Parameters:
rulesPackageArns
- For a record to match a filter, the values that are specified for this data type property must be contained in the list of values of the rulesPackageArns property of the AssessmentTemplate data type.
-
withRulesPackageArns
public AssessmentTemplateFilter withRulesPackageArns(String... rulesPackageArns)
For a record to match a filter, the values that are specified for this data type property must be contained in the list of values of the rulesPackageArns property of the AssessmentTemplate 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 values that are specified for this data type property must be contained in the list of values of the rulesPackageArns property of the AssessmentTemplate data type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withRulesPackageArns
public AssessmentTemplateFilter withRulesPackageArns(Collection<String> rulesPackageArns)
For a record to match a filter, the values that are specified for this data type property must be contained in the list of values of the rulesPackageArns property of the AssessmentTemplate data type.
- Parameters:
rulesPackageArns
- For a record to match a filter, the values that are specified for this data type property must be contained in the list of values of the rulesPackageArns property of the AssessmentTemplate 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 AssessmentTemplateFilter clone()
-
-