@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Criterion extends Object implements Serializable, Cloneable, StructuredPojo
The criteria to use in the filter that defines the archive rule. For more information on available filter keys, see IAM Access Analyzer filter keys.
Constructor and Description |
---|
Criterion() |
Modifier and Type | Method and Description |
---|---|
Criterion |
clone() |
boolean |
equals(Object obj) |
List<String> |
getContains()
A "contains" operator to match for the filter used to create the rule.
|
List<String> |
getEq()
An "equals" operator to match for the filter used to create the rule.
|
Boolean |
getExists()
An "exists" operator to match for the filter used to create the rule.
|
List<String> |
getNeq()
A "not equals" operator to match for the filter used to create the rule.
|
int |
hashCode() |
Boolean |
isExists()
An "exists" operator to match for the filter used to create the rule.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setContains(Collection<String> contains)
A "contains" operator to match for the filter used to create the rule.
|
void |
setEq(Collection<String> eq)
An "equals" operator to match for the filter used to create the rule.
|
void |
setExists(Boolean exists)
An "exists" operator to match for the filter used to create the rule.
|
void |
setNeq(Collection<String> neq)
A "not equals" operator to match for the filter used to create the rule.
|
String |
toString()
Returns a string representation of this object.
|
Criterion |
withContains(Collection<String> contains)
A "contains" operator to match for the filter used to create the rule.
|
Criterion |
withContains(String... contains)
A "contains" operator to match for the filter used to create the rule.
|
Criterion |
withEq(Collection<String> eq)
An "equals" operator to match for the filter used to create the rule.
|
Criterion |
withEq(String... eq)
An "equals" operator to match for the filter used to create the rule.
|
Criterion |
withExists(Boolean exists)
An "exists" operator to match for the filter used to create the rule.
|
Criterion |
withNeq(Collection<String> neq)
A "not equals" operator to match for the filter used to create the rule.
|
Criterion |
withNeq(String... neq)
A "not equals" operator to match for the filter used to create the rule.
|
public List<String> getEq()
An "equals" operator to match for the filter used to create the rule.
public void setEq(Collection<String> eq)
An "equals" operator to match for the filter used to create the rule.
eq
- An "equals" operator to match for the filter used to create the rule.public Criterion withEq(String... eq)
An "equals" operator to match for the filter used to create the rule.
NOTE: This method appends the values to the existing list (if any). Use
setEq(java.util.Collection)
or withEq(java.util.Collection)
if you want to override the
existing values.
eq
- An "equals" operator to match for the filter used to create the rule.public Criterion withEq(Collection<String> eq)
An "equals" operator to match for the filter used to create the rule.
eq
- An "equals" operator to match for the filter used to create the rule.public List<String> getNeq()
A "not equals" operator to match for the filter used to create the rule.
public void setNeq(Collection<String> neq)
A "not equals" operator to match for the filter used to create the rule.
neq
- A "not equals" operator to match for the filter used to create the rule.public Criterion withNeq(String... neq)
A "not equals" operator to match for the filter used to create the rule.
NOTE: This method appends the values to the existing list (if any). Use
setNeq(java.util.Collection)
or withNeq(java.util.Collection)
if you want to override the
existing values.
neq
- A "not equals" operator to match for the filter used to create the rule.public Criterion withNeq(Collection<String> neq)
A "not equals" operator to match for the filter used to create the rule.
neq
- A "not equals" operator to match for the filter used to create the rule.public List<String> getContains()
A "contains" operator to match for the filter used to create the rule.
public void setContains(Collection<String> contains)
A "contains" operator to match for the filter used to create the rule.
contains
- A "contains" operator to match for the filter used to create the rule.public Criterion withContains(String... contains)
A "contains" operator to match for the filter used to create the rule.
NOTE: This method appends the values to the existing list (if any). Use
setContains(java.util.Collection)
or withContains(java.util.Collection)
if you want to override
the existing values.
contains
- A "contains" operator to match for the filter used to create the rule.public Criterion withContains(Collection<String> contains)
A "contains" operator to match for the filter used to create the rule.
contains
- A "contains" operator to match for the filter used to create the rule.public void setExists(Boolean exists)
An "exists" operator to match for the filter used to create the rule.
exists
- An "exists" operator to match for the filter used to create the rule.public Boolean getExists()
An "exists" operator to match for the filter used to create the rule.
public Criterion withExists(Boolean exists)
An "exists" operator to match for the filter used to create the rule.
exists
- An "exists" operator to match for the filter used to create the rule.public Boolean isExists()
An "exists" operator to match for the filter used to create the rule.
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.