@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class RetrievalFilter extends Object implements Serializable, Cloneable, StructuredPojo
Specifies the filters to use on the metadata attributes in the knowledge base data sources before returning results. For more information, see Query configurations. See the examples below to see how to use these filters.
This data type is used in the following API operations:
Retrieve request – in the filter
field
RetrieveAndGenerate request – in the filter
field
Constructor and Description |
---|
RetrievalFilter() |
Modifier and Type | Method and Description |
---|---|
RetrievalFilter |
clone() |
boolean |
equals(Object obj) |
List<RetrievalFilter> |
getAndAll()
Knowledge base data sources are returned if their metadata attributes fulfill all the filter conditions inside
this list.
|
List<RetrievalFilter> |
getOrAll()
Knowledge base data sources are returned if their metadata attributes fulfill at least one of the filter
conditions inside this list.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAndAll(Collection<RetrievalFilter> andAll)
Knowledge base data sources are returned if their metadata attributes fulfill all the filter conditions inside
this list.
|
void |
setOrAll(Collection<RetrievalFilter> orAll)
Knowledge base data sources are returned if their metadata attributes fulfill at least one of the filter
conditions inside this list.
|
String |
toString()
Returns a string representation of this object.
|
RetrievalFilter |
withAndAll(Collection<RetrievalFilter> andAll)
Knowledge base data sources are returned if their metadata attributes fulfill all the filter conditions inside
this list.
|
RetrievalFilter |
withAndAll(RetrievalFilter... andAll)
Knowledge base data sources are returned if their metadata attributes fulfill all the filter conditions inside
this list.
|
RetrievalFilter |
withOrAll(Collection<RetrievalFilter> orAll)
Knowledge base data sources are returned if their metadata attributes fulfill at least one of the filter
conditions inside this list.
|
RetrievalFilter |
withOrAll(RetrievalFilter... orAll)
Knowledge base data sources are returned if their metadata attributes fulfill at least one of the filter
conditions inside this list.
|
public List<RetrievalFilter> getAndAll()
Knowledge base data sources are returned if their metadata attributes fulfill all the filter conditions inside this list.
public void setAndAll(Collection<RetrievalFilter> andAll)
Knowledge base data sources are returned if their metadata attributes fulfill all the filter conditions inside this list.
andAll
- Knowledge base data sources are returned if their metadata attributes fulfill all the filter conditions
inside this list.public RetrievalFilter withAndAll(RetrievalFilter... andAll)
Knowledge base data sources are returned if their metadata attributes fulfill all the filter conditions inside this list.
NOTE: This method appends the values to the existing list (if any). Use
setAndAll(java.util.Collection)
or withAndAll(java.util.Collection)
if you want to override the
existing values.
andAll
- Knowledge base data sources are returned if their metadata attributes fulfill all the filter conditions
inside this list.public RetrievalFilter withAndAll(Collection<RetrievalFilter> andAll)
Knowledge base data sources are returned if their metadata attributes fulfill all the filter conditions inside this list.
andAll
- Knowledge base data sources are returned if their metadata attributes fulfill all the filter conditions
inside this list.public List<RetrievalFilter> getOrAll()
Knowledge base data sources are returned if their metadata attributes fulfill at least one of the filter conditions inside this list.
public void setOrAll(Collection<RetrievalFilter> orAll)
Knowledge base data sources are returned if their metadata attributes fulfill at least one of the filter conditions inside this list.
orAll
- Knowledge base data sources are returned if their metadata attributes fulfill at least one of the filter
conditions inside this list.public RetrievalFilter withOrAll(RetrievalFilter... orAll)
Knowledge base data sources are returned if their metadata attributes fulfill at least one of the filter conditions inside this list.
NOTE: This method appends the values to the existing list (if any). Use
setOrAll(java.util.Collection)
or withOrAll(java.util.Collection)
if you want to override the
existing values.
orAll
- Knowledge base data sources are returned if their metadata attributes fulfill at least one of the filter
conditions inside this list.public RetrievalFilter withOrAll(Collection<RetrievalFilter> orAll)
Knowledge base data sources are returned if their metadata attributes fulfill at least one of the filter conditions inside this list.
orAll
- Knowledge base data sources are returned if their metadata attributes fulfill at least one of the filter
conditions inside this list.public String toString()
toString
in class Object
Object.toString()
public RetrievalFilter clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.