@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DocumentAttributeCondition extends Object implements Serializable, Cloneable, StructuredPojo
 The condition used for the target document attribute or metadata field when ingesting documents into Amazon Q
 Business. You use this with 
 DocumentAttributeTarget  to apply the condition.
 
For example, you can create the 'Department' target field and have it prefill department names associated with the documents based on information in the 'Source_URI' field. Set the condition that if the 'Source_URI' field contains 'financial' in its URI value, then prefill the target field 'Department' with the target value 'Finance' for the document.
 Amazon Q Business can't create a target field if it has not already been created as an index field. After you create
 your index field, you can create a document metadata field using DocumentAttributeTarget. Amazon Q
 Business then will map your newly created metadata field to your index field.
 
| Constructor and Description | 
|---|
| DocumentAttributeCondition() | 
| Modifier and Type | Method and Description | 
|---|---|
| DocumentAttributeCondition | clone() | 
| boolean | equals(Object obj) | 
| String | getKey()
 The identifier of the document attribute used for the condition. | 
| String | getOperator()
 The identifier of the document attribute used for the condition. | 
| DocumentAttributeValue | getValue() | 
| int | hashCode() | 
| void | marshall(ProtocolMarshaller protocolMarshaller)Marshalls this structured data using the given  ProtocolMarshaller. | 
| void | setKey(String key)
 The identifier of the document attribute used for the condition. | 
| void | setOperator(String operator)
 The identifier of the document attribute used for the condition. | 
| void | setValue(DocumentAttributeValue value) | 
| String | toString()Returns a string representation of this object. | 
| DocumentAttributeCondition | withKey(String key)
 The identifier of the document attribute used for the condition. | 
| DocumentAttributeCondition | withOperator(DocumentEnrichmentConditionOperator operator)
 The identifier of the document attribute used for the condition. | 
| DocumentAttributeCondition | withOperator(String operator)
 The identifier of the document attribute used for the condition. | 
| DocumentAttributeCondition | withValue(DocumentAttributeValue value) | 
public void setKey(String key)
The identifier of the document attribute used for the condition.
For example, 'Source_URI' could be an identifier for the attribute or metadata field that contains source URIs associated with the documents.
 Amazon Q Business currently doesn't support _document_body as an attribute key used for the
 condition.
 
key - The identifier of the document attribute used for the condition.
        For example, 'Source_URI' could be an identifier for the attribute or metadata field that contains source URIs associated with the documents.
        Amazon Q Business currently doesn't support _document_body as an attribute key used for the
        condition.
public String getKey()
The identifier of the document attribute used for the condition.
For example, 'Source_URI' could be an identifier for the attribute or metadata field that contains source URIs associated with the documents.
 Amazon Q Business currently doesn't support _document_body as an attribute key used for the
 condition.
 
For example, 'Source_URI' could be an identifier for the attribute or metadata field that contains source URIs associated with the documents.
         Amazon Q Business currently doesn't support _document_body as an attribute key used for the
         condition.
public DocumentAttributeCondition withKey(String key)
The identifier of the document attribute used for the condition.
For example, 'Source_URI' could be an identifier for the attribute or metadata field that contains source URIs associated with the documents.
 Amazon Q Business currently doesn't support _document_body as an attribute key used for the
 condition.
 
key - The identifier of the document attribute used for the condition.
        For example, 'Source_URI' could be an identifier for the attribute or metadata field that contains source URIs associated with the documents.
        Amazon Q Business currently doesn't support _document_body as an attribute key used for the
        condition.
public void setOperator(String operator)
The identifier of the document attribute used for the condition.
For example, 'Source_URI' could be an identifier for the attribute or metadata field that contains source URIs associated with the documents.
 Amazon Q Business currently does not support _document_body as an attribute key used for the
 condition.
 
operator - The identifier of the document attribute used for the condition.
        For example, 'Source_URI' could be an identifier for the attribute or metadata field that contains source URIs associated with the documents.
        Amazon Q Business currently does not support _document_body as an attribute key used for the
        condition.
DocumentEnrichmentConditionOperatorpublic String getOperator()
The identifier of the document attribute used for the condition.
For example, 'Source_URI' could be an identifier for the attribute or metadata field that contains source URIs associated with the documents.
 Amazon Q Business currently does not support _document_body as an attribute key used for the
 condition.
 
For example, 'Source_URI' could be an identifier for the attribute or metadata field that contains source URIs associated with the documents.
         Amazon Q Business currently does not support _document_body as an attribute key used for the
         condition.
DocumentEnrichmentConditionOperatorpublic DocumentAttributeCondition withOperator(String operator)
The identifier of the document attribute used for the condition.
For example, 'Source_URI' could be an identifier for the attribute or metadata field that contains source URIs associated with the documents.
 Amazon Q Business currently does not support _document_body as an attribute key used for the
 condition.
 
operator - The identifier of the document attribute used for the condition.
        For example, 'Source_URI' could be an identifier for the attribute or metadata field that contains source URIs associated with the documents.
        Amazon Q Business currently does not support _document_body as an attribute key used for the
        condition.
DocumentEnrichmentConditionOperatorpublic DocumentAttributeCondition withOperator(DocumentEnrichmentConditionOperator operator)
The identifier of the document attribute used for the condition.
For example, 'Source_URI' could be an identifier for the attribute or metadata field that contains source URIs associated with the documents.
 Amazon Q Business currently does not support _document_body as an attribute key used for the
 condition.
 
operator - The identifier of the document attribute used for the condition.
        For example, 'Source_URI' could be an identifier for the attribute or metadata field that contains source URIs associated with the documents.
        Amazon Q Business currently does not support _document_body as an attribute key used for the
        condition.
DocumentEnrichmentConditionOperatorpublic void setValue(DocumentAttributeValue value)
value - public DocumentAttributeValue getValue()
public DocumentAttributeCondition withValue(DocumentAttributeValue value)
value - public String toString()
toString in class ObjectObject.toString()public DocumentAttributeCondition clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.