AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
ListCodeReviewsRequest.h
Go to the documentation of this file.
1
6#pragma once
14#include <utility>
15
16namespace Aws
17{
18namespace Http
19{
20 class URI;
21} //namespace Http
22namespace CodeGuruReviewer
23{
24namespace Model
25{
26
30 {
31 public:
33
34 // Service request name is the Operation name which will send this request out,
35 // each operation should has unique request name, so that we can get operation's name from this request.
36 // Note: this is not true for response, multiple operations may have the same response name,
37 // so we can not get operation's name from response.
38 inline virtual const char* GetServiceRequestName() const override { return "ListCodeReviews"; }
39
41
43
44
50 inline const Aws::Vector<ProviderType>& GetProviderTypes() const{ return m_providerTypes; }
51
57 inline bool ProviderTypesHasBeenSet() const { return m_providerTypesHasBeenSet; }
58
64 inline void SetProviderTypes(const Aws::Vector<ProviderType>& value) { m_providerTypesHasBeenSet = true; m_providerTypes = value; }
65
71 inline void SetProviderTypes(Aws::Vector<ProviderType>&& value) { m_providerTypesHasBeenSet = true; m_providerTypes = std::move(value); }
72
79
85 inline ListCodeReviewsRequest& WithProviderTypes(Aws::Vector<ProviderType>&& value) { SetProviderTypes(std::move(value)); return *this;}
86
92 inline ListCodeReviewsRequest& AddProviderTypes(const ProviderType& value) { m_providerTypesHasBeenSet = true; m_providerTypes.push_back(value); return *this; }
93
99 inline ListCodeReviewsRequest& AddProviderTypes(ProviderType&& value) { m_providerTypesHasBeenSet = true; m_providerTypes.push_back(std::move(value)); return *this; }
100
101
112 inline const Aws::Vector<JobState>& GetStates() const{ return m_states; }
113
124 inline bool StatesHasBeenSet() const { return m_statesHasBeenSet; }
125
136 inline void SetStates(const Aws::Vector<JobState>& value) { m_statesHasBeenSet = true; m_states = value; }
137
148 inline void SetStates(Aws::Vector<JobState>&& value) { m_statesHasBeenSet = true; m_states = std::move(value); }
149
160 inline ListCodeReviewsRequest& WithStates(const Aws::Vector<JobState>& value) { SetStates(value); return *this;}
161
172 inline ListCodeReviewsRequest& WithStates(Aws::Vector<JobState>&& value) { SetStates(std::move(value)); return *this;}
173
184 inline ListCodeReviewsRequest& AddStates(const JobState& value) { m_statesHasBeenSet = true; m_states.push_back(value); return *this; }
185
196 inline ListCodeReviewsRequest& AddStates(JobState&& value) { m_statesHasBeenSet = true; m_states.push_back(std::move(value)); return *this; }
197
198
203 inline const Aws::Vector<Aws::String>& GetRepositoryNames() const{ return m_repositoryNames; }
204
209 inline bool RepositoryNamesHasBeenSet() const { return m_repositoryNamesHasBeenSet; }
210
215 inline void SetRepositoryNames(const Aws::Vector<Aws::String>& value) { m_repositoryNamesHasBeenSet = true; m_repositoryNames = value; }
216
221 inline void SetRepositoryNames(Aws::Vector<Aws::String>&& value) { m_repositoryNamesHasBeenSet = true; m_repositoryNames = std::move(value); }
222
228
234
239 inline ListCodeReviewsRequest& AddRepositoryNames(const Aws::String& value) { m_repositoryNamesHasBeenSet = true; m_repositoryNames.push_back(value); return *this; }
240
245 inline ListCodeReviewsRequest& AddRepositoryNames(Aws::String&& value) { m_repositoryNamesHasBeenSet = true; m_repositoryNames.push_back(std::move(value)); return *this; }
246
251 inline ListCodeReviewsRequest& AddRepositoryNames(const char* value) { m_repositoryNamesHasBeenSet = true; m_repositoryNames.push_back(value); return *this; }
252
253
257 inline const Type& GetType() const{ return m_type; }
258
262 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
263
267 inline void SetType(const Type& value) { m_typeHasBeenSet = true; m_type = value; }
268
272 inline void SetType(Type&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
273
277 inline ListCodeReviewsRequest& WithType(const Type& value) { SetType(value); return *this;}
278
282 inline ListCodeReviewsRequest& WithType(Type&& value) { SetType(std::move(value)); return *this;}
283
284
289 inline int GetMaxResults() const{ return m_maxResults; }
290
295 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
296
301 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
302
307 inline ListCodeReviewsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
308
309
316 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
317
324 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
325
332 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
333
340 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
341
348 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
349
356 inline ListCodeReviewsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
357
364 inline ListCodeReviewsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
365
372 inline ListCodeReviewsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
373
374 private:
375
376 Aws::Vector<ProviderType> m_providerTypes;
377 bool m_providerTypesHasBeenSet = false;
378
379 Aws::Vector<JobState> m_states;
380 bool m_statesHasBeenSet = false;
381
382 Aws::Vector<Aws::String> m_repositoryNames;
383 bool m_repositoryNamesHasBeenSet = false;
384
385 Type m_type;
386 bool m_typeHasBeenSet = false;
387
388 int m_maxResults;
389 bool m_maxResultsHasBeenSet = false;
390
391 Aws::String m_nextToken;
392 bool m_nextTokenHasBeenSet = false;
393 };
394
395} // namespace Model
396} // namespace CodeGuruReviewer
397} // namespace Aws
#define AWS_CODEGURUREVIEWER_API
ListCodeReviewsRequest & WithRepositoryNames(const Aws::Vector< Aws::String > &value)
void SetProviderTypes(const Aws::Vector< ProviderType > &value)
AWS_CODEGURUREVIEWER_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
ListCodeReviewsRequest & AddProviderTypes(const ProviderType &value)
void SetProviderTypes(Aws::Vector< ProviderType > &&value)
void SetStates(const Aws::Vector< JobState > &value)
ListCodeReviewsRequest & AddRepositoryNames(const Aws::String &value)
ListCodeReviewsRequest & AddStates(JobState &&value)
virtual const char * GetServiceRequestName() const override
ListCodeReviewsRequest & WithProviderTypes(Aws::Vector< ProviderType > &&value)
ListCodeReviewsRequest & WithRepositoryNames(Aws::Vector< Aws::String > &&value)
const Aws::Vector< Aws::String > & GetRepositoryNames() const
ListCodeReviewsRequest & WithNextToken(const Aws::String &value)
ListCodeReviewsRequest & AddProviderTypes(ProviderType &&value)
ListCodeReviewsRequest & AddRepositoryNames(Aws::String &&value)
void SetRepositoryNames(Aws::Vector< Aws::String > &&value)
AWS_CODEGURUREVIEWER_API Aws::String SerializePayload() const override
ListCodeReviewsRequest & WithNextToken(Aws::String &&value)
const Aws::Vector< JobState > & GetStates() const
ListCodeReviewsRequest & WithType(const Type &value)
ListCodeReviewsRequest & AddStates(const JobState &value)
ListCodeReviewsRequest & WithStates(const Aws::Vector< JobState > &value)
void SetRepositoryNames(const Aws::Vector< Aws::String > &value)
const Aws::Vector< ProviderType > & GetProviderTypes() const
ListCodeReviewsRequest & WithProviderTypes(const Aws::Vector< ProviderType > &value)
ListCodeReviewsRequest & AddRepositoryNames(const char *value)
ListCodeReviewsRequest & WithNextToken(const char *value)
ListCodeReviewsRequest & WithStates(Aws::Vector< JobState > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector