@Generated(value="software.amazon.awssdk:codegen") public final class Criterion extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Criterion.Builder,Criterion>
The criteria to use in the filter that defines the archive rule.
| Modifier and Type | Class and Description |
|---|---|
static interface |
Criterion.Builder |
| Modifier and Type | Method and Description |
|---|---|
static Criterion.Builder |
builder() |
List<String> |
contains()
A "contains" operator to match for the filter used to create the rule.
|
List<String> |
eq()
An "equals" operator to match for the filter used to create the rule.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
Boolean |
exists()
An "exists" operator to match for the filter used to create the rule.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasContains()
For responses, this returns true if the service returned a value for the Contains property.
|
boolean |
hasEq()
For responses, this returns true if the service returned a value for the Eq property.
|
int |
hashCode() |
boolean |
hasNeq()
For responses, this returns true if the service returned a value for the Neq property.
|
List<String> |
neq()
A "not equals" operator to match for the filter used to create the rule.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends Criterion.Builder> |
serializableBuilderClass() |
Criterion.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final boolean hasContains()
isEmpty() method on the property). This is
useful because the SDK will never return a null collection or map, but you may need to differentiate between the
service returning nothing (or null) and the service returning an empty collection or map. For requests, this
returns true if a value for the property was specified in the request builder, and false if a value was not
specified.public final List<String> contains()
A "contains" operator to match for the filter used to create the rule.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasContains() method.
public final boolean hasEq()
isEmpty() method on the property). This is useful
because the SDK will never return a null collection or map, but you may need to differentiate between the service
returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true
if a value for the property was specified in the request builder, and false if a value was not specified.public final List<String> eq()
An "equals" operator to match for the filter used to create the rule.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasEq() method.
public final Boolean exists()
An "exists" operator to match for the filter used to create the rule.
public final boolean hasNeq()
isEmpty() method on the property). This is useful
because the SDK will never return a null collection or map, but you may need to differentiate between the service
returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true
if a value for the property was specified in the request builder, and false if a value was not specified.public final List<String> neq()
A "not equals" operator to match for the filter used to create the rule.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasNeq() method.
public Criterion.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<Criterion.Builder,Criterion>public static Criterion.Builder builder()
public static Class<? extends Criterion.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2022. All rights reserved.