Class Filter
- 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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Filter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Filter
clone()
boolean
equals(Object obj)
String
getCondition()
A conditional operator.String
getName()
The name of the filter.List<String>
getValues()
A string value that you want to filter on.int
hashCode()
void
setCondition(String condition)
A conditional operator.void
setName(String name)
The name of the filter.void
setValues(Collection<String> values)
A string value that you want to filter on.String
toString()
Returns a string representation of this object; useful for testing and debugging.Filter
withCondition(String condition)
A conditional operator.Filter
withName(String name)
The name of the filter.Filter
withValues(String... values)
A string value that you want to filter on.Filter
withValues(Collection<String> values)
A string value that you want to filter on.
-
-
-
Method Detail
-
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 forSERVER
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 forSERVER
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 specifyUbuntu
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 specifyUbuntu
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 specifyUbuntu
for the value.- Parameters:
values
- A string value that you want to filter on. For example, if you choose thedestinationServer.osVersion
filter name, you could specifyUbuntu
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 specifyUbuntu
for the value.NOTE: This method appends the values to the existing list (if any). Use
setValues(java.util.Collection)
orwithValues(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 thedestinationServer.osVersion
filter name, you could specifyUbuntu
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 specifyUbuntu
for the value.- Parameters:
values
- A string value that you want to filter on. For example, if you choose thedestinationServer.osVersion
filter name, you could specifyUbuntu
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 classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
-