AWS SDK for C++  1.8.71
AWS SDK for C++
ListRecommendationFeedbackRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Http
16 {
17  class URI;
18 } //namespace Http
19 namespace CodeGuruReviewer
20 {
21 namespace 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 
37  Aws::String SerializePayload() const override;
38 
39  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
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 
172  inline ListRecommendationFeedbackRequest& WithCodeReviewArn(const Aws::String& value) { SetCodeReviewArn(value); return *this;}
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 
198  inline const Aws::Vector<Aws::String>& GetUserIds() const{ return m_userIds; }
199 
209  inline bool UserIdsHasBeenSet() const { return m_userIdsHasBeenSet; }
210 
220  inline void SetUserIds(const Aws::Vector<Aws::String>& value) { m_userIdsHasBeenSet = true; m_userIds = value; }
221 
231  inline void SetUserIds(Aws::Vector<Aws::String>&& value) { m_userIdsHasBeenSet = true; m_userIds = std::move(value); }
232 
242  inline ListRecommendationFeedbackRequest& WithUserIds(const Aws::Vector<Aws::String>& value) { SetUserIds(value); return *this;}
243 
253  inline ListRecommendationFeedbackRequest& WithUserIds(Aws::Vector<Aws::String>&& value) { SetUserIds(std::move(value)); return *this;}
254 
264  inline ListRecommendationFeedbackRequest& AddUserIds(const Aws::String& value) { m_userIdsHasBeenSet = true; m_userIds.push_back(value); return *this; }
265 
275  inline ListRecommendationFeedbackRequest& AddUserIds(Aws::String&& value) { m_userIdsHasBeenSet = true; m_userIds.push_back(std::move(value)); return *this; }
276 
286  inline ListRecommendationFeedbackRequest& AddUserIds(const char* value) { m_userIdsHasBeenSet = true; m_userIds.push_back(value); return *this; }
287 
288 
292  inline const Aws::Vector<Aws::String>& GetRecommendationIds() const{ return m_recommendationIds; }
293 
297  inline bool RecommendationIdsHasBeenSet() const { return m_recommendationIdsHasBeenSet; }
298 
302  inline void SetRecommendationIds(const Aws::Vector<Aws::String>& value) { m_recommendationIdsHasBeenSet = true; m_recommendationIds = value; }
303 
307  inline void SetRecommendationIds(Aws::Vector<Aws::String>&& value) { m_recommendationIdsHasBeenSet = true; m_recommendationIds = std::move(value); }
308 
312  inline ListRecommendationFeedbackRequest& WithRecommendationIds(const Aws::Vector<Aws::String>& value) { SetRecommendationIds(value); return *this;}
313 
317  inline ListRecommendationFeedbackRequest& WithRecommendationIds(Aws::Vector<Aws::String>&& value) { SetRecommendationIds(std::move(value)); return *this;}
318 
322  inline ListRecommendationFeedbackRequest& AddRecommendationIds(const Aws::String& value) { m_recommendationIdsHasBeenSet = true; m_recommendationIds.push_back(value); return *this; }
323 
327  inline ListRecommendationFeedbackRequest& AddRecommendationIds(Aws::String&& value) { m_recommendationIdsHasBeenSet = true; m_recommendationIds.push_back(std::move(value)); return *this; }
328 
332  inline ListRecommendationFeedbackRequest& AddRecommendationIds(const char* value) { m_recommendationIdsHasBeenSet = true; m_recommendationIds.push_back(value); return *this; }
333 
334  private:
335 
336  Aws::String m_nextToken;
337  bool m_nextTokenHasBeenSet;
338 
339  int m_maxResults;
340  bool m_maxResultsHasBeenSet;
341 
342  Aws::String m_codeReviewArn;
343  bool m_codeReviewArnHasBeenSet;
344 
345  Aws::Vector<Aws::String> m_userIds;
346  bool m_userIdsHasBeenSet;
347 
348  Aws::Vector<Aws::String> m_recommendationIds;
349  bool m_recommendationIdsHasBeenSet;
350  };
351 
352 } // namespace Model
353 } // namespace CodeGuruReviewer
354 } // namespace Aws
ListRecommendationFeedbackRequest & WithUserIds(Aws::Vector< Aws::String > &&value)
ListRecommendationFeedbackRequest & AddUserIds(Aws::String &&value)
ListRecommendationFeedbackRequest & AddUserIds(const Aws::String &value)
#define AWS_CODEGURUREVIEWER_API
ListRecommendationFeedbackRequest & WithCodeReviewArn(const char *value)
ListRecommendationFeedbackRequest & WithCodeReviewArn(Aws::String &&value)
ListRecommendationFeedbackRequest & WithRecommendationIds(Aws::Vector< Aws::String > &&value)
ListRecommendationFeedbackRequest & WithNextToken(const char *value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
ListRecommendationFeedbackRequest & AddUserIds(const char *value)
ListRecommendationFeedbackRequest & WithRecommendationIds(const Aws::Vector< Aws::String > &value)
ListRecommendationFeedbackRequest & WithUserIds(const Aws::Vector< Aws::String > &value)
ListRecommendationFeedbackRequest & AddRecommendationIds(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
ListRecommendationFeedbackRequest & WithCodeReviewArn(const Aws::String &value)
ListRecommendationFeedbackRequest & WithNextToken(const Aws::String &value)
ListRecommendationFeedbackRequest & AddRecommendationIds(const char *value)
ListRecommendationFeedbackRequest & AddRecommendationIds(Aws::String &&value)
ListRecommendationFeedbackRequest & WithNextToken(Aws::String &&value)