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 Filterclone()booleanequals(Object obj)StringgetCondition()A conditional operator.StringgetName()The name of the filter.List<String>getValues()A string value that you want to filter on.inthashCode()voidsetCondition(String condition)A conditional operator.voidsetName(String name)The name of the filter.voidsetValues(Collection<String> values)A string value that you want to filter on.StringtoString()Returns a string representation of this object; useful for testing and debugging.FilterwithCondition(String condition)A conditional operator.FilterwithName(String name)The name of the filter.FilterwithValues(String... values)A string value that you want to filter on.FilterwithValues(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
SERVERconfiguration items.Server
-
server.hostName -
server.osName -
server.osVersion -
server.configurationid -
server.agentid
The name of the filter. The following filter names are allowed for
PROCESSconfiguration 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
CONNECTIONconfiguration 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 forSERVERconfiguration items.Server
-
server.hostName -
server.osName -
server.osVersion -
server.configurationid -
server.agentid
The name of the filter. The following filter names are allowed for
PROCESSconfiguration 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
CONNECTIONconfiguration 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
SERVERconfiguration items.Server
-
server.hostName -
server.osName -
server.osVersion -
server.configurationid -
server.agentid
The name of the filter. The following filter names are allowed for
PROCESSconfiguration 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
CONNECTIONconfiguration 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
SERVERconfiguration items.Server
-
server.hostName -
server.osName -
server.osVersion -
server.configurationid -
server.agentid
The name of the filter. The following filter names are allowed for
PROCESSconfiguration 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
CONNECTIONconfiguration 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
SERVERconfiguration items.Server
-
server.hostName -
server.osName -
server.osVersion -
server.configurationid -
server.agentid
The name of the filter. The following filter names are allowed for
PROCESSconfiguration 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
CONNECTIONconfiguration 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 forSERVERconfiguration items.Server
-
server.hostName -
server.osName -
server.osVersion -
server.configurationid -
server.agentid
The name of the filter. The following filter names are allowed for
PROCESSconfiguration 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
CONNECTIONconfiguration 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.osVersionfilter name, you could specifyUbuntufor the value.- Returns:
- A string value that you want to filter on. For example, if you
choose the
destinationServer.osVersionfilter name, you could specifyUbuntufor 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.osVersionfilter name, you could specifyUbuntufor the value.- Parameters:
values- A string value that you want to filter on. For example, if you choose thedestinationServer.osVersionfilter name, you could specifyUbuntufor the value.
-
withValues
public Filter withValues(String... values)
A string value that you want to filter on. For example, if you choose the
destinationServer.osVersionfilter name, you could specifyUbuntufor 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.osVersionfilter name, you could specifyUbuntufor 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.osVersionfilter name, you could specifyUbuntufor the value.- Parameters:
values- A string value that you want to filter on. For example, if you choose thedestinationServer.osVersionfilter name, you could specifyUbuntufor 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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
-