@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Filter extends Object implements Serializable, Cloneable, StructuredPojo
A single logging filter, used in LoggingFilter.
Constructor and Description |
---|
Filter() |
Modifier and Type | Method and Description |
---|---|
Filter |
clone() |
boolean |
equals(Object obj) |
String |
getBehavior()
How to handle logs that satisfy the filter's conditions and requirement.
|
List<Condition> |
getConditions()
Match conditions for the filter.
|
String |
getRequirement()
Logic to apply to the filtering conditions.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setBehavior(String behavior)
How to handle logs that satisfy the filter's conditions and requirement.
|
void |
setConditions(Collection<Condition> conditions)
Match conditions for the filter.
|
void |
setRequirement(String requirement)
Logic to apply to the filtering conditions.
|
String |
toString()
Returns a string representation of this object.
|
Filter |
withBehavior(FilterBehavior behavior)
How to handle logs that satisfy the filter's conditions and requirement.
|
Filter |
withBehavior(String behavior)
How to handle logs that satisfy the filter's conditions and requirement.
|
Filter |
withConditions(Collection<Condition> conditions)
Match conditions for the filter.
|
Filter |
withConditions(Condition... conditions)
Match conditions for the filter.
|
Filter |
withRequirement(FilterRequirement requirement)
Logic to apply to the filtering conditions.
|
Filter |
withRequirement(String requirement)
Logic to apply to the filtering conditions.
|
public void setBehavior(String behavior)
How to handle logs that satisfy the filter's conditions and requirement.
behavior
- How to handle logs that satisfy the filter's conditions and requirement.FilterBehavior
public String getBehavior()
How to handle logs that satisfy the filter's conditions and requirement.
FilterBehavior
public Filter withBehavior(String behavior)
How to handle logs that satisfy the filter's conditions and requirement.
behavior
- How to handle logs that satisfy the filter's conditions and requirement.FilterBehavior
public Filter withBehavior(FilterBehavior behavior)
How to handle logs that satisfy the filter's conditions and requirement.
behavior
- How to handle logs that satisfy the filter's conditions and requirement.FilterBehavior
public void setRequirement(String requirement)
Logic to apply to the filtering conditions. You can specify that, in order to satisfy the filter, a log must match all conditions or must match at least one condition.
requirement
- Logic to apply to the filtering conditions. You can specify that, in order to satisfy the filter, a log
must match all conditions or must match at least one condition.FilterRequirement
public String getRequirement()
Logic to apply to the filtering conditions. You can specify that, in order to satisfy the filter, a log must match all conditions or must match at least one condition.
FilterRequirement
public Filter withRequirement(String requirement)
Logic to apply to the filtering conditions. You can specify that, in order to satisfy the filter, a log must match all conditions or must match at least one condition.
requirement
- Logic to apply to the filtering conditions. You can specify that, in order to satisfy the filter, a log
must match all conditions or must match at least one condition.FilterRequirement
public Filter withRequirement(FilterRequirement requirement)
Logic to apply to the filtering conditions. You can specify that, in order to satisfy the filter, a log must match all conditions or must match at least one condition.
requirement
- Logic to apply to the filtering conditions. You can specify that, in order to satisfy the filter, a log
must match all conditions or must match at least one condition.FilterRequirement
public List<Condition> getConditions()
Match conditions for the filter.
public void setConditions(Collection<Condition> conditions)
Match conditions for the filter.
conditions
- Match conditions for the filter.public Filter withConditions(Condition... conditions)
Match conditions for the filter.
NOTE: This method appends the values to the existing list (if any). Use
setConditions(java.util.Collection)
or withConditions(java.util.Collection)
if you want to
override the existing values.
conditions
- Match conditions for the filter.public Filter withConditions(Collection<Condition> conditions)
Match conditions for the filter.
conditions
- Match conditions for the filter.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.