AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
ListRepositoryAssociationsRequest.h
Go to the documentation of this file.
1
6#pragma once
13#include <utility>
14
15namespace Aws
16{
17namespace Http
18{
19 class URI;
20} //namespace Http
21namespace CodeGuruReviewer
22{
23namespace Model
24{
25
29 {
30 public:
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "ListRepositoryAssociations"; }
38
40
42
43
47 inline const Aws::Vector<ProviderType>& GetProviderTypes() const{ return m_providerTypes; }
48
52 inline bool ProviderTypesHasBeenSet() const { return m_providerTypesHasBeenSet; }
53
57 inline void SetProviderTypes(const Aws::Vector<ProviderType>& value) { m_providerTypesHasBeenSet = true; m_providerTypes = value; }
58
62 inline void SetProviderTypes(Aws::Vector<ProviderType>&& value) { m_providerTypesHasBeenSet = true; m_providerTypes = std::move(value); }
63
68
73
77 inline ListRepositoryAssociationsRequest& AddProviderTypes(const ProviderType& value) { m_providerTypesHasBeenSet = true; m_providerTypes.push_back(value); return *this; }
78
82 inline ListRepositoryAssociationsRequest& AddProviderTypes(ProviderType&& value) { m_providerTypesHasBeenSet = true; m_providerTypes.push_back(std::move(value)); return *this; }
83
84
109 inline const Aws::Vector<RepositoryAssociationState>& GetStates() const{ return m_states; }
110
135 inline bool StatesHasBeenSet() const { return m_statesHasBeenSet; }
136
161 inline void SetStates(const Aws::Vector<RepositoryAssociationState>& value) { m_statesHasBeenSet = true; m_states = value; }
162
187 inline void SetStates(Aws::Vector<RepositoryAssociationState>&& value) { m_statesHasBeenSet = true; m_states = std::move(value); }
188
214
240
265 inline ListRepositoryAssociationsRequest& AddStates(const RepositoryAssociationState& value) { m_statesHasBeenSet = true; m_states.push_back(value); return *this; }
266
291 inline ListRepositoryAssociationsRequest& AddStates(RepositoryAssociationState&& value) { m_statesHasBeenSet = true; m_states.push_back(std::move(value)); return *this; }
292
293
297 inline const Aws::Vector<Aws::String>& GetNames() const{ return m_names; }
298
302 inline bool NamesHasBeenSet() const { return m_namesHasBeenSet; }
303
307 inline void SetNames(const Aws::Vector<Aws::String>& value) { m_namesHasBeenSet = true; m_names = value; }
308
312 inline void SetNames(Aws::Vector<Aws::String>&& value) { m_namesHasBeenSet = true; m_names = std::move(value); }
313
318
322 inline ListRepositoryAssociationsRequest& WithNames(Aws::Vector<Aws::String>&& value) { SetNames(std::move(value)); return *this;}
323
327 inline ListRepositoryAssociationsRequest& AddNames(const Aws::String& value) { m_namesHasBeenSet = true; m_names.push_back(value); return *this; }
328
332 inline ListRepositoryAssociationsRequest& AddNames(Aws::String&& value) { m_namesHasBeenSet = true; m_names.push_back(std::move(value)); return *this; }
333
337 inline ListRepositoryAssociationsRequest& AddNames(const char* value) { m_namesHasBeenSet = true; m_names.push_back(value); return *this; }
338
339
347 inline const Aws::Vector<Aws::String>& GetOwners() const{ return m_owners; }
348
356 inline bool OwnersHasBeenSet() const { return m_ownersHasBeenSet; }
357
365 inline void SetOwners(const Aws::Vector<Aws::String>& value) { m_ownersHasBeenSet = true; m_owners = value; }
366
374 inline void SetOwners(Aws::Vector<Aws::String>&& value) { m_ownersHasBeenSet = true; m_owners = std::move(value); }
375
384
392 inline ListRepositoryAssociationsRequest& WithOwners(Aws::Vector<Aws::String>&& value) { SetOwners(std::move(value)); return *this;}
393
401 inline ListRepositoryAssociationsRequest& AddOwners(const Aws::String& value) { m_ownersHasBeenSet = true; m_owners.push_back(value); return *this; }
402
410 inline ListRepositoryAssociationsRequest& AddOwners(Aws::String&& value) { m_ownersHasBeenSet = true; m_owners.push_back(std::move(value)); return *this; }
411
419 inline ListRepositoryAssociationsRequest& AddOwners(const char* value) { m_ownersHasBeenSet = true; m_owners.push_back(value); return *this; }
420
421
433 inline int GetMaxResults() const{ return m_maxResults; }
434
446 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
447
459 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
460
472 inline ListRepositoryAssociationsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
473
474
484 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
485
495 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
496
506 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
507
517 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
518
528 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
529
539 inline ListRepositoryAssociationsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
540
550 inline ListRepositoryAssociationsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
551
561 inline ListRepositoryAssociationsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
562
563 private:
564
565 Aws::Vector<ProviderType> m_providerTypes;
566 bool m_providerTypesHasBeenSet = false;
567
569 bool m_statesHasBeenSet = false;
570
572 bool m_namesHasBeenSet = false;
573
575 bool m_ownersHasBeenSet = false;
576
577 int m_maxResults;
578 bool m_maxResultsHasBeenSet = false;
579
580 Aws::String m_nextToken;
581 bool m_nextTokenHasBeenSet = false;
582 };
583
584} // namespace Model
585} // namespace CodeGuruReviewer
586} // namespace Aws
#define AWS_CODEGURUREVIEWER_API
ListRepositoryAssociationsRequest & AddNames(Aws::String &&value)
ListRepositoryAssociationsRequest & AddProviderTypes(const ProviderType &value)
ListRepositoryAssociationsRequest & WithNextToken(const char *value)
ListRepositoryAssociationsRequest & WithNames(Aws::Vector< Aws::String > &&value)
ListRepositoryAssociationsRequest & WithNextToken(Aws::String &&value)
ListRepositoryAssociationsRequest & WithOwners(const Aws::Vector< Aws::String > &value)
AWS_CODEGURUREVIEWER_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
ListRepositoryAssociationsRequest & AddNames(const Aws::String &value)
const Aws::Vector< RepositoryAssociationState > & GetStates() const
ListRepositoryAssociationsRequest & AddStates(RepositoryAssociationState &&value)
ListRepositoryAssociationsRequest & WithProviderTypes(Aws::Vector< ProviderType > &&value)
ListRepositoryAssociationsRequest & WithStates(Aws::Vector< RepositoryAssociationState > &&value)
ListRepositoryAssociationsRequest & AddProviderTypes(ProviderType &&value)
ListRepositoryAssociationsRequest & AddStates(const RepositoryAssociationState &value)
ListRepositoryAssociationsRequest & WithStates(const Aws::Vector< RepositoryAssociationState > &value)
ListRepositoryAssociationsRequest & AddOwners(const Aws::String &value)
ListRepositoryAssociationsRequest & AddOwners(const char *value)
ListRepositoryAssociationsRequest & AddOwners(Aws::String &&value)
ListRepositoryAssociationsRequest & WithProviderTypes(const Aws::Vector< ProviderType > &value)
void SetStates(Aws::Vector< RepositoryAssociationState > &&value)
ListRepositoryAssociationsRequest & WithOwners(Aws::Vector< Aws::String > &&value)
ListRepositoryAssociationsRequest & WithNextToken(const Aws::String &value)
ListRepositoryAssociationsRequest & AddNames(const char *value)
ListRepositoryAssociationsRequest & WithNames(const Aws::Vector< Aws::String > &value)
AWS_CODEGURUREVIEWER_API Aws::String SerializePayload() const override
void SetStates(const Aws::Vector< RepositoryAssociationState > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector