AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetRescoreExecutionPlanId(const Aws::String& value) { m_rescoreExecutionPlanIdHasBeenSet = true; m_rescoreExecutionPlanId = value; }
48 inline void SetRescoreExecutionPlanId(Aws::String&& value) { m_rescoreExecutionPlanIdHasBeenSet = true; m_rescoreExecutionPlanId = std::move(value); }
49 inline void SetRescoreExecutionPlanId(const char* value) { m_rescoreExecutionPlanIdHasBeenSet = true; m_rescoreExecutionPlanId.assign(value); }
51 inline RescoreRequest& WithRescoreExecutionPlanId(Aws::String&& value) { SetRescoreExecutionPlanId(std::move(value)); return *this;}
52 inline RescoreRequest& WithRescoreExecutionPlanId(const char* value) { SetRescoreExecutionPlanId(value); return *this;}
54
56
59 inline const Aws::String& GetSearchQuery() const{ return m_searchQuery; }
60 inline bool SearchQueryHasBeenSet() const { return m_searchQueryHasBeenSet; }
61 inline void SetSearchQuery(const Aws::String& value) { m_searchQueryHasBeenSet = true; m_searchQuery = value; }
62 inline void SetSearchQuery(Aws::String&& value) { m_searchQueryHasBeenSet = true; m_searchQuery = std::move(value); }
63 inline void SetSearchQuery(const char* value) { m_searchQueryHasBeenSet = true; m_searchQuery.assign(value); }
64 inline RescoreRequest& WithSearchQuery(const Aws::String& value) { SetSearchQuery(value); return *this;}
65 inline RescoreRequest& WithSearchQuery(Aws::String&& value) { SetSearchQuery(std::move(value)); return *this;}
66 inline RescoreRequest& WithSearchQuery(const char* value) { SetSearchQuery(value); return *this;}
68
70
74 inline const Aws::Vector<Document>& GetDocuments() const{ return m_documents; }
75 inline bool DocumentsHasBeenSet() const { return m_documentsHasBeenSet; }
76 inline void SetDocuments(const Aws::Vector<Document>& value) { m_documentsHasBeenSet = true; m_documents = value; }
77 inline void SetDocuments(Aws::Vector<Document>&& value) { m_documentsHasBeenSet = true; m_documents = std::move(value); }
78 inline RescoreRequest& WithDocuments(const Aws::Vector<Document>& value) { SetDocuments(value); return *this;}
79 inline RescoreRequest& WithDocuments(Aws::Vector<Document>&& value) { SetDocuments(std::move(value)); return *this;}
80 inline RescoreRequest& AddDocuments(const Document& value) { m_documentsHasBeenSet = true; m_documents.push_back(value); return *this; }
81 inline RescoreRequest& AddDocuments(Document&& value) { m_documentsHasBeenSet = true; m_documents.push_back(std::move(value)); return *this; }
83 private:
84
85 Aws::String m_rescoreExecutionPlanId;
86 bool m_rescoreExecutionPlanIdHasBeenSet = false;
87
88 Aws::String m_searchQuery;
89 bool m_searchQueryHasBeenSet = false;
90
91 Aws::Vector<Document> m_documents;
92 bool m_documentsHasBeenSet = false;
93 };
94
95} // namespace Model
96} // namespace KendraRanking
97} // namespace Aws
RescoreRequest & AddDocuments(Document &&value)
const Aws::Vector< Document > & GetDocuments() const
RescoreRequest & WithSearchQuery(Aws::String &&value)
RescoreRequest & WithSearchQuery(const Aws::String &value)
const Aws::String & GetRescoreExecutionPlanId() const
RescoreRequest & AddDocuments(const Document &value)
RescoreRequest & WithRescoreExecutionPlanId(const Aws::String &value)
RescoreRequest & WithRescoreExecutionPlanId(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
AWS_KENDRARANKING_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetDocuments(Aws::Vector< Document > &&value)
void SetSearchQuery(Aws::String &&value)
void SetRescoreExecutionPlanId(Aws::String &&value)
const Aws::String & GetSearchQuery() const
RescoreRequest & WithDocuments(Aws::Vector< Document > &&value)
AWS_KENDRARANKING_API RescoreRequest()
void SetDocuments(const Aws::Vector< Document > &value)
void SetRescoreExecutionPlanId(const Aws::String &value)
RescoreRequest & WithDocuments(const Aws::Vector< Document > &value)
RescoreRequest & WithSearchQuery(const char *value)
RescoreRequest & WithRescoreExecutionPlanId(const char *value)
AWS_KENDRARANKING_API Aws::String SerializePayload() const override
void SetRescoreExecutionPlanId(const char *value)
void SetSearchQuery(const Aws::String &value)
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