@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class SourceDocument extends Object implements Serializable, Cloneable, StructuredPojo
The document ID and its fields/attributes that are used for a query suggestion, if document fields set to use for query suggestions.
Constructor and Description |
---|
SourceDocument() |
Modifier and Type | Method and Description |
---|---|
SourceDocument |
clone() |
boolean |
equals(Object obj) |
List<DocumentAttribute> |
getAdditionalAttributes()
The additional fields/attributes to include in the response.
|
String |
getDocumentId()
The identifier of the document used for a query suggestion.
|
List<String> |
getSuggestionAttributes()
The document fields/attributes used for a query suggestion.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAdditionalAttributes(Collection<DocumentAttribute> additionalAttributes)
The additional fields/attributes to include in the response.
|
void |
setDocumentId(String documentId)
The identifier of the document used for a query suggestion.
|
void |
setSuggestionAttributes(Collection<String> suggestionAttributes)
The document fields/attributes used for a query suggestion.
|
String |
toString()
Returns a string representation of this object.
|
SourceDocument |
withAdditionalAttributes(Collection<DocumentAttribute> additionalAttributes)
The additional fields/attributes to include in the response.
|
SourceDocument |
withAdditionalAttributes(DocumentAttribute... additionalAttributes)
The additional fields/attributes to include in the response.
|
SourceDocument |
withDocumentId(String documentId)
The identifier of the document used for a query suggestion.
|
SourceDocument |
withSuggestionAttributes(Collection<String> suggestionAttributes)
The document fields/attributes used for a query suggestion.
|
SourceDocument |
withSuggestionAttributes(String... suggestionAttributes)
The document fields/attributes used for a query suggestion.
|
public void setDocumentId(String documentId)
The identifier of the document used for a query suggestion.
documentId
- The identifier of the document used for a query suggestion.public String getDocumentId()
The identifier of the document used for a query suggestion.
public SourceDocument withDocumentId(String documentId)
The identifier of the document used for a query suggestion.
documentId
- The identifier of the document used for a query suggestion.public List<String> getSuggestionAttributes()
The document fields/attributes used for a query suggestion.
public void setSuggestionAttributes(Collection<String> suggestionAttributes)
The document fields/attributes used for a query suggestion.
suggestionAttributes
- The document fields/attributes used for a query suggestion.public SourceDocument withSuggestionAttributes(String... suggestionAttributes)
The document fields/attributes used for a query suggestion.
NOTE: This method appends the values to the existing list (if any). Use
setSuggestionAttributes(java.util.Collection)
or withSuggestionAttributes(java.util.Collection)
if you want to override the existing values.
suggestionAttributes
- The document fields/attributes used for a query suggestion.public SourceDocument withSuggestionAttributes(Collection<String> suggestionAttributes)
The document fields/attributes used for a query suggestion.
suggestionAttributes
- The document fields/attributes used for a query suggestion.public List<DocumentAttribute> getAdditionalAttributes()
The additional fields/attributes to include in the response. You can use additional fields to provide extra information in the response. Additional fields are not used to based suggestions on.
public void setAdditionalAttributes(Collection<DocumentAttribute> additionalAttributes)
The additional fields/attributes to include in the response. You can use additional fields to provide extra information in the response. Additional fields are not used to based suggestions on.
additionalAttributes
- The additional fields/attributes to include in the response. You can use additional fields to provide
extra information in the response. Additional fields are not used to based suggestions on.public SourceDocument withAdditionalAttributes(DocumentAttribute... additionalAttributes)
The additional fields/attributes to include in the response. You can use additional fields to provide extra information in the response. Additional fields are not used to based suggestions on.
NOTE: This method appends the values to the existing list (if any). Use
setAdditionalAttributes(java.util.Collection)
or withAdditionalAttributes(java.util.Collection)
if you want to override the existing values.
additionalAttributes
- The additional fields/attributes to include in the response. You can use additional fields to provide
extra information in the response. Additional fields are not used to based suggestions on.public SourceDocument withAdditionalAttributes(Collection<DocumentAttribute> additionalAttributes)
The additional fields/attributes to include in the response. You can use additional fields to provide extra information in the response. Additional fields are not used to based suggestions on.
additionalAttributes
- The additional fields/attributes to include in the response. You can use additional fields to provide
extra information in the response. Additional fields are not used to based suggestions on.public String toString()
toString
in class Object
Object.toString()
public SourceDocument clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.