java.lang.Object
com.amazonaws.services.applicationdiscovery.model.Filter
All Implemented Interfaces:
Serializable, Cloneable

public class Filter extends Object implements Serializable, Cloneable

A filter that can use conditional operators.

See Also:
  • Constructor Details

    • Filter

      public Filter()
  • Method Details

    • setName

      public void setName(String name)

      The name of the filter. The following filter names are allowed for SERVER configuration items.

      Server

      • server.hostName

      • server.osName

      • server.osVersion

      • server.configurationid

      • server.agentid

      The name of the filter. The following filter names are allowed for PROCESS configuration items.

      Process

      • process.configurationid

      • process.name

      • process.commandLine

      • server.configurationid

      • server.hostName

      • server.osName

      • server.osVersion

      • server.agentId

      The name of the filter. The following filter names are allowed for CONNECTION configuration items.

      Connection

      • connection.sourceIp

      • connection.destinationIp

      • connection.destinationPort

      • sourceProcess.configurationId

      • sourceProcess.name

      • sourceProcess.commandLine

      • destinationProcess.configurationId

      • destinationProcess.name

      • destinationProcess.commandLine

      • sourceServer.configurationId

      • sourceServer.hostName

      • sourceServer.osName

      • sourceServer.osVersion

      • sourceServer.agentId

      • destinationServer.configurationId

      • destinationServer.hostName

      • destinationServer.osName

      • destinationServer.osVersion

      • destinationServer.agentId

      Parameters:
      name - The name of the filter. The following filter names are allowed for SERVER configuration items.

      Server

      • server.hostName

      • server.osName

      • server.osVersion

      • server.configurationid

      • server.agentid

      The name of the filter. The following filter names are allowed for PROCESS configuration items.

      Process

      • process.configurationid

      • process.name

      • process.commandLine

      • server.configurationid

      • server.hostName

      • server.osName

      • server.osVersion

      • server.agentId

      The name of the filter. The following filter names are allowed for CONNECTION configuration items.

      Connection

      • connection.sourceIp

      • connection.destinationIp

      • connection.destinationPort

      • sourceProcess.configurationId

      • sourceProcess.name

      • sourceProcess.commandLine

      • destinationProcess.configurationId

      • destinationProcess.name

      • destinationProcess.commandLine

      • sourceServer.configurationId

      • sourceServer.hostName

      • sourceServer.osName

      • sourceServer.osVersion

      • sourceServer.agentId

      • destinationServer.configurationId

      • destinationServer.hostName

      • destinationServer.osName

      • destinationServer.osVersion

      • destinationServer.agentId

    • getName

      public String getName()

      The name of the filter. The following filter names are allowed for SERVER configuration items.

      Server

      • server.hostName

      • server.osName

      • server.osVersion

      • server.configurationid

      • server.agentid

      The name of the filter. The following filter names are allowed for PROCESS configuration items.

      Process

      • process.configurationid

      • process.name

      • process.commandLine

      • server.configurationid

      • server.hostName

      • server.osName

      • server.osVersion

      • server.agentId

      The name of the filter. The following filter names are allowed for CONNECTION configuration items.

      Connection

      • connection.sourceIp

      • connection.destinationIp

      • connection.destinationPort

      • sourceProcess.configurationId

      • sourceProcess.name

      • sourceProcess.commandLine

      • destinationProcess.configurationId

      • destinationProcess.name

      • destinationProcess.commandLine

      • sourceServer.configurationId

      • sourceServer.hostName

      • sourceServer.osName

      • sourceServer.osVersion

      • sourceServer.agentId

      • destinationServer.configurationId

      • destinationServer.hostName

      • destinationServer.osName

      • destinationServer.osVersion

      • destinationServer.agentId

      Returns:
      The name of the filter. The following filter names are allowed for SERVER configuration items.

      Server

      • server.hostName

      • server.osName

      • server.osVersion

      • server.configurationid

      • server.agentid

      The name of the filter. The following filter names are allowed for PROCESS configuration items.

      Process

      • process.configurationid

      • process.name

      • process.commandLine

      • server.configurationid

      • server.hostName

      • server.osName

      • server.osVersion

      • server.agentId

      The name of the filter. The following filter names are allowed for CONNECTION configuration items.

      Connection

      • connection.sourceIp

      • connection.destinationIp

      • connection.destinationPort

      • sourceProcess.configurationId

      • sourceProcess.name

      • sourceProcess.commandLine

      • destinationProcess.configurationId

      • destinationProcess.name

      • destinationProcess.commandLine

      • sourceServer.configurationId

      • sourceServer.hostName

      • sourceServer.osName

      • sourceServer.osVersion

      • sourceServer.agentId

      • destinationServer.configurationId

      • destinationServer.hostName

      • destinationServer.osName

      • destinationServer.osVersion

      • destinationServer.agentId

    • withName

      public Filter withName(String name)

      The name of the filter. The following filter names are allowed for SERVER configuration items.

      Server

      • server.hostName

      • server.osName

      • server.osVersion

      • server.configurationid

      • server.agentid

      The name of the filter. The following filter names are allowed for PROCESS configuration items.

      Process

      • process.configurationid

      • process.name

      • process.commandLine

      • server.configurationid

      • server.hostName

      • server.osName

      • server.osVersion

      • server.agentId

      The name of the filter. The following filter names are allowed for CONNECTION configuration items.

      Connection

      • connection.sourceIp

      • connection.destinationIp

      • connection.destinationPort

      • sourceProcess.configurationId

      • sourceProcess.name

      • sourceProcess.commandLine

      • destinationProcess.configurationId

      • destinationProcess.name

      • destinationProcess.commandLine

      • sourceServer.configurationId

      • sourceServer.hostName

      • sourceServer.osName

      • sourceServer.osVersion

      • sourceServer.agentId

      • destinationServer.configurationId

      • destinationServer.hostName

      • destinationServer.osName

      • destinationServer.osVersion

      • destinationServer.agentId

      Parameters:
      name - The name of the filter. The following filter names are allowed for SERVER configuration items.

      Server

      • server.hostName

      • server.osName

      • server.osVersion

      • server.configurationid

      • server.agentid

      The name of the filter. The following filter names are allowed for PROCESS configuration items.

      Process

      • process.configurationid

      • process.name

      • process.commandLine

      • server.configurationid

      • server.hostName

      • server.osName

      • server.osVersion

      • server.agentId

      The name of the filter. The following filter names are allowed for CONNECTION configuration items.

      Connection

      • connection.sourceIp

      • connection.destinationIp

      • connection.destinationPort

      • sourceProcess.configurationId

      • sourceProcess.name

      • sourceProcess.commandLine

      • destinationProcess.configurationId

      • destinationProcess.name

      • destinationProcess.commandLine

      • sourceServer.configurationId

      • sourceServer.hostName

      • sourceServer.osName

      • sourceServer.osVersion

      • sourceServer.agentId

      • destinationServer.configurationId

      • destinationServer.hostName

      • destinationServer.osName

      • destinationServer.osVersion

      • destinationServer.agentId

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • getValues

      public List<String> getValues()

      A string value that you want to filter on. For example, if you choose the destinationServer.osVersion filter name, you could specify Ubuntu for the value.

      Returns:
      A string value that you want to filter on. For example, if you choose the destinationServer.osVersion filter name, you could specify Ubuntu for the value.
    • setValues

      public void setValues(Collection<String> values)

      A string value that you want to filter on. For example, if you choose the destinationServer.osVersion filter name, you could specify Ubuntu for the value.

      Parameters:
      values - A string value that you want to filter on. For example, if you choose the destinationServer.osVersion filter name, you could specify Ubuntu for the value.
    • withValues

      public Filter withValues(String... values)

      A string value that you want to filter on. For example, if you choose the destinationServer.osVersion filter name, you could specify Ubuntu for the value.

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

      Parameters:
      values - A string value that you want to filter on. For example, if you choose the destinationServer.osVersion filter name, you could specify Ubuntu for the value.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • withValues

      public Filter withValues(Collection<String> values)

      A string value that you want to filter on. For example, if you choose the destinationServer.osVersion filter name, you could specify Ubuntu for the value.

      Parameters:
      values - A string value that you want to filter on. For example, if you choose the destinationServer.osVersion filter name, you could specify Ubuntu for the value.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setCondition

      public void setCondition(String condition)

      A conditional operator. The following operators are valid: EQUALS, NOT_EQUALS, CONTAINS, NOT_CONTAINS. If you specify multiple filters, the system utilizes all filters as though concatenated by AND. If you specify multiple values for a particular filter, the system differentiates the values using OR. Calling either DescribeConfigurations or ListConfigurations returns attributes of matching configuration items.

      Parameters:
      condition - A conditional operator. The following operators are valid: EQUALS, NOT_EQUALS, CONTAINS, NOT_CONTAINS. If you specify multiple filters, the system utilizes all filters as though concatenated by AND. If you specify multiple values for a particular filter, the system differentiates the values using OR. Calling either DescribeConfigurations or ListConfigurations returns attributes of matching configuration items.
    • getCondition

      public String getCondition()

      A conditional operator. The following operators are valid: EQUALS, NOT_EQUALS, CONTAINS, NOT_CONTAINS. If you specify multiple filters, the system utilizes all filters as though concatenated by AND. If you specify multiple values for a particular filter, the system differentiates the values using OR. Calling either DescribeConfigurations or ListConfigurations returns attributes of matching configuration items.

      Returns:
      A conditional operator. The following operators are valid: EQUALS, NOT_EQUALS, CONTAINS, NOT_CONTAINS. If you specify multiple filters, the system utilizes all filters as though concatenated by AND. If you specify multiple values for a particular filter, the system differentiates the values using OR. Calling either DescribeConfigurations or ListConfigurations returns attributes of matching configuration items.
    • withCondition

      public Filter withCondition(String condition)

      A conditional operator. The following operators are valid: EQUALS, NOT_EQUALS, CONTAINS, NOT_CONTAINS. If you specify multiple filters, the system utilizes all filters as though concatenated by AND. If you specify multiple values for a particular filter, the system differentiates the values using OR. Calling either DescribeConfigurations or ListConfigurations returns attributes of matching configuration items.

      Parameters:
      condition - A conditional operator. The following operators are valid: EQUALS, NOT_EQUALS, CONTAINS, NOT_CONTAINS. If you specify multiple filters, the system utilizes all filters as though concatenated by AND. If you specify multiple values for a particular filter, the system differentiates the values using OR. Calling either DescribeConfigurations or ListConfigurations returns attributes of matching configuration items.
      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 Filter clone()
      Overrides:
      clone in class Object