Class FindingFilter

java.lang.Object
com.amazonaws.services.inspector.model.FindingFilter
All Implemented Interfaces:
Serializable, Cloneable

public class FindingFilter extends Object implements Serializable, Cloneable

This data type is used as a request parameter in the ListFindings action.

See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    boolean
     
    For a record to match a filter, one of the values that is specified for this data type property must be the exact match of the value of the agentId property of the Finding data type.
    For a record to match a filter, the list of values that are specified for this data type property must be contained in the list of values of the attributes property of the Finding data type.
    For a record to match a filter, one of the values that is specified for this data type property must be the exact match of the value of the autoScalingGroup property of the Finding data type.
    The time range during which the finding is generated.
    For a record to match a filter, one of the values that is specified for this data type property must be the exact match of the value of the ruleName property of the Finding data type.
    For a record to match a filter, one of the values that is specified for this data type property must be the exact match of the value of the rulesPackageArn property of the Finding data type.
    For a record to match a filter, one of the values that is specified for this data type property must be the exact match of the value of the severity property of the Finding data type.
    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 userAttributes property of the Finding data type.
    int
     
    void
    For a record to match a filter, one of the values that is specified for this data type property must be the exact match of the value of the agentId property of the Finding data type.
    void
    For a record to match a filter, the list of values that are specified for this data type property must be contained in the list of values of the attributes property of the Finding data type.
    void
    For a record to match a filter, one of the values that is specified for this data type property must be the exact match of the value of the autoScalingGroup property of the Finding data type.
    void
    The time range during which the finding is generated.
    void
    For a record to match a filter, one of the values that is specified for this data type property must be the exact match of the value of the ruleName property of the Finding data type.
    void
    For a record to match a filter, one of the values that is specified for this data type property must be the exact match of the value of the rulesPackageArn property of the Finding data type.
    void
    For a record to match a filter, one of the values that is specified for this data type property must be the exact match of the value of the severity property of the Finding data type.
    void
    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 userAttributes property of the Finding data type.
    Returns a string representation of this object; useful for testing and debugging.
    withAgentIds(String... agentIds)
    For a record to match a filter, one of the values that is specified for this data type property must be the exact match of the value of the agentId property of the Finding data type.
    For a record to match a filter, one of the values that is specified for this data type property must be the exact match of the value of the agentId property of the Finding data type.
    withAttributes(Attribute... attributes)
    For a record to match a filter, the list of values that are specified for this data type property must be contained in the list of values of the attributes property of the Finding data type.
    For a record to match a filter, the list of values that are specified for this data type property must be contained in the list of values of the attributes property of the Finding data type.
    withAutoScalingGroups(String... autoScalingGroups)
    For a record to match a filter, one of the values that is specified for this data type property must be the exact match of the value of the autoScalingGroup property of the Finding data type.
    For a record to match a filter, one of the values that is specified for this data type property must be the exact match of the value of the autoScalingGroup property of the Finding data type.
    The time range during which the finding is generated.
    withRuleNames(String... ruleNames)
    For a record to match a filter, one of the values that is specified for this data type property must be the exact match of the value of the ruleName property of the Finding data type.
    For a record to match a filter, one of the values that is specified for this data type property must be the exact match of the value of the ruleName property of the Finding data type.
    withRulesPackageArns(String... rulesPackageArns)
    For a record to match a filter, one of the values that is specified for this data type property must be the exact match of the value of the rulesPackageArn property of the Finding data type.
    For a record to match a filter, one of the values that is specified for this data type property must be the exact match of the value of the rulesPackageArn property of the Finding data type.
    withSeverities(Severity... severities)
    For a record to match a filter, one of the values that is specified for this data type property must be the exact match of the value of the severity property of the Finding data type.
    withSeverities(String... severities)
    For a record to match a filter, one of the values that is specified for this data type property must be the exact match of the value of the severity property of the Finding data type.
    For a record to match a filter, one of the values that is specified for this data type property must be the exact match of the value of the severity property of the Finding data type.
    withUserAttributes(Attribute... userAttributes)
    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 userAttributes property of the Finding data type.
    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 userAttributes property of the Finding data type.

    Methods inherited from class java.lang.Object

    finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • FindingFilter

      public FindingFilter()
  • Method Details

    • getAgentIds

      public List<String> getAgentIds()

      For a record to match a filter, one of the values that is specified for this data type property must be the exact match of the value of the agentId property of the Finding data type.

      Returns:
      For a record to match a filter, one of the values that is specified for this data type property must be the exact match of the value of the agentId property of the Finding data type.
    • setAgentIds

      public void setAgentIds(Collection<String> agentIds)

      For a record to match a filter, one of the values that is specified for this data type property must be the exact match of the value of the agentId property of the Finding data type.

      Parameters:
      agentIds - For a record to match a filter, one of the values that is specified for this data type property must be the exact match of the value of the agentId property of the Finding data type.
    • withAgentIds

      public FindingFilter withAgentIds(String... agentIds)

      For a record to match a filter, one of the values that is specified for this data type property must be the exact match of the value of the agentId property of the Finding data type.

      NOTE: This method appends the values to the existing list (if any). Use setAgentIds(java.util.Collection) or withAgentIds(java.util.Collection) if you want to override the existing values.

      Parameters:
      agentIds - For a record to match a filter, one of the values that is specified for this data type property must be the exact match of the value of the agentId property of the Finding data type.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • withAgentIds

      public FindingFilter withAgentIds(Collection<String> agentIds)

      For a record to match a filter, one of the values that is specified for this data type property must be the exact match of the value of the agentId property of the Finding data type.

      Parameters:
      agentIds - For a record to match a filter, one of the values that is specified for this data type property must be the exact match of the value of the agentId property of the Finding data type.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • getAutoScalingGroups

      public List<String> getAutoScalingGroups()

      For a record to match a filter, one of the values that is specified for this data type property must be the exact match of the value of the autoScalingGroup property of the Finding data type.

      Returns:
      For a record to match a filter, one of the values that is specified for this data type property must be the exact match of the value of the autoScalingGroup property of the Finding data type.
    • setAutoScalingGroups

      public void setAutoScalingGroups(Collection<String> autoScalingGroups)

      For a record to match a filter, one of the values that is specified for this data type property must be the exact match of the value of the autoScalingGroup property of the Finding data type.

      Parameters:
      autoScalingGroups - For a record to match a filter, one of the values that is specified for this data type property must be the exact match of the value of the autoScalingGroup property of the Finding data type.
    • withAutoScalingGroups

      public FindingFilter withAutoScalingGroups(String... autoScalingGroups)

      For a record to match a filter, one of the values that is specified for this data type property must be the exact match of the value of the autoScalingGroup property of the Finding data type.

      NOTE: This method appends the values to the existing list (if any). Use setAutoScalingGroups(java.util.Collection) or withAutoScalingGroups(java.util.Collection) if you want to override the existing values.

      Parameters:
      autoScalingGroups - For a record to match a filter, one of the values that is specified for this data type property must be the exact match of the value of the autoScalingGroup property of the Finding data type.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • withAutoScalingGroups

      public FindingFilter withAutoScalingGroups(Collection<String> autoScalingGroups)

      For a record to match a filter, one of the values that is specified for this data type property must be the exact match of the value of the autoScalingGroup property of the Finding data type.

      Parameters:
      autoScalingGroups - For a record to match a filter, one of the values that is specified for this data type property must be the exact match of the value of the autoScalingGroup property of the Finding data type.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • getRuleNames

      public List<String> getRuleNames()

      For a record to match a filter, one of the values that is specified for this data type property must be the exact match of the value of the ruleName property of the Finding data type.

      Returns:
      For a record to match a filter, one of the values that is specified for this data type property must be the exact match of the value of the ruleName property of the Finding data type.
    • setRuleNames

      public void setRuleNames(Collection<String> ruleNames)

      For a record to match a filter, one of the values that is specified for this data type property must be the exact match of the value of the ruleName property of the Finding data type.

      Parameters:
      ruleNames - For a record to match a filter, one of the values that is specified for this data type property must be the exact match of the value of the ruleName property of the Finding data type.
    • withRuleNames

      public FindingFilter withRuleNames(String... ruleNames)

      For a record to match a filter, one of the values that is specified for this data type property must be the exact match of the value of the ruleName property of the Finding data type.

      NOTE: This method appends the values to the existing list (if any). Use setRuleNames(java.util.Collection) or withRuleNames(java.util.Collection) if you want to override the existing values.

      Parameters:
      ruleNames - For a record to match a filter, one of the values that is specified for this data type property must be the exact match of the value of the ruleName property of the Finding data type.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • withRuleNames

      public FindingFilter withRuleNames(Collection<String> ruleNames)

      For a record to match a filter, one of the values that is specified for this data type property must be the exact match of the value of the ruleName property of the Finding data type.

      Parameters:
      ruleNames - For a record to match a filter, one of the values that is specified for this data type property must be the exact match of the value of the ruleName property of the Finding data type.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • getSeverities

      public List<String> getSeverities()

      For a record to match a filter, one of the values that is specified for this data type property must be the exact match of the value of the severity property of the Finding data type.

      Returns:
      For a record to match a filter, one of the values that is specified for this data type property must be the exact match of the value of the severity property of the Finding data type.
      See Also:
    • setSeverities

      public void setSeverities(Collection<String> severities)

      For a record to match a filter, one of the values that is specified for this data type property must be the exact match of the value of the severity property of the Finding data type.

      Parameters:
      severities - For a record to match a filter, one of the values that is specified for this data type property must be the exact match of the value of the severity property of the Finding data type.
      See Also:
    • withSeverities

      public FindingFilter withSeverities(String... severities)

      For a record to match a filter, one of the values that is specified for this data type property must be the exact match of the value of the severity property of the Finding data type.

      NOTE: This method appends the values to the existing list (if any). Use setSeverities(java.util.Collection) or withSeverities(java.util.Collection) if you want to override the existing values.

      Parameters:
      severities - For a record to match a filter, one of the values that is specified for this data type property must be the exact match of the value of the severity property of the Finding data type.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • withSeverities

      public FindingFilter withSeverities(Collection<String> severities)

      For a record to match a filter, one of the values that is specified for this data type property must be the exact match of the value of the severity property of the Finding data type.

      Parameters:
      severities - For a record to match a filter, one of the values that is specified for this data type property must be the exact match of the value of the severity property of the Finding data type.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • withSeverities

      public FindingFilter withSeverities(Severity... severities)

      For a record to match a filter, one of the values that is specified for this data type property must be the exact match of the value of the severity property of the Finding data type.

      Parameters:
      severities - For a record to match a filter, one of the values that is specified for this data type property must be the exact match of the value of the severity property of the Finding data type.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • getRulesPackageArns

      public List<String> getRulesPackageArns()

      For a record to match a filter, one of the values that is specified for this data type property must be the exact match of the value of the rulesPackageArn property of the Finding data type.

      Returns:
      For a record to match a filter, one of the values that is specified for this data type property must be the exact match of the value of the rulesPackageArn property of the Finding data type.
    • setRulesPackageArns

      public void setRulesPackageArns(Collection<String> rulesPackageArns)

      For a record to match a filter, one of the values that is specified for this data type property must be the exact match of the value of the rulesPackageArn property of the Finding data type.

      Parameters:
      rulesPackageArns - For a record to match a filter, one of the values that is specified for this data type property must be the exact match of the value of the rulesPackageArn property of the Finding data type.
    • withRulesPackageArns

      public FindingFilter withRulesPackageArns(String... rulesPackageArns)

      For a record to match a filter, one of the values that is specified for this data type property must be the exact match of the value of the rulesPackageArn property of the Finding 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, one of the values that is specified for this data type property must be the exact match of the value of the rulesPackageArn property of the Finding data type.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • withRulesPackageArns

      public FindingFilter withRulesPackageArns(Collection<String> rulesPackageArns)

      For a record to match a filter, one of the values that is specified for this data type property must be the exact match of the value of the rulesPackageArn property of the Finding data type.

      Parameters:
      rulesPackageArns - For a record to match a filter, one of the values that is specified for this data type property must be the exact match of the value of the rulesPackageArn property of the Finding data type.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • getAttributes

      public List<Attribute> getAttributes()

      For a record to match a filter, the list of values that are specified for this data type property must be contained in the list of values of the attributes property of the Finding data type.

      Returns:
      For a record to match a filter, the list of values that are specified for this data type property must be contained in the list of values of the attributes property of the Finding data type.
    • setAttributes

      public void setAttributes(Collection<Attribute> attributes)

      For a record to match a filter, the list of values that are specified for this data type property must be contained in the list of values of the attributes property of the Finding data type.

      Parameters:
      attributes - For a record to match a filter, the list of values that are specified for this data type property must be contained in the list of values of the attributes property of the Finding data type.
    • withAttributes

      public FindingFilter withAttributes(Attribute... attributes)

      For a record to match a filter, the list of values that are specified for this data type property must be contained in the list of values of the attributes property of the Finding data type.

      NOTE: This method appends the values to the existing list (if any). Use setAttributes(java.util.Collection) or withAttributes(java.util.Collection) if you want to override the existing values.

      Parameters:
      attributes - For a record to match a filter, the list of values that are specified for this data type property must be contained in the list of values of the attributes property of the Finding data type.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • withAttributes

      public FindingFilter withAttributes(Collection<Attribute> attributes)

      For a record to match a filter, the list of values that are specified for this data type property must be contained in the list of values of the attributes property of the Finding data type.

      Parameters:
      attributes - For a record to match a filter, the list of values that are specified for this data type property must be contained in the list of values of the attributes property of the Finding data type.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • getUserAttributes

      public List<Attribute> getUserAttributes()

      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 userAttributes property of the Finding 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 userAttributes property of the Finding data type.
    • setUserAttributes

      public void setUserAttributes(Collection<Attribute> userAttributes)

      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 userAttributes property of the Finding data type.

      Parameters:
      userAttributes - 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 userAttributes property of the Finding data type.
    • withUserAttributes

      public FindingFilter withUserAttributes(Attribute... userAttributes)

      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 userAttributes property of the Finding data type.

      NOTE: This method appends the values to the existing list (if any). Use setUserAttributes(java.util.Collection) or withUserAttributes(java.util.Collection) if you want to override the existing values.

      Parameters:
      userAttributes - 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 userAttributes property of the Finding data type.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • withUserAttributes

      public FindingFilter withUserAttributes(Collection<Attribute> userAttributes)

      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 userAttributes property of the Finding data type.

      Parameters:
      userAttributes - 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 userAttributes property of the Finding data type.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setCreationTimeRange

      public void setCreationTimeRange(TimestampRange creationTimeRange)

      The time range during which the finding is generated.

      Parameters:
      creationTimeRange - The time range during which the finding is generated.
    • getCreationTimeRange

      public TimestampRange getCreationTimeRange()

      The time range during which the finding is generated.

      Returns:
      The time range during which the finding is generated.
    • withCreationTimeRange

      public FindingFilter withCreationTimeRange(TimestampRange creationTimeRange)

      The time range during which the finding is generated.

      Parameters:
      creationTimeRange - The time range during which the finding is generated.
      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 FindingFilter clone()
      Overrides:
      clone in class Object