AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
RescoreRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/kendra-ranking/KendraRankingRequest.h>
10#include <aws/kendra-ranking/KendraRanking_EXPORTS.h>
11#include <aws/kendra-ranking/model/Document.h>
12
13#include <utility>
14
15namespace Aws {
16namespace KendraRanking {
17namespace Model {
18
22 public:
23 AWS_KENDRARANKING_API RescoreRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "Rescore"; }
30
31 AWS_KENDRARANKING_API Aws::String SerializePayload() const override;
32
33 AWS_KENDRARANKING_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
34
36
41 inline const Aws::String& GetRescoreExecutionPlanId() const { return m_rescoreExecutionPlanId; }
42 inline bool RescoreExecutionPlanIdHasBeenSet() const { return m_rescoreExecutionPlanIdHasBeenSet; }
43 template <typename RescoreExecutionPlanIdT = Aws::String>
44 void SetRescoreExecutionPlanId(RescoreExecutionPlanIdT&& value) {
45 m_rescoreExecutionPlanIdHasBeenSet = true;
46 m_rescoreExecutionPlanId = std::forward<RescoreExecutionPlanIdT>(value);
47 }
48 template <typename RescoreExecutionPlanIdT = Aws::String>
49 RescoreRequest& WithRescoreExecutionPlanId(RescoreExecutionPlanIdT&& value) {
50 SetRescoreExecutionPlanId(std::forward<RescoreExecutionPlanIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetSearchQuery() const { return m_searchQuery; }
60 inline bool SearchQueryHasBeenSet() const { return m_searchQueryHasBeenSet; }
61 template <typename SearchQueryT = Aws::String>
62 void SetSearchQuery(SearchQueryT&& value) {
63 m_searchQueryHasBeenSet = true;
64 m_searchQuery = std::forward<SearchQueryT>(value);
65 }
66 template <typename SearchQueryT = Aws::String>
67 RescoreRequest& WithSearchQuery(SearchQueryT&& value) {
68 SetSearchQuery(std::forward<SearchQueryT>(value));
69 return *this;
70 }
72
74
78 inline const Aws::Vector<Document>& GetDocuments() const { return m_documents; }
79 inline bool DocumentsHasBeenSet() const { return m_documentsHasBeenSet; }
80 template <typename DocumentsT = Aws::Vector<Document>>
81 void SetDocuments(DocumentsT&& value) {
82 m_documentsHasBeenSet = true;
83 m_documents = std::forward<DocumentsT>(value);
84 }
85 template <typename DocumentsT = Aws::Vector<Document>>
86 RescoreRequest& WithDocuments(DocumentsT&& value) {
87 SetDocuments(std::forward<DocumentsT>(value));
88 return *this;
89 }
90 template <typename DocumentsT = Document>
91 RescoreRequest& AddDocuments(DocumentsT&& value) {
92 m_documentsHasBeenSet = true;
93 m_documents.emplace_back(std::forward<DocumentsT>(value));
94 return *this;
95 }
97 private:
98 Aws::String m_rescoreExecutionPlanId;
99
100 Aws::String m_searchQuery;
101
102 Aws::Vector<Document> m_documents;
103 bool m_rescoreExecutionPlanIdHasBeenSet = false;
104 bool m_searchQueryHasBeenSet = false;
105 bool m_documentsHasBeenSet = false;
106};
107
108} // namespace Model
109} // namespace KendraRanking
110} // namespace Aws
const Aws::Vector< Document > & GetDocuments() const
RescoreRequest & WithRescoreExecutionPlanId(RescoreExecutionPlanIdT &&value)
AWS_KENDRARANKING_API RescoreRequest()=default
const Aws::String & GetRescoreExecutionPlanId() const
RescoreRequest & AddDocuments(DocumentsT &&value)
virtual const char * GetServiceRequestName() const override
AWS_KENDRARANKING_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetSearchQuery(SearchQueryT &&value)
const Aws::String & GetSearchQuery() const
void SetRescoreExecutionPlanId(RescoreExecutionPlanIdT &&value)
RescoreRequest & WithSearchQuery(SearchQueryT &&value)
RescoreRequest & WithDocuments(DocumentsT &&value)
AWS_KENDRARANKING_API Aws::String SerializePayload() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector