AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
RescoreRequest.h
1
6#pragma once
7#include <aws/kendra-ranking/KendraRanking_EXPORTS.h>
8#include <aws/kendra-ranking/KendraRankingRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/kendra-ranking/model/Document.h>
12#include <utility>
13
14namespace Aws
15{
16namespace KendraRanking
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_KENDRARANKING_API RescoreRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "Rescore"; }
33
34 AWS_KENDRARANKING_API Aws::String SerializePayload() const override;
35
36 AWS_KENDRARANKING_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
38
40
45 inline const Aws::String& GetRescoreExecutionPlanId() const { return m_rescoreExecutionPlanId; }
46 inline bool RescoreExecutionPlanIdHasBeenSet() const { return m_rescoreExecutionPlanIdHasBeenSet; }
47 template<typename RescoreExecutionPlanIdT = Aws::String>
48 void SetRescoreExecutionPlanId(RescoreExecutionPlanIdT&& value) { m_rescoreExecutionPlanIdHasBeenSet = true; m_rescoreExecutionPlanId = std::forward<RescoreExecutionPlanIdT>(value); }
49 template<typename RescoreExecutionPlanIdT = Aws::String>
50 RescoreRequest& WithRescoreExecutionPlanId(RescoreExecutionPlanIdT&& value) { SetRescoreExecutionPlanId(std::forward<RescoreExecutionPlanIdT>(value)); return *this;}
52
54
57 inline const Aws::String& GetSearchQuery() const { return m_searchQuery; }
58 inline bool SearchQueryHasBeenSet() const { return m_searchQueryHasBeenSet; }
59 template<typename SearchQueryT = Aws::String>
60 void SetSearchQuery(SearchQueryT&& value) { m_searchQueryHasBeenSet = true; m_searchQuery = std::forward<SearchQueryT>(value); }
61 template<typename SearchQueryT = Aws::String>
62 RescoreRequest& WithSearchQuery(SearchQueryT&& value) { SetSearchQuery(std::forward<SearchQueryT>(value)); return *this;}
64
66
70 inline const Aws::Vector<Document>& GetDocuments() const { return m_documents; }
71 inline bool DocumentsHasBeenSet() const { return m_documentsHasBeenSet; }
72 template<typename DocumentsT = Aws::Vector<Document>>
73 void SetDocuments(DocumentsT&& value) { m_documentsHasBeenSet = true; m_documents = std::forward<DocumentsT>(value); }
74 template<typename DocumentsT = Aws::Vector<Document>>
75 RescoreRequest& WithDocuments(DocumentsT&& value) { SetDocuments(std::forward<DocumentsT>(value)); return *this;}
76 template<typename DocumentsT = Document>
77 RescoreRequest& AddDocuments(DocumentsT&& value) { m_documentsHasBeenSet = true; m_documents.emplace_back(std::forward<DocumentsT>(value)); return *this; }
79 private:
80
81 Aws::String m_rescoreExecutionPlanId;
82 bool m_rescoreExecutionPlanIdHasBeenSet = false;
83
84 Aws::String m_searchQuery;
85 bool m_searchQueryHasBeenSet = false;
86
87 Aws::Vector<Document> m_documents;
88 bool m_documentsHasBeenSet = false;
89 };
90
91} // namespace Model
92} // namespace KendraRanking
93} // 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