AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
ListRecommendationFeedbackRequest.h
Go to the documentation of this file.
1
6#pragma once
11#include <utility>
12
13namespace Aws
14{
15namespace Http
16{
17 class URI;
18} //namespace Http
19namespace CodeGuruReviewer
20{
21namespace Model
22{
23
27 {
28 public:
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "ListRecommendationFeedback"; }
36
38
40
41
48 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
49
56 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
57
64 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
65
72 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
73
80 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
81
88 inline ListRecommendationFeedbackRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
89
96 inline ListRecommendationFeedbackRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
97
104 inline ListRecommendationFeedbackRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
105
106
111 inline int GetMaxResults() const{ return m_maxResults; }
112
117 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
118
123 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
124
129 inline ListRecommendationFeedbackRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
130
131
137 inline const Aws::String& GetCodeReviewArn() const{ return m_codeReviewArn; }
138
144 inline bool CodeReviewArnHasBeenSet() const { return m_codeReviewArnHasBeenSet; }
145
151 inline void SetCodeReviewArn(const Aws::String& value) { m_codeReviewArnHasBeenSet = true; m_codeReviewArn = value; }
152
158 inline void SetCodeReviewArn(Aws::String&& value) { m_codeReviewArnHasBeenSet = true; m_codeReviewArn = std::move(value); }
159
165 inline void SetCodeReviewArn(const char* value) { m_codeReviewArnHasBeenSet = true; m_codeReviewArn.assign(value); }
166
173
179 inline ListRecommendationFeedbackRequest& WithCodeReviewArn(Aws::String&& value) { SetCodeReviewArn(std::move(value)); return *this;}
180
186 inline ListRecommendationFeedbackRequest& WithCodeReviewArn(const char* value) { SetCodeReviewArn(value); return *this;}
187
188
199 inline const Aws::Vector<Aws::String>& GetUserIds() const{ return m_userIds; }
200
211 inline bool UserIdsHasBeenSet() const { return m_userIdsHasBeenSet; }
212
223 inline void SetUserIds(const Aws::Vector<Aws::String>& value) { m_userIdsHasBeenSet = true; m_userIds = value; }
224
235 inline void SetUserIds(Aws::Vector<Aws::String>&& value) { m_userIdsHasBeenSet = true; m_userIds = std::move(value); }
236
248
259 inline ListRecommendationFeedbackRequest& WithUserIds(Aws::Vector<Aws::String>&& value) { SetUserIds(std::move(value)); return *this;}
260
271 inline ListRecommendationFeedbackRequest& AddUserIds(const Aws::String& value) { m_userIdsHasBeenSet = true; m_userIds.push_back(value); return *this; }
272
283 inline ListRecommendationFeedbackRequest& AddUserIds(Aws::String&& value) { m_userIdsHasBeenSet = true; m_userIds.push_back(std::move(value)); return *this; }
284
295 inline ListRecommendationFeedbackRequest& AddUserIds(const char* value) { m_userIdsHasBeenSet = true; m_userIds.push_back(value); return *this; }
296
297
301 inline const Aws::Vector<Aws::String>& GetRecommendationIds() const{ return m_recommendationIds; }
302
306 inline bool RecommendationIdsHasBeenSet() const { return m_recommendationIdsHasBeenSet; }
307
311 inline void SetRecommendationIds(const Aws::Vector<Aws::String>& value) { m_recommendationIdsHasBeenSet = true; m_recommendationIds = value; }
312
316 inline void SetRecommendationIds(Aws::Vector<Aws::String>&& value) { m_recommendationIdsHasBeenSet = true; m_recommendationIds = std::move(value); }
317
322
327
331 inline ListRecommendationFeedbackRequest& AddRecommendationIds(const Aws::String& value) { m_recommendationIdsHasBeenSet = true; m_recommendationIds.push_back(value); return *this; }
332
336 inline ListRecommendationFeedbackRequest& AddRecommendationIds(Aws::String&& value) { m_recommendationIdsHasBeenSet = true; m_recommendationIds.push_back(std::move(value)); return *this; }
337
341 inline ListRecommendationFeedbackRequest& AddRecommendationIds(const char* value) { m_recommendationIdsHasBeenSet = true; m_recommendationIds.push_back(value); return *this; }
342
343 private:
344
345 Aws::String m_nextToken;
346 bool m_nextTokenHasBeenSet = false;
347
348 int m_maxResults;
349 bool m_maxResultsHasBeenSet = false;
350
351 Aws::String m_codeReviewArn;
352 bool m_codeReviewArnHasBeenSet = false;
353
354 Aws::Vector<Aws::String> m_userIds;
355 bool m_userIdsHasBeenSet = false;
356
357 Aws::Vector<Aws::String> m_recommendationIds;
358 bool m_recommendationIdsHasBeenSet = false;
359 };
360
361} // namespace Model
362} // namespace CodeGuruReviewer
363} // namespace Aws
#define AWS_CODEGURUREVIEWER_API
AWS_CODEGURUREVIEWER_API Aws::String SerializePayload() const override
ListRecommendationFeedbackRequest & AddRecommendationIds(const Aws::String &value)
ListRecommendationFeedbackRequest & AddRecommendationIds(const char *value)
ListRecommendationFeedbackRequest & WithUserIds(const Aws::Vector< Aws::String > &value)
ListRecommendationFeedbackRequest & AddUserIds(Aws::String &&value)
ListRecommendationFeedbackRequest & WithCodeReviewArn(const Aws::String &value)
ListRecommendationFeedbackRequest & WithNextToken(const Aws::String &value)
ListRecommendationFeedbackRequest & WithRecommendationIds(const Aws::Vector< Aws::String > &value)
ListRecommendationFeedbackRequest & WithCodeReviewArn(Aws::String &&value)
ListRecommendationFeedbackRequest & WithNextToken(const char *value)
ListRecommendationFeedbackRequest & WithNextToken(Aws::String &&value)
ListRecommendationFeedbackRequest & AddUserIds(const char *value)
ListRecommendationFeedbackRequest & AddRecommendationIds(Aws::String &&value)
ListRecommendationFeedbackRequest & AddUserIds(const Aws::String &value)
ListRecommendationFeedbackRequest & WithRecommendationIds(Aws::Vector< Aws::String > &&value)
AWS_CODEGURUREVIEWER_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
ListRecommendationFeedbackRequest & WithCodeReviewArn(const char *value)
ListRecommendationFeedbackRequest & WithUserIds(Aws::Vector< Aws::String > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector