@Generated(value="software.amazon.awssdk:codegen") public final class NestedFilters extends Object implements SdkPojo, Serializable, ToCopyableBuilder<NestedFilters.Builder,NestedFilters>
A list of nested Filter objects. A resource must satisfy the conditions of all filters to be included in the results returned from the Search API.
For example, to filter on a training job's InputDataConfig property with a specific channel name and
S3Uri prefix, define the following filters:
'{Name:"InputDataConfig.ChannelName", "Operator":"Equals", "Value":"train"}',
'{Name:"InputDataConfig.DataSource.S3DataSource.S3Uri", "Operator":"Contains", "Value":"mybucket/catdata"}'
| Modifier and Type | Class and Description |
|---|---|
static interface |
NestedFilters.Builder |
| Modifier and Type | Method and Description |
|---|---|
static NestedFilters.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
List<Filter> |
filters()
A list of filters.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasFilters()
For responses, this returns true if the service returned a value for the Filters property.
|
int |
hashCode() |
String |
nestedPropertyName()
The name of the property to use in the nested filters.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends NestedFilters.Builder> |
serializableBuilderClass() |
NestedFilters.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String nestedPropertyName()
The name of the property to use in the nested filters. The value must match a listed property name, such as
InputDataConfig.
InputDataConfig.public final boolean hasFilters()
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<Filter> filters()
A list of filters. Each filter acts on a property. Filters must contain at least one Filters value.
For example, a NestedFilters call might include a filter on the PropertyName parameter
of the InputDataConfig property: InputDataConfig.DataSource.S3DataSource.S3Uri.
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 hasFilters() method.
Filters
value. For example, a NestedFilters call might include a filter on the
PropertyName parameter of the InputDataConfig property:
InputDataConfig.DataSource.S3DataSource.S3Uri.public NestedFilters.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<NestedFilters.Builder,NestedFilters>public static NestedFilters.Builder builder()
public static Class<? extends NestedFilters.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2022. All rights reserved.