AWS SDK for C++  1.9.15
AWS SDK for C++
SubmitFeedbackRequest.h
Go to the documentation of this file.
1 
6 #pragma once
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace kendra
18 {
19 namespace Model
20 {
21 
25  {
26  public:
28 
29  // Service request name is the Operation name which will send this request out,
30  // each operation should has unique request name, so that we can get operation's name from this request.
31  // Note: this is not true for response, multiple operations may have the same response name,
32  // so we can not get operation's name from response.
33  inline virtual const char* GetServiceRequestName() const override { return "SubmitFeedback"; }
34 
35  Aws::String SerializePayload() const override;
36 
38 
39 
43  inline const Aws::String& GetIndexId() const{ return m_indexId; }
44 
48  inline bool IndexIdHasBeenSet() const { return m_indexIdHasBeenSet; }
49 
53  inline void SetIndexId(const Aws::String& value) { m_indexIdHasBeenSet = true; m_indexId = value; }
54 
58  inline void SetIndexId(Aws::String&& value) { m_indexIdHasBeenSet = true; m_indexId = std::move(value); }
59 
63  inline void SetIndexId(const char* value) { m_indexIdHasBeenSet = true; m_indexId.assign(value); }
64 
68  inline SubmitFeedbackRequest& WithIndexId(const Aws::String& value) { SetIndexId(value); return *this;}
69 
73  inline SubmitFeedbackRequest& WithIndexId(Aws::String&& value) { SetIndexId(std::move(value)); return *this;}
74 
78  inline SubmitFeedbackRequest& WithIndexId(const char* value) { SetIndexId(value); return *this;}
79 
80 
86  inline const Aws::String& GetQueryId() const{ return m_queryId; }
87 
93  inline bool QueryIdHasBeenSet() const { return m_queryIdHasBeenSet; }
94 
100  inline void SetQueryId(const Aws::String& value) { m_queryIdHasBeenSet = true; m_queryId = value; }
101 
107  inline void SetQueryId(Aws::String&& value) { m_queryIdHasBeenSet = true; m_queryId = std::move(value); }
108 
114  inline void SetQueryId(const char* value) { m_queryIdHasBeenSet = true; m_queryId.assign(value); }
115 
121  inline SubmitFeedbackRequest& WithQueryId(const Aws::String& value) { SetQueryId(value); return *this;}
122 
128  inline SubmitFeedbackRequest& WithQueryId(Aws::String&& value) { SetQueryId(std::move(value)); return *this;}
129 
135  inline SubmitFeedbackRequest& WithQueryId(const char* value) { SetQueryId(value); return *this;}
136 
137 
142  inline const Aws::Vector<ClickFeedback>& GetClickFeedbackItems() const{ return m_clickFeedbackItems; }
143 
148  inline bool ClickFeedbackItemsHasBeenSet() const { return m_clickFeedbackItemsHasBeenSet; }
149 
154  inline void SetClickFeedbackItems(const Aws::Vector<ClickFeedback>& value) { m_clickFeedbackItemsHasBeenSet = true; m_clickFeedbackItems = value; }
155 
160  inline void SetClickFeedbackItems(Aws::Vector<ClickFeedback>&& value) { m_clickFeedbackItemsHasBeenSet = true; m_clickFeedbackItems = std::move(value); }
161 
166  inline SubmitFeedbackRequest& WithClickFeedbackItems(const Aws::Vector<ClickFeedback>& value) { SetClickFeedbackItems(value); return *this;}
167 
172  inline SubmitFeedbackRequest& WithClickFeedbackItems(Aws::Vector<ClickFeedback>&& value) { SetClickFeedbackItems(std::move(value)); return *this;}
173 
178  inline SubmitFeedbackRequest& AddClickFeedbackItems(const ClickFeedback& value) { m_clickFeedbackItemsHasBeenSet = true; m_clickFeedbackItems.push_back(value); return *this; }
179 
184  inline SubmitFeedbackRequest& AddClickFeedbackItems(ClickFeedback&& value) { m_clickFeedbackItemsHasBeenSet = true; m_clickFeedbackItems.push_back(std::move(value)); return *this; }
185 
186 
191  inline const Aws::Vector<RelevanceFeedback>& GetRelevanceFeedbackItems() const{ return m_relevanceFeedbackItems; }
192 
197  inline bool RelevanceFeedbackItemsHasBeenSet() const { return m_relevanceFeedbackItemsHasBeenSet; }
198 
203  inline void SetRelevanceFeedbackItems(const Aws::Vector<RelevanceFeedback>& value) { m_relevanceFeedbackItemsHasBeenSet = true; m_relevanceFeedbackItems = value; }
204 
209  inline void SetRelevanceFeedbackItems(Aws::Vector<RelevanceFeedback>&& value) { m_relevanceFeedbackItemsHasBeenSet = true; m_relevanceFeedbackItems = std::move(value); }
210 
215  inline SubmitFeedbackRequest& WithRelevanceFeedbackItems(const Aws::Vector<RelevanceFeedback>& value) { SetRelevanceFeedbackItems(value); return *this;}
216 
221  inline SubmitFeedbackRequest& WithRelevanceFeedbackItems(Aws::Vector<RelevanceFeedback>&& value) { SetRelevanceFeedbackItems(std::move(value)); return *this;}
222 
227  inline SubmitFeedbackRequest& AddRelevanceFeedbackItems(const RelevanceFeedback& value) { m_relevanceFeedbackItemsHasBeenSet = true; m_relevanceFeedbackItems.push_back(value); return *this; }
228 
233  inline SubmitFeedbackRequest& AddRelevanceFeedbackItems(RelevanceFeedback&& value) { m_relevanceFeedbackItemsHasBeenSet = true; m_relevanceFeedbackItems.push_back(std::move(value)); return *this; }
234 
235  private:
236 
237  Aws::String m_indexId;
238  bool m_indexIdHasBeenSet;
239 
240  Aws::String m_queryId;
241  bool m_queryIdHasBeenSet;
242 
243  Aws::Vector<ClickFeedback> m_clickFeedbackItems;
244  bool m_clickFeedbackItemsHasBeenSet;
245 
246  Aws::Vector<RelevanceFeedback> m_relevanceFeedbackItems;
247  bool m_relevanceFeedbackItemsHasBeenSet;
248  };
249 
250 } // namespace Model
251 } // namespace kendra
252 } // namespace Aws
Aws::kendra::Model::SubmitFeedbackRequest::WithQueryId
SubmitFeedbackRequest & WithQueryId(const char *value)
Definition: SubmitFeedbackRequest.h:135
Aws::kendra::Model::SubmitFeedbackRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: SubmitFeedbackRequest.h:33
Aws::kendra::KendraRequest
Definition: KendraRequest.h:17
Aws::kendra::Model::SubmitFeedbackRequest::WithClickFeedbackItems
SubmitFeedbackRequest & WithClickFeedbackItems(Aws::Vector< ClickFeedback > &&value)
Definition: SubmitFeedbackRequest.h:172
Aws::kendra::Model::SubmitFeedbackRequest::RelevanceFeedbackItemsHasBeenSet
bool RelevanceFeedbackItemsHasBeenSet() const
Definition: SubmitFeedbackRequest.h:197
Aws::kendra::Model::SubmitFeedbackRequest::WithQueryId
SubmitFeedbackRequest & WithQueryId(Aws::String &&value)
Definition: SubmitFeedbackRequest.h:128
Aws::kendra::Model::SubmitFeedbackRequest::AddClickFeedbackItems
SubmitFeedbackRequest & AddClickFeedbackItems(ClickFeedback &&value)
Definition: SubmitFeedbackRequest.h:184
Aws::kendra::Model::SubmitFeedbackRequest::SubmitFeedbackRequest
SubmitFeedbackRequest()
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::kendra::Model::SubmitFeedbackRequest::GetClickFeedbackItems
const Aws::Vector< ClickFeedback > & GetClickFeedbackItems() const
Definition: SubmitFeedbackRequest.h:142
Aws::kendra::Model::SubmitFeedbackRequest::QueryIdHasBeenSet
bool QueryIdHasBeenSet() const
Definition: SubmitFeedbackRequest.h:93
Aws::kendra::Model::SubmitFeedbackRequest::SetRelevanceFeedbackItems
void SetRelevanceFeedbackItems(const Aws::Vector< RelevanceFeedback > &value)
Definition: SubmitFeedbackRequest.h:203
KendraRequest.h
Aws::kendra::Model::SubmitFeedbackRequest::WithIndexId
SubmitFeedbackRequest & WithIndexId(const char *value)
Definition: SubmitFeedbackRequest.h:78
Aws::kendra::Model::SubmitFeedbackRequest
Definition: SubmitFeedbackRequest.h:25
Aws::kendra::Model::SubmitFeedbackRequest::GetRelevanceFeedbackItems
const Aws::Vector< RelevanceFeedback > & GetRelevanceFeedbackItems() const
Definition: SubmitFeedbackRequest.h:191
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::kendra::Model::SubmitFeedbackRequest::WithClickFeedbackItems
SubmitFeedbackRequest & WithClickFeedbackItems(const Aws::Vector< ClickFeedback > &value)
Definition: SubmitFeedbackRequest.h:166
Aws::kendra::Model::SubmitFeedbackRequest::WithIndexId
SubmitFeedbackRequest & WithIndexId(Aws::String &&value)
Definition: SubmitFeedbackRequest.h:73
Aws::kendra::Model::SubmitFeedbackRequest::AddClickFeedbackItems
SubmitFeedbackRequest & AddClickFeedbackItems(const ClickFeedback &value)
Definition: SubmitFeedbackRequest.h:178
AWSVector.h
Aws::kendra::Model::SubmitFeedbackRequest::SetClickFeedbackItems
void SetClickFeedbackItems(const Aws::Vector< ClickFeedback > &value)
Definition: SubmitFeedbackRequest.h:154
Aws::kendra::Model::SubmitFeedbackRequest::WithRelevanceFeedbackItems
SubmitFeedbackRequest & WithRelevanceFeedbackItems(const Aws::Vector< RelevanceFeedback > &value)
Definition: SubmitFeedbackRequest.h:215
Aws::kendra::Model::SubmitFeedbackRequest::SetIndexId
void SetIndexId(const char *value)
Definition: SubmitFeedbackRequest.h:63
Kendra_EXPORTS.h
Aws::kendra::Model::SubmitFeedbackRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::kendra::Model::SubmitFeedbackRequest::GetIndexId
const Aws::String & GetIndexId() const
Definition: SubmitFeedbackRequest.h:43
Aws::kendra::Model::SubmitFeedbackRequest::GetQueryId
const Aws::String & GetQueryId() const
Definition: SubmitFeedbackRequest.h:86
Aws::kendra::Model::SubmitFeedbackRequest::SetIndexId
void SetIndexId(const Aws::String &value)
Definition: SubmitFeedbackRequest.h:53
Aws::kendra::Model::SubmitFeedbackRequest::SetQueryId
void SetQueryId(Aws::String &&value)
Definition: SubmitFeedbackRequest.h:107
Aws::kendra::Model::RelevanceFeedback
Definition: RelevanceFeedback.h:35
ClickFeedback.h
Aws::kendra::Model::SubmitFeedbackRequest::SetQueryId
void SetQueryId(const Aws::String &value)
Definition: SubmitFeedbackRequest.h:100
Aws::kendra::Model::SubmitFeedbackRequest::WithRelevanceFeedbackItems
SubmitFeedbackRequest & WithRelevanceFeedbackItems(Aws::Vector< RelevanceFeedback > &&value)
Definition: SubmitFeedbackRequest.h:221
AWSString.h
Aws::kendra::Model::SubmitFeedbackRequest::SetIndexId
void SetIndexId(Aws::String &&value)
Definition: SubmitFeedbackRequest.h:58
Aws::kendra::Model::SubmitFeedbackRequest::WithQueryId
SubmitFeedbackRequest & WithQueryId(const Aws::String &value)
Definition: SubmitFeedbackRequest.h:121
Aws::kendra::Model::SubmitFeedbackRequest::WithIndexId
SubmitFeedbackRequest & WithIndexId(const Aws::String &value)
Definition: SubmitFeedbackRequest.h:68
Aws::kendra::Model::ClickFeedback
Definition: ClickFeedback.h:35
Aws::kendra::Model::SubmitFeedbackRequest::SetRelevanceFeedbackItems
void SetRelevanceFeedbackItems(Aws::Vector< RelevanceFeedback > &&value)
Definition: SubmitFeedbackRequest.h:209
Aws::kendra::Model::SubmitFeedbackRequest::ClickFeedbackItemsHasBeenSet
bool ClickFeedbackItemsHasBeenSet() const
Definition: SubmitFeedbackRequest.h:148
Aws::kendra::Model::SubmitFeedbackRequest::SetClickFeedbackItems
void SetClickFeedbackItems(Aws::Vector< ClickFeedback > &&value)
Definition: SubmitFeedbackRequest.h:160
Aws::kendra::Model::SubmitFeedbackRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::kendra::Model::SubmitFeedbackRequest::IndexIdHasBeenSet
bool IndexIdHasBeenSet() const
Definition: SubmitFeedbackRequest.h:48
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::kendra::Model::SubmitFeedbackRequest::AddRelevanceFeedbackItems
SubmitFeedbackRequest & AddRelevanceFeedbackItems(RelevanceFeedback &&value)
Definition: SubmitFeedbackRequest.h:233
AWS_KENDRA_API
#define AWS_KENDRA_API
Definition: Kendra_EXPORTS.h:28
Aws::kendra::Model::SubmitFeedbackRequest::SetQueryId
void SetQueryId(const char *value)
Definition: SubmitFeedbackRequest.h:114
RelevanceFeedback.h
Aws::kendra::Model::SubmitFeedbackRequest::AddRelevanceFeedbackItems
SubmitFeedbackRequest & AddRelevanceFeedbackItems(const RelevanceFeedback &value)
Definition: SubmitFeedbackRequest.h:227