AWS SDK for C++  1.9.1
AWS SDK for C++
ListRecommendationsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Http
15 {
16  class URI;
17 } //namespace Http
18 namespace CodeGuruReviewer
19 {
20 namespace Model
21 {
22 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "ListRecommendations"; }
35 
36  Aws::String SerializePayload() const override;
37 
38  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
39 
40 
44  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
45 
49  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
50 
54  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
55 
59  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
60 
64  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
65 
69  inline ListRecommendationsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
70 
74  inline ListRecommendationsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
75 
79  inline ListRecommendationsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
80 
81 
86  inline int GetMaxResults() const{ return m_maxResults; }
87 
92  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
93 
98  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
99 
104  inline ListRecommendationsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
105 
106 
112  inline const Aws::String& GetCodeReviewArn() const{ return m_codeReviewArn; }
113 
119  inline bool CodeReviewArnHasBeenSet() const { return m_codeReviewArnHasBeenSet; }
120 
126  inline void SetCodeReviewArn(const Aws::String& value) { m_codeReviewArnHasBeenSet = true; m_codeReviewArn = value; }
127 
133  inline void SetCodeReviewArn(Aws::String&& value) { m_codeReviewArnHasBeenSet = true; m_codeReviewArn = std::move(value); }
134 
140  inline void SetCodeReviewArn(const char* value) { m_codeReviewArnHasBeenSet = true; m_codeReviewArn.assign(value); }
141 
147  inline ListRecommendationsRequest& WithCodeReviewArn(const Aws::String& value) { SetCodeReviewArn(value); return *this;}
148 
154  inline ListRecommendationsRequest& WithCodeReviewArn(Aws::String&& value) { SetCodeReviewArn(std::move(value)); return *this;}
155 
161  inline ListRecommendationsRequest& WithCodeReviewArn(const char* value) { SetCodeReviewArn(value); return *this;}
162 
163  private:
164 
165  Aws::String m_nextToken;
166  bool m_nextTokenHasBeenSet;
167 
168  int m_maxResults;
169  bool m_maxResultsHasBeenSet;
170 
171  Aws::String m_codeReviewArn;
172  bool m_codeReviewArnHasBeenSet;
173  };
174 
175 } // namespace Model
176 } // namespace CodeGuruReviewer
177 } // namespace Aws
Aws::Http::URI
Definition: URI.h:32
CodeGuruReviewerRequest.h
Aws::CodeGuruReviewer::Model::ListRecommendationsRequest::WithCodeReviewArn
ListRecommendationsRequest & WithCodeReviewArn(Aws::String &&value)
Definition: ListRecommendationsRequest.h:154
Aws::CodeGuruReviewer::Model::ListRecommendationsRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListRecommendationsRequest.h:54
Aws::CodeGuruReviewer::Model::ListRecommendationsRequest
Definition: ListRecommendationsRequest.h:26
Aws::CodeGuruReviewer::Model::ListRecommendationsRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListRecommendationsRequest.h:64
AWS_CODEGURUREVIEWER_API
#define AWS_CODEGURUREVIEWER_API
Definition: CodeGuruReviewer_EXPORTS.h:28
Aws::CodeGuruReviewer::Model::ListRecommendationsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::CodeGuruReviewer::CodeGuruReviewerRequest
Definition: CodeGuruReviewerRequest.h:17
Aws::CodeGuruReviewer::Model::ListRecommendationsRequest::GetMaxResults
int GetMaxResults() const
Definition: ListRecommendationsRequest.h:86
CodeGuruReviewer_EXPORTS.h
Aws::CodeGuruReviewer::Model::ListRecommendationsRequest::WithCodeReviewArn
ListRecommendationsRequest & WithCodeReviewArn(const Aws::String &value)
Definition: ListRecommendationsRequest.h:147
Aws::CodeGuruReviewer::Model::ListRecommendationsRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListRecommendationsRequest.h:44
Aws::CodeGuruReviewer::Model::ListRecommendationsRequest::ListRecommendationsRequest
ListRecommendationsRequest()
Aws::CodeGuruReviewer::Model::ListRecommendationsRequest::CodeReviewArnHasBeenSet
bool CodeReviewArnHasBeenSet() const
Definition: ListRecommendationsRequest.h:119
Aws::CodeGuruReviewer::Model::ListRecommendationsRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: ListRecommendationsRequest.h:92
Aws::CodeGuruReviewer::Model::ListRecommendationsRequest::SetCodeReviewArn
void SetCodeReviewArn(Aws::String &&value)
Definition: ListRecommendationsRequest.h:133
Aws::CodeGuruReviewer::Model::ListRecommendationsRequest::WithMaxResults
ListRecommendationsRequest & WithMaxResults(int value)
Definition: ListRecommendationsRequest.h:104
AWSString.h
Aws::CodeGuruReviewer::Model::ListRecommendationsRequest::WithNextToken
ListRecommendationsRequest & WithNextToken(const Aws::String &value)
Definition: ListRecommendationsRequest.h:69
Aws::CodeGuruReviewer::Model::ListRecommendationsRequest::SetCodeReviewArn
void SetCodeReviewArn(const char *value)
Definition: ListRecommendationsRequest.h:140
Aws::CodeGuruReviewer::Model::ListRecommendationsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListRecommendationsRequest.h:34
Aws::CodeGuruReviewer::Model::ListRecommendationsRequest::WithNextToken
ListRecommendationsRequest & WithNextToken(Aws::String &&value)
Definition: ListRecommendationsRequest.h:74
Aws::CodeGuruReviewer::Model::ListRecommendationsRequest::WithNextToken
ListRecommendationsRequest & WithNextToken(const char *value)
Definition: ListRecommendationsRequest.h:79
Aws::CodeGuruReviewer::Model::ListRecommendationsRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListRecommendationsRequest.h:49
Aws::CodeGuruReviewer::Model::ListRecommendationsRequest::SetCodeReviewArn
void SetCodeReviewArn(const Aws::String &value)
Definition: ListRecommendationsRequest.h:126
Aws::CodeGuruReviewer::Model::ListRecommendationsRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
Aws::CodeGuruReviewer::Model::ListRecommendationsRequest::SetMaxResults
void SetMaxResults(int value)
Definition: ListRecommendationsRequest.h:98
Aws
Definition: AccessManagementClient.h:15
Aws::CodeGuruReviewer::Model::ListRecommendationsRequest::WithCodeReviewArn
ListRecommendationsRequest & WithCodeReviewArn(const char *value)
Definition: ListRecommendationsRequest.h:161
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CodeGuruReviewer::Model::ListRecommendationsRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListRecommendationsRequest.h:59
Aws::CodeGuruReviewer::Model::ListRecommendationsRequest::GetCodeReviewArn
const Aws::String & GetCodeReviewArn() const
Definition: ListRecommendationsRequest.h:112