AWS SDK for C++  1.9.1
AWS SDK for C++
ListCodeReviewsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
14 #include <utility>
15 
16 namespace Aws
17 {
18 namespace Http
19 {
20  class URI;
21 } //namespace Http
22 namespace CodeGuruReviewer
23 {
24 namespace 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 
40  Aws::String SerializePayload() const override;
41 
42  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
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 
78  inline ListCodeReviewsRequest& WithProviderTypes(const Aws::Vector<ProviderType>& value) { SetProviderTypes(value); return *this;}
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 
111  inline const Aws::Vector<JobState>& GetStates() const{ return m_states; }
112 
122  inline bool StatesHasBeenSet() const { return m_statesHasBeenSet; }
123 
133  inline void SetStates(const Aws::Vector<JobState>& value) { m_statesHasBeenSet = true; m_states = value; }
134 
144  inline void SetStates(Aws::Vector<JobState>&& value) { m_statesHasBeenSet = true; m_states = std::move(value); }
145 
155  inline ListCodeReviewsRequest& WithStates(const Aws::Vector<JobState>& value) { SetStates(value); return *this;}
156 
166  inline ListCodeReviewsRequest& WithStates(Aws::Vector<JobState>&& value) { SetStates(std::move(value)); return *this;}
167 
177  inline ListCodeReviewsRequest& AddStates(const JobState& value) { m_statesHasBeenSet = true; m_states.push_back(value); return *this; }
178 
188  inline ListCodeReviewsRequest& AddStates(JobState&& value) { m_statesHasBeenSet = true; m_states.push_back(std::move(value)); return *this; }
189 
190 
195  inline const Aws::Vector<Aws::String>& GetRepositoryNames() const{ return m_repositoryNames; }
196 
201  inline bool RepositoryNamesHasBeenSet() const { return m_repositoryNamesHasBeenSet; }
202 
207  inline void SetRepositoryNames(const Aws::Vector<Aws::String>& value) { m_repositoryNamesHasBeenSet = true; m_repositoryNames = value; }
208 
213  inline void SetRepositoryNames(Aws::Vector<Aws::String>&& value) { m_repositoryNamesHasBeenSet = true; m_repositoryNames = std::move(value); }
214 
219  inline ListCodeReviewsRequest& WithRepositoryNames(const Aws::Vector<Aws::String>& value) { SetRepositoryNames(value); return *this;}
220 
225  inline ListCodeReviewsRequest& WithRepositoryNames(Aws::Vector<Aws::String>&& value) { SetRepositoryNames(std::move(value)); return *this;}
226 
231  inline ListCodeReviewsRequest& AddRepositoryNames(const Aws::String& value) { m_repositoryNamesHasBeenSet = true; m_repositoryNames.push_back(value); return *this; }
232 
237  inline ListCodeReviewsRequest& AddRepositoryNames(Aws::String&& value) { m_repositoryNamesHasBeenSet = true; m_repositoryNames.push_back(std::move(value)); return *this; }
238 
243  inline ListCodeReviewsRequest& AddRepositoryNames(const char* value) { m_repositoryNamesHasBeenSet = true; m_repositoryNames.push_back(value); return *this; }
244 
245 
249  inline const Type& GetType() const{ return m_type; }
250 
254  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
255 
259  inline void SetType(const Type& value) { m_typeHasBeenSet = true; m_type = value; }
260 
264  inline void SetType(Type&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
265 
269  inline ListCodeReviewsRequest& WithType(const Type& value) { SetType(value); return *this;}
270 
274  inline ListCodeReviewsRequest& WithType(Type&& value) { SetType(std::move(value)); return *this;}
275 
276 
281  inline int GetMaxResults() const{ return m_maxResults; }
282 
287  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
288 
293  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
294 
299  inline ListCodeReviewsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
300 
301 
308  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
309 
316  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
317 
324  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
325 
332  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
333 
340  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
341 
348  inline ListCodeReviewsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
349 
356  inline ListCodeReviewsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
357 
364  inline ListCodeReviewsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
365 
366  private:
367 
368  Aws::Vector<ProviderType> m_providerTypes;
369  bool m_providerTypesHasBeenSet;
370 
371  Aws::Vector<JobState> m_states;
372  bool m_statesHasBeenSet;
373 
374  Aws::Vector<Aws::String> m_repositoryNames;
375  bool m_repositoryNamesHasBeenSet;
376 
377  Type m_type;
378  bool m_typeHasBeenSet;
379 
380  int m_maxResults;
381  bool m_maxResultsHasBeenSet;
382 
383  Aws::String m_nextToken;
384  bool m_nextTokenHasBeenSet;
385  };
386 
387 } // namespace Model
388 } // namespace CodeGuruReviewer
389 } // namespace Aws
ProviderType.h
Aws::CodeGuruReviewer::Model::ListCodeReviewsRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListCodeReviewsRequest.h:316
Aws::CodeGuruReviewer::Model::ListCodeReviewsRequest::SetProviderTypes
void SetProviderTypes(Aws::Vector< ProviderType > &&value)
Definition: ListCodeReviewsRequest.h:71
Type.h
Aws::CodeGuruReviewer::Model::ListCodeReviewsRequest::WithStates
ListCodeReviewsRequest & WithStates(const Aws::Vector< JobState > &value)
Definition: ListCodeReviewsRequest.h:155
Aws::CodeGuruReviewer::Model::ListCodeReviewsRequest::WithNextToken
ListCodeReviewsRequest & WithNextToken(const Aws::String &value)
Definition: ListCodeReviewsRequest.h:348
Aws::Http::URI
Definition: URI.h:32
Aws::CodeGuruReviewer::Model::ListCodeReviewsRequest::SetStates
void SetStates(const Aws::Vector< JobState > &value)
Definition: ListCodeReviewsRequest.h:133
CodeGuruReviewerRequest.h
Aws::CodeGuruReviewer::Model::ListCodeReviewsRequest::GetProviderTypes
const Aws::Vector< ProviderType > & GetProviderTypes() const
Definition: ListCodeReviewsRequest.h:50
Aws::CodeGuruReviewer::Model::ListCodeReviewsRequest::SetMaxResults
void SetMaxResults(int value)
Definition: ListCodeReviewsRequest.h:293
Aws::CodeGuruReviewer::Model::ListCodeReviewsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::CodeGuruReviewer::Model::ListCodeReviewsRequest::ListCodeReviewsRequest
ListCodeReviewsRequest()
Aws::CodeGuruReviewer::Model::JobState
JobState
Definition: JobState.h:17
Aws::CodeGuruReviewer::Model::ListCodeReviewsRequest::WithProviderTypes
ListCodeReviewsRequest & WithProviderTypes(Aws::Vector< ProviderType > &&value)
Definition: ListCodeReviewsRequest.h:85
Aws::CodeGuruReviewer::Model::ListCodeReviewsRequest::WithNextToken
ListCodeReviewsRequest & WithNextToken(Aws::String &&value)
Definition: ListCodeReviewsRequest.h:356
Aws::CodeGuruReviewer::Model::ListCodeReviewsRequest::SetType
void SetType(Type &&value)
Definition: ListCodeReviewsRequest.h:264
Aws::CodeGuruReviewer::Model::ListCodeReviewsRequest::SetProviderTypes
void SetProviderTypes(const Aws::Vector< ProviderType > &value)
Definition: ListCodeReviewsRequest.h:64
Aws::CodeGuruReviewer::Model::ListCodeReviewsRequest::WithNextToken
ListCodeReviewsRequest & WithNextToken(const char *value)
Definition: ListCodeReviewsRequest.h:364
Aws::CodeGuruReviewer::Model::ListCodeReviewsRequest::StatesHasBeenSet
bool StatesHasBeenSet() const
Definition: ListCodeReviewsRequest.h:122
AWS_CODEGURUREVIEWER_API
#define AWS_CODEGURUREVIEWER_API
Definition: CodeGuruReviewer_EXPORTS.h:28
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::CodeGuruReviewer::Model::ListCodeReviewsRequest::AddRepositoryNames
ListCodeReviewsRequest & AddRepositoryNames(const Aws::String &value)
Definition: ListCodeReviewsRequest.h:231
Aws::CodeGuruReviewer::Model::ListCodeReviewsRequest::SetRepositoryNames
void SetRepositoryNames(const Aws::Vector< Aws::String > &value)
Definition: ListCodeReviewsRequest.h:207
Aws::CodeGuruReviewer::Model::ListCodeReviewsRequest::AddRepositoryNames
ListCodeReviewsRequest & AddRepositoryNames(Aws::String &&value)
Definition: ListCodeReviewsRequest.h:237
Aws::CodeGuruReviewer::Model::ListCodeReviewsRequest::AddStates
ListCodeReviewsRequest & AddStates(JobState &&value)
Definition: ListCodeReviewsRequest.h:188
Aws::CodeGuruReviewer::CodeGuruReviewerRequest
Definition: CodeGuruReviewerRequest.h:17
AWSVector.h
Aws::CodeGuruReviewer::Model::ListCodeReviewsRequest::SetStates
void SetStates(Aws::Vector< JobState > &&value)
Definition: ListCodeReviewsRequest.h:144
Aws::CodeGuruReviewer::Model::Type
Type
Definition: Type.h:17
Aws::CodeGuruReviewer::Model::ListCodeReviewsRequest::WithMaxResults
ListCodeReviewsRequest & WithMaxResults(int value)
Definition: ListCodeReviewsRequest.h:299
Aws::CodeGuruReviewer::Model::ListCodeReviewsRequest::GetRepositoryNames
const Aws::Vector< Aws::String > & GetRepositoryNames() const
Definition: ListCodeReviewsRequest.h:195
CodeGuruReviewer_EXPORTS.h
JobState.h
Aws::CodeGuruReviewer::Model::ListCodeReviewsRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListCodeReviewsRequest.h:332
Aws::CodeGuruReviewer::Model::ListCodeReviewsRequest::SetType
void SetType(const Type &value)
Definition: ListCodeReviewsRequest.h:259
Aws::CodeGuruReviewer::Model::ListCodeReviewsRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
Aws::CodeGuruReviewer::Model::ListCodeReviewsRequest::WithType
ListCodeReviewsRequest & WithType(const Type &value)
Definition: ListCodeReviewsRequest.h:269
Aws::CodeGuruReviewer::Model::ListCodeReviewsRequest
Definition: ListCodeReviewsRequest.h:30
Aws::CodeGuruReviewer::Model::ListCodeReviewsRequest::RepositoryNamesHasBeenSet
bool RepositoryNamesHasBeenSet() const
Definition: ListCodeReviewsRequest.h:201
Aws::CodeGuruReviewer::Model::ListCodeReviewsRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListCodeReviewsRequest.h:308
Aws::CodeGuruReviewer::Model::ListCodeReviewsRequest::GetStates
const Aws::Vector< JobState > & GetStates() const
Definition: ListCodeReviewsRequest.h:111
Aws::CodeGuruReviewer::Model::ListCodeReviewsRequest::ProviderTypesHasBeenSet
bool ProviderTypesHasBeenSet() const
Definition: ListCodeReviewsRequest.h:57
Aws::CodeGuruReviewer::Model::ListCodeReviewsRequest::WithRepositoryNames
ListCodeReviewsRequest & WithRepositoryNames(const Aws::Vector< Aws::String > &value)
Definition: ListCodeReviewsRequest.h:219
AWSString.h
Aws::CodeGuruReviewer::Model::ListCodeReviewsRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListCodeReviewsRequest.h:324
Aws::CodeGuruReviewer::Model::ListCodeReviewsRequest::GetMaxResults
int GetMaxResults() const
Definition: ListCodeReviewsRequest.h:281
Aws::CodeGuruReviewer::Model::ListCodeReviewsRequest::AddRepositoryNames
ListCodeReviewsRequest & AddRepositoryNames(const char *value)
Definition: ListCodeReviewsRequest.h:243
Aws::CodeGuruReviewer::Model::ListCodeReviewsRequest::WithType
ListCodeReviewsRequest & WithType(Type &&value)
Definition: ListCodeReviewsRequest.h:274
Aws::CodeGuruReviewer::Model::ListCodeReviewsRequest::AddStates
ListCodeReviewsRequest & AddStates(const JobState &value)
Definition: ListCodeReviewsRequest.h:177
Aws::CodeGuruReviewer::Model::ListCodeReviewsRequest::AddProviderTypes
ListCodeReviewsRequest & AddProviderTypes(const ProviderType &value)
Definition: ListCodeReviewsRequest.h:92
Aws::CodeGuruReviewer::Model::ListCodeReviewsRequest::WithRepositoryNames
ListCodeReviewsRequest & WithRepositoryNames(Aws::Vector< Aws::String > &&value)
Definition: ListCodeReviewsRequest.h:225
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CodeGuruReviewer::Model::ProviderType
ProviderType
Definition: ProviderType.h:17
Aws::CodeGuruReviewer::Model::ListCodeReviewsRequest::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: ListCodeReviewsRequest.h:254
Aws::CodeGuruReviewer::Model::ListCodeReviewsRequest::AddProviderTypes
ListCodeReviewsRequest & AddProviderTypes(ProviderType &&value)
Definition: ListCodeReviewsRequest.h:99
Aws::CodeGuruReviewer::Model::ListCodeReviewsRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: ListCodeReviewsRequest.h:287
Aws::CodeGuruReviewer::Model::ListCodeReviewsRequest::SetRepositoryNames
void SetRepositoryNames(Aws::Vector< Aws::String > &&value)
Definition: ListCodeReviewsRequest.h:213
Aws::CodeGuruReviewer::Model::ListCodeReviewsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListCodeReviewsRequest.h:38
Aws::CodeGuruReviewer::Model::ListCodeReviewsRequest::WithStates
ListCodeReviewsRequest & WithStates(Aws::Vector< JobState > &&value)
Definition: ListCodeReviewsRequest.h:166
Aws::CodeGuruReviewer::Model::ListCodeReviewsRequest::WithProviderTypes
ListCodeReviewsRequest & WithProviderTypes(const Aws::Vector< ProviderType > &value)
Definition: ListCodeReviewsRequest.h:78
Aws::CodeGuruReviewer::Model::ListCodeReviewsRequest::GetType
const Type & GetType() const
Definition: ListCodeReviewsRequest.h:249
Aws::CodeGuruReviewer::Model::ListCodeReviewsRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListCodeReviewsRequest.h:340