/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace kendra { namespace Model { class DescribeFeaturedResultsSetResult { public: AWS_KENDRA_API DescribeFeaturedResultsSetResult(); AWS_KENDRA_API DescribeFeaturedResultsSetResult(const Aws::AmazonWebServiceResult& result); AWS_KENDRA_API DescribeFeaturedResultsSetResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The identifier of the set of featured results.

*/ inline const Aws::String& GetFeaturedResultsSetId() const{ return m_featuredResultsSetId; } /** *

The identifier of the set of featured results.

*/ inline void SetFeaturedResultsSetId(const Aws::String& value) { m_featuredResultsSetId = value; } /** *

The identifier of the set of featured results.

*/ inline void SetFeaturedResultsSetId(Aws::String&& value) { m_featuredResultsSetId = std::move(value); } /** *

The identifier of the set of featured results.

*/ inline void SetFeaturedResultsSetId(const char* value) { m_featuredResultsSetId.assign(value); } /** *

The identifier of the set of featured results.

*/ inline DescribeFeaturedResultsSetResult& WithFeaturedResultsSetId(const Aws::String& value) { SetFeaturedResultsSetId(value); return *this;} /** *

The identifier of the set of featured results.

*/ inline DescribeFeaturedResultsSetResult& WithFeaturedResultsSetId(Aws::String&& value) { SetFeaturedResultsSetId(std::move(value)); return *this;} /** *

The identifier of the set of featured results.

*/ inline DescribeFeaturedResultsSetResult& WithFeaturedResultsSetId(const char* value) { SetFeaturedResultsSetId(value); return *this;} /** *

The name for the set of featured results.

*/ inline const Aws::String& GetFeaturedResultsSetName() const{ return m_featuredResultsSetName; } /** *

The name for the set of featured results.

*/ inline void SetFeaturedResultsSetName(const Aws::String& value) { m_featuredResultsSetName = value; } /** *

The name for the set of featured results.

*/ inline void SetFeaturedResultsSetName(Aws::String&& value) { m_featuredResultsSetName = std::move(value); } /** *

The name for the set of featured results.

*/ inline void SetFeaturedResultsSetName(const char* value) { m_featuredResultsSetName.assign(value); } /** *

The name for the set of featured results.

*/ inline DescribeFeaturedResultsSetResult& WithFeaturedResultsSetName(const Aws::String& value) { SetFeaturedResultsSetName(value); return *this;} /** *

The name for the set of featured results.

*/ inline DescribeFeaturedResultsSetResult& WithFeaturedResultsSetName(Aws::String&& value) { SetFeaturedResultsSetName(std::move(value)); return *this;} /** *

The name for the set of featured results.

*/ inline DescribeFeaturedResultsSetResult& WithFeaturedResultsSetName(const char* value) { SetFeaturedResultsSetName(value); return *this;} /** *

The description for the set of featured results.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

The description for the set of featured results.

*/ inline void SetDescription(const Aws::String& value) { m_description = value; } /** *

The description for the set of featured results.

*/ inline void SetDescription(Aws::String&& value) { m_description = std::move(value); } /** *

The description for the set of featured results.

*/ inline void SetDescription(const char* value) { m_description.assign(value); } /** *

The description for the set of featured results.

*/ inline DescribeFeaturedResultsSetResult& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

The description for the set of featured results.

*/ inline DescribeFeaturedResultsSetResult& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

The description for the set of featured results.

*/ inline DescribeFeaturedResultsSetResult& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

The current status of the set of featured results. When the value is * ACTIVE, featured results are ready for use. You can still configure * your settings before setting the status to ACTIVE. You can set the * status to ACTIVE or INACTIVE using the UpdateFeaturedResultsSet * API. The queries you specify for featured results must be unique per featured * results set for each index, whether the status is ACTIVE or * INACTIVE.

*/ inline const FeaturedResultsSetStatus& GetStatus() const{ return m_status; } /** *

The current status of the set of featured results. When the value is * ACTIVE, featured results are ready for use. You can still configure * your settings before setting the status to ACTIVE. You can set the * status to ACTIVE or INACTIVE using the UpdateFeaturedResultsSet * API. The queries you specify for featured results must be unique per featured * results set for each index, whether the status is ACTIVE or * INACTIVE.

*/ inline void SetStatus(const FeaturedResultsSetStatus& value) { m_status = value; } /** *

The current status of the set of featured results. When the value is * ACTIVE, featured results are ready for use. You can still configure * your settings before setting the status to ACTIVE. You can set the * status to ACTIVE or INACTIVE using the UpdateFeaturedResultsSet * API. The queries you specify for featured results must be unique per featured * results set for each index, whether the status is ACTIVE or * INACTIVE.

*/ inline void SetStatus(FeaturedResultsSetStatus&& value) { m_status = std::move(value); } /** *

The current status of the set of featured results. When the value is * ACTIVE, featured results are ready for use. You can still configure * your settings before setting the status to ACTIVE. You can set the * status to ACTIVE or INACTIVE using the UpdateFeaturedResultsSet * API. The queries you specify for featured results must be unique per featured * results set for each index, whether the status is ACTIVE or * INACTIVE.

*/ inline DescribeFeaturedResultsSetResult& WithStatus(const FeaturedResultsSetStatus& value) { SetStatus(value); return *this;} /** *

The current status of the set of featured results. When the value is * ACTIVE, featured results are ready for use. You can still configure * your settings before setting the status to ACTIVE. You can set the * status to ACTIVE or INACTIVE using the UpdateFeaturedResultsSet * API. The queries you specify for featured results must be unique per featured * results set for each index, whether the status is ACTIVE or * INACTIVE.

*/ inline DescribeFeaturedResultsSetResult& WithStatus(FeaturedResultsSetStatus&& value) { SetStatus(std::move(value)); return *this;} /** *

The list of queries for featuring results. For more information on the list * of queries, see FeaturedResultsSet.

*/ inline const Aws::Vector& GetQueryTexts() const{ return m_queryTexts; } /** *

The list of queries for featuring results. For more information on the list * of queries, see FeaturedResultsSet.

*/ inline void SetQueryTexts(const Aws::Vector& value) { m_queryTexts = value; } /** *

The list of queries for featuring results. For more information on the list * of queries, see FeaturedResultsSet.

*/ inline void SetQueryTexts(Aws::Vector&& value) { m_queryTexts = std::move(value); } /** *

The list of queries for featuring results. For more information on the list * of queries, see FeaturedResultsSet.

*/ inline DescribeFeaturedResultsSetResult& WithQueryTexts(const Aws::Vector& value) { SetQueryTexts(value); return *this;} /** *

The list of queries for featuring results. For more information on the list * of queries, see FeaturedResultsSet.

*/ inline DescribeFeaturedResultsSetResult& WithQueryTexts(Aws::Vector&& value) { SetQueryTexts(std::move(value)); return *this;} /** *

The list of queries for featuring results. For more information on the list * of queries, see FeaturedResultsSet.

*/ inline DescribeFeaturedResultsSetResult& AddQueryTexts(const Aws::String& value) { m_queryTexts.push_back(value); return *this; } /** *

The list of queries for featuring results. For more information on the list * of queries, see FeaturedResultsSet.

*/ inline DescribeFeaturedResultsSetResult& AddQueryTexts(Aws::String&& value) { m_queryTexts.push_back(std::move(value)); return *this; } /** *

The list of queries for featuring results. For more information on the list * of queries, see FeaturedResultsSet.

*/ inline DescribeFeaturedResultsSetResult& AddQueryTexts(const char* value) { m_queryTexts.push_back(value); return *this; } /** *

The list of document IDs for the documents you want to feature with their * metadata information. For more information on the list of featured documents, * see FeaturedResultsSet.

*/ inline const Aws::Vector& GetFeaturedDocumentsWithMetadata() const{ return m_featuredDocumentsWithMetadata; } /** *

The list of document IDs for the documents you want to feature with their * metadata information. For more information on the list of featured documents, * see FeaturedResultsSet.

*/ inline void SetFeaturedDocumentsWithMetadata(const Aws::Vector& value) { m_featuredDocumentsWithMetadata = value; } /** *

The list of document IDs for the documents you want to feature with their * metadata information. For more information on the list of featured documents, * see FeaturedResultsSet.

*/ inline void SetFeaturedDocumentsWithMetadata(Aws::Vector&& value) { m_featuredDocumentsWithMetadata = std::move(value); } /** *

The list of document IDs for the documents you want to feature with their * metadata information. For more information on the list of featured documents, * see FeaturedResultsSet.

*/ inline DescribeFeaturedResultsSetResult& WithFeaturedDocumentsWithMetadata(const Aws::Vector& value) { SetFeaturedDocumentsWithMetadata(value); return *this;} /** *

The list of document IDs for the documents you want to feature with their * metadata information. For more information on the list of featured documents, * see FeaturedResultsSet.

*/ inline DescribeFeaturedResultsSetResult& WithFeaturedDocumentsWithMetadata(Aws::Vector&& value) { SetFeaturedDocumentsWithMetadata(std::move(value)); return *this;} /** *

The list of document IDs for the documents you want to feature with their * metadata information. For more information on the list of featured documents, * see FeaturedResultsSet.

*/ inline DescribeFeaturedResultsSetResult& AddFeaturedDocumentsWithMetadata(const FeaturedDocumentWithMetadata& value) { m_featuredDocumentsWithMetadata.push_back(value); return *this; } /** *

The list of document IDs for the documents you want to feature with their * metadata information. For more information on the list of featured documents, * see FeaturedResultsSet.

*/ inline DescribeFeaturedResultsSetResult& AddFeaturedDocumentsWithMetadata(FeaturedDocumentWithMetadata&& value) { m_featuredDocumentsWithMetadata.push_back(std::move(value)); return *this; } /** *

The list of document IDs that don't exist but you have specified as featured * documents. Amazon Kendra cannot feature these documents if they don't exist in * the index. You can check the status of a document and its ID or check for * documents with status errors using the BatchGetDocumentStatus * API.

*/ inline const Aws::Vector& GetFeaturedDocumentsMissing() const{ return m_featuredDocumentsMissing; } /** *

The list of document IDs that don't exist but you have specified as featured * documents. Amazon Kendra cannot feature these documents if they don't exist in * the index. You can check the status of a document and its ID or check for * documents with status errors using the BatchGetDocumentStatus * API.

*/ inline void SetFeaturedDocumentsMissing(const Aws::Vector& value) { m_featuredDocumentsMissing = value; } /** *

The list of document IDs that don't exist but you have specified as featured * documents. Amazon Kendra cannot feature these documents if they don't exist in * the index. You can check the status of a document and its ID or check for * documents with status errors using the BatchGetDocumentStatus * API.

*/ inline void SetFeaturedDocumentsMissing(Aws::Vector&& value) { m_featuredDocumentsMissing = std::move(value); } /** *

The list of document IDs that don't exist but you have specified as featured * documents. Amazon Kendra cannot feature these documents if they don't exist in * the index. You can check the status of a document and its ID or check for * documents with status errors using the BatchGetDocumentStatus * API.

*/ inline DescribeFeaturedResultsSetResult& WithFeaturedDocumentsMissing(const Aws::Vector& value) { SetFeaturedDocumentsMissing(value); return *this;} /** *

The list of document IDs that don't exist but you have specified as featured * documents. Amazon Kendra cannot feature these documents if they don't exist in * the index. You can check the status of a document and its ID or check for * documents with status errors using the BatchGetDocumentStatus * API.

*/ inline DescribeFeaturedResultsSetResult& WithFeaturedDocumentsMissing(Aws::Vector&& value) { SetFeaturedDocumentsMissing(std::move(value)); return *this;} /** *

The list of document IDs that don't exist but you have specified as featured * documents. Amazon Kendra cannot feature these documents if they don't exist in * the index. You can check the status of a document and its ID or check for * documents with status errors using the BatchGetDocumentStatus * API.

*/ inline DescribeFeaturedResultsSetResult& AddFeaturedDocumentsMissing(const FeaturedDocumentMissing& value) { m_featuredDocumentsMissing.push_back(value); return *this; } /** *

The list of document IDs that don't exist but you have specified as featured * documents. Amazon Kendra cannot feature these documents if they don't exist in * the index. You can check the status of a document and its ID or check for * documents with status errors using the BatchGetDocumentStatus * API.

*/ inline DescribeFeaturedResultsSetResult& AddFeaturedDocumentsMissing(FeaturedDocumentMissing&& value) { m_featuredDocumentsMissing.push_back(std::move(value)); return *this; } /** *

The timestamp when the set of featured results was last updated.

*/ inline long long GetLastUpdatedTimestamp() const{ return m_lastUpdatedTimestamp; } /** *

The timestamp when the set of featured results was last updated.

*/ inline void SetLastUpdatedTimestamp(long long value) { m_lastUpdatedTimestamp = value; } /** *

The timestamp when the set of featured results was last updated.

*/ inline DescribeFeaturedResultsSetResult& WithLastUpdatedTimestamp(long long value) { SetLastUpdatedTimestamp(value); return *this;} /** *

The Unix timestamp when the set of the featured results was created.

*/ inline long long GetCreationTimestamp() const{ return m_creationTimestamp; } /** *

The Unix timestamp when the set of the featured results was created.

*/ inline void SetCreationTimestamp(long long value) { m_creationTimestamp = value; } /** *

The Unix timestamp when the set of the featured results was created.

*/ inline DescribeFeaturedResultsSetResult& WithCreationTimestamp(long long value) { SetCreationTimestamp(value); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline DescribeFeaturedResultsSetResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline DescribeFeaturedResultsSetResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline DescribeFeaturedResultsSetResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_featuredResultsSetId; Aws::String m_featuredResultsSetName; Aws::String m_description; FeaturedResultsSetStatus m_status; Aws::Vector m_queryTexts; Aws::Vector m_featuredDocumentsWithMetadata; Aws::Vector m_featuredDocumentsMissing; long long m_lastUpdatedTimestamp; long long m_creationTimestamp; Aws::String m_requestId; }; } // namespace Model } // namespace kendra } // namespace Aws