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:
  • Constructor Details

    • AssessmentTemplateFilter

      public AssessmentTemplateFilter()
  • Method Details

    • 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) or withRulesPackageArns(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 class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public AssessmentTemplateFilter clone()
      Overrides:
      clone in class Object