/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace kendra { namespace Model { /** *

The document ID and its fields/attributes that are used for a query * suggestion, if document fields set to use for query suggestions.

See * Also:

AWS * API Reference

*/ class SourceDocument { public: AWS_KENDRA_API SourceDocument(); AWS_KENDRA_API SourceDocument(Aws::Utils::Json::JsonView jsonValue); AWS_KENDRA_API SourceDocument& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_KENDRA_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The identifier of the document used for a query suggestion.

*/ inline const Aws::String& GetDocumentId() const{ return m_documentId; } /** *

The identifier of the document used for a query suggestion.

*/ inline bool DocumentIdHasBeenSet() const { return m_documentIdHasBeenSet; } /** *

The identifier of the document used for a query suggestion.

*/ inline void SetDocumentId(const Aws::String& value) { m_documentIdHasBeenSet = true; m_documentId = value; } /** *

The identifier of the document used for a query suggestion.

*/ inline void SetDocumentId(Aws::String&& value) { m_documentIdHasBeenSet = true; m_documentId = std::move(value); } /** *

The identifier of the document used for a query suggestion.

*/ inline void SetDocumentId(const char* value) { m_documentIdHasBeenSet = true; m_documentId.assign(value); } /** *

The identifier of the document used for a query suggestion.

*/ inline SourceDocument& WithDocumentId(const Aws::String& value) { SetDocumentId(value); return *this;} /** *

The identifier of the document used for a query suggestion.

*/ inline SourceDocument& WithDocumentId(Aws::String&& value) { SetDocumentId(std::move(value)); return *this;} /** *

The identifier of the document used for a query suggestion.

*/ inline SourceDocument& WithDocumentId(const char* value) { SetDocumentId(value); return *this;} /** *

The document fields/attributes used for a query suggestion.

*/ inline const Aws::Vector& GetSuggestionAttributes() const{ return m_suggestionAttributes; } /** *

The document fields/attributes used for a query suggestion.

*/ inline bool SuggestionAttributesHasBeenSet() const { return m_suggestionAttributesHasBeenSet; } /** *

The document fields/attributes used for a query suggestion.

*/ inline void SetSuggestionAttributes(const Aws::Vector& value) { m_suggestionAttributesHasBeenSet = true; m_suggestionAttributes = value; } /** *

The document fields/attributes used for a query suggestion.

*/ inline void SetSuggestionAttributes(Aws::Vector&& value) { m_suggestionAttributesHasBeenSet = true; m_suggestionAttributes = std::move(value); } /** *

The document fields/attributes used for a query suggestion.

*/ inline SourceDocument& WithSuggestionAttributes(const Aws::Vector& value) { SetSuggestionAttributes(value); return *this;} /** *

The document fields/attributes used for a query suggestion.

*/ inline SourceDocument& WithSuggestionAttributes(Aws::Vector&& value) { SetSuggestionAttributes(std::move(value)); return *this;} /** *

The document fields/attributes used for a query suggestion.

*/ inline SourceDocument& AddSuggestionAttributes(const Aws::String& value) { m_suggestionAttributesHasBeenSet = true; m_suggestionAttributes.push_back(value); return *this; } /** *

The document fields/attributes used for a query suggestion.

*/ inline SourceDocument& AddSuggestionAttributes(Aws::String&& value) { m_suggestionAttributesHasBeenSet = true; m_suggestionAttributes.push_back(std::move(value)); return *this; } /** *

The document fields/attributes used for a query suggestion.

*/ inline SourceDocument& AddSuggestionAttributes(const char* value) { m_suggestionAttributesHasBeenSet = true; m_suggestionAttributes.push_back(value); return *this; } /** *

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.

*/ inline const Aws::Vector& GetAdditionalAttributes() const{ return m_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.

*/ inline bool AdditionalAttributesHasBeenSet() const { return m_additionalAttributesHasBeenSet; } /** *

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.

*/ inline void SetAdditionalAttributes(const Aws::Vector& value) { m_additionalAttributesHasBeenSet = true; m_additionalAttributes = value; } /** *

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.

*/ inline void SetAdditionalAttributes(Aws::Vector&& value) { m_additionalAttributesHasBeenSet = true; m_additionalAttributes = std::move(value); } /** *

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.

*/ inline SourceDocument& WithAdditionalAttributes(const Aws::Vector& value) { SetAdditionalAttributes(value); return *this;} /** *

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.

*/ inline SourceDocument& WithAdditionalAttributes(Aws::Vector&& value) { SetAdditionalAttributes(std::move(value)); return *this;} /** *

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.

*/ inline SourceDocument& AddAdditionalAttributes(const DocumentAttribute& value) { m_additionalAttributesHasBeenSet = true; m_additionalAttributes.push_back(value); return *this; } /** *

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.

*/ inline SourceDocument& AddAdditionalAttributes(DocumentAttribute&& value) { m_additionalAttributesHasBeenSet = true; m_additionalAttributes.push_back(std::move(value)); return *this; } private: Aws::String m_documentId; bool m_documentIdHasBeenSet = false; Aws::Vector m_suggestionAttributes; bool m_suggestionAttributesHasBeenSet = false; Aws::Vector m_additionalAttributes; bool m_additionalAttributesHasBeenSet = false; }; } // namespace Model } // namespace kendra } // namespace Aws