AWS SDK for C++  1.9.40
AWS SDK for C++
ListRepositoryAssociationsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace Http
18 {
19  class URI;
20 } //namespace Http
21 namespace CodeGuruReviewer
22 {
23 namespace 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 
39  Aws::String SerializePayload() const override;
40 
41  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
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 
67  inline ListRepositoryAssociationsRequest& WithProviderTypes(const Aws::Vector<ProviderType>& value) { SetProviderTypes(value); return *this;}
68 
72  inline ListRepositoryAssociationsRequest& WithProviderTypes(Aws::Vector<ProviderType>&& value) { SetProviderTypes(std::move(value)); return *this;}
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 
213  inline ListRepositoryAssociationsRequest& WithStates(const Aws::Vector<RepositoryAssociationState>& value) { SetStates(value); return *this;}
214 
239  inline ListRepositoryAssociationsRequest& WithStates(Aws::Vector<RepositoryAssociationState>&& value) { SetStates(std::move(value)); return *this;}
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 
317  inline ListRepositoryAssociationsRequest& WithNames(const Aws::Vector<Aws::String>& value) { SetNames(value); return *this;}
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 
346  inline const Aws::Vector<Aws::String>& GetOwners() const{ return m_owners; }
347 
354  inline bool OwnersHasBeenSet() const { return m_ownersHasBeenSet; }
355 
362  inline void SetOwners(const Aws::Vector<Aws::String>& value) { m_ownersHasBeenSet = true; m_owners = value; }
363 
370  inline void SetOwners(Aws::Vector<Aws::String>&& value) { m_ownersHasBeenSet = true; m_owners = std::move(value); }
371 
378  inline ListRepositoryAssociationsRequest& WithOwners(const Aws::Vector<Aws::String>& value) { SetOwners(value); return *this;}
379 
386  inline ListRepositoryAssociationsRequest& WithOwners(Aws::Vector<Aws::String>&& value) { SetOwners(std::move(value)); return *this;}
387 
394  inline ListRepositoryAssociationsRequest& AddOwners(const Aws::String& value) { m_ownersHasBeenSet = true; m_owners.push_back(value); return *this; }
395 
402  inline ListRepositoryAssociationsRequest& AddOwners(Aws::String&& value) { m_ownersHasBeenSet = true; m_owners.push_back(std::move(value)); return *this; }
403 
410  inline ListRepositoryAssociationsRequest& AddOwners(const char* value) { m_ownersHasBeenSet = true; m_owners.push_back(value); return *this; }
411 
412 
424  inline int GetMaxResults() const{ return m_maxResults; }
425 
437  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
438 
450  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
451 
463  inline ListRepositoryAssociationsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
464 
465 
475  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
476 
486  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
487 
497  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
498 
508  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
509 
519  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
520 
530  inline ListRepositoryAssociationsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
531 
541  inline ListRepositoryAssociationsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
542 
552  inline ListRepositoryAssociationsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
553 
554  private:
555 
556  Aws::Vector<ProviderType> m_providerTypes;
557  bool m_providerTypesHasBeenSet;
558 
560  bool m_statesHasBeenSet;
561 
562  Aws::Vector<Aws::String> m_names;
563  bool m_namesHasBeenSet;
564 
565  Aws::Vector<Aws::String> m_owners;
566  bool m_ownersHasBeenSet;
567 
568  int m_maxResults;
569  bool m_maxResultsHasBeenSet;
570 
571  Aws::String m_nextToken;
572  bool m_nextTokenHasBeenSet;
573  };
574 
575 } // namespace Model
576 } // namespace CodeGuruReviewer
577 } // namespace Aws
ProviderType.h
Aws::CodeGuruReviewer::Model::ListRepositoryAssociationsRequest::WithProviderTypes
ListRepositoryAssociationsRequest & WithProviderTypes(Aws::Vector< ProviderType > &&value)
Definition: ListRepositoryAssociationsRequest.h:72
Aws::Http::URI
Definition: URI.h:32
Aws::CodeGuruReviewer::Model::ListRepositoryAssociationsRequest::AddProviderTypes
ListRepositoryAssociationsRequest & AddProviderTypes(ProviderType &&value)
Definition: ListRepositoryAssociationsRequest.h:82
Aws::CodeGuruReviewer::Model::ListRepositoryAssociationsRequest::AddStates
ListRepositoryAssociationsRequest & AddStates(const RepositoryAssociationState &value)
Definition: ListRepositoryAssociationsRequest.h:265
Aws::CodeGuruReviewer::Model::ListRepositoryAssociationsRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListRepositoryAssociationsRequest.h:497
CodeGuruReviewerRequest.h
Aws::CodeGuruReviewer::Model::ListRepositoryAssociationsRequest::SetOwners
void SetOwners(const Aws::Vector< Aws::String > &value)
Definition: ListRepositoryAssociationsRequest.h:362
Aws::CodeGuruReviewer::Model::ListRepositoryAssociationsRequest::SetOwners
void SetOwners(Aws::Vector< Aws::String > &&value)
Definition: ListRepositoryAssociationsRequest.h:370
Aws::CodeGuruReviewer::Model::ListRepositoryAssociationsRequest::SetStates
void SetStates(const Aws::Vector< RepositoryAssociationState > &value)
Definition: ListRepositoryAssociationsRequest.h:161
Aws::CodeGuruReviewer::Model::ListRepositoryAssociationsRequest::WithStates
ListRepositoryAssociationsRequest & WithStates(Aws::Vector< RepositoryAssociationState > &&value)
Definition: ListRepositoryAssociationsRequest.h:239
Aws::CodeGuruReviewer::Model::ListRepositoryAssociationsRequest::ListRepositoryAssociationsRequest
ListRepositoryAssociationsRequest()
Aws::CodeGuruReviewer::Model::ListRepositoryAssociationsRequest::OwnersHasBeenSet
bool OwnersHasBeenSet() const
Definition: ListRepositoryAssociationsRequest.h:354
Aws::CodeGuruReviewer::Model::ListRepositoryAssociationsRequest::SetNames
void SetNames(const Aws::Vector< Aws::String > &value)
Definition: ListRepositoryAssociationsRequest.h:307
Aws::CodeGuruReviewer::Model::ListRepositoryAssociationsRequest::AddProviderTypes
ListRepositoryAssociationsRequest & AddProviderTypes(const ProviderType &value)
Definition: ListRepositoryAssociationsRequest.h:77
Aws::CodeGuruReviewer::Model::ListRepositoryAssociationsRequest::WithNames
ListRepositoryAssociationsRequest & WithNames(const Aws::Vector< Aws::String > &value)
Definition: ListRepositoryAssociationsRequest.h:317
Aws::CodeGuruReviewer::Model::ListRepositoryAssociationsRequest::WithOwners
ListRepositoryAssociationsRequest & WithOwners(const Aws::Vector< Aws::String > &value)
Definition: ListRepositoryAssociationsRequest.h:378
AWS_CODEGURUREVIEWER_API
#define AWS_CODEGURUREVIEWER_API
Definition: CodeGuruReviewer_EXPORTS.h:28
Aws::CodeGuruReviewer::Model::ListRepositoryAssociationsRequest::SetProviderTypes
void SetProviderTypes(Aws::Vector< ProviderType > &&value)
Definition: ListRepositoryAssociationsRequest.h:62
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::CodeGuruReviewer::Model::ListRepositoryAssociationsRequest::GetMaxResults
int GetMaxResults() const
Definition: ListRepositoryAssociationsRequest.h:424
Aws::CodeGuruReviewer::Model::ListRepositoryAssociationsRequest::ProviderTypesHasBeenSet
bool ProviderTypesHasBeenSet() const
Definition: ListRepositoryAssociationsRequest.h:52
Aws::CodeGuruReviewer::CodeGuruReviewerRequest
Definition: CodeGuruReviewerRequest.h:17
AWSVector.h
Aws::CodeGuruReviewer::Model::ListRepositoryAssociationsRequest::AddNames
ListRepositoryAssociationsRequest & AddNames(const Aws::String &value)
Definition: ListRepositoryAssociationsRequest.h:327
Aws::CodeGuruReviewer::Model::ListRepositoryAssociationsRequest::AddOwners
ListRepositoryAssociationsRequest & AddOwners(const char *value)
Definition: ListRepositoryAssociationsRequest.h:410
Aws::CodeGuruReviewer::Model::ListRepositoryAssociationsRequest::SetStates
void SetStates(Aws::Vector< RepositoryAssociationState > &&value)
Definition: ListRepositoryAssociationsRequest.h:187
Aws::CodeGuruReviewer::Model::ListRepositoryAssociationsRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListRepositoryAssociationsRequest.h:508
CodeGuruReviewer_EXPORTS.h
Aws::CodeGuruReviewer::Model::ListRepositoryAssociationsRequest::WithNextToken
ListRepositoryAssociationsRequest & WithNextToken(Aws::String &&value)
Definition: ListRepositoryAssociationsRequest.h:541
Aws::CodeGuruReviewer::Model::ListRepositoryAssociationsRequest::AddNames
ListRepositoryAssociationsRequest & AddNames(const char *value)
Definition: ListRepositoryAssociationsRequest.h:337
Aws::CodeGuruReviewer::Model::ListRepositoryAssociationsRequest::GetStates
const Aws::Vector< RepositoryAssociationState > & GetStates() const
Definition: ListRepositoryAssociationsRequest.h:109
Aws::CodeGuruReviewer::Model::ListRepositoryAssociationsRequest::WithNextToken
ListRepositoryAssociationsRequest & WithNextToken(const char *value)
Definition: ListRepositoryAssociationsRequest.h:552
Aws::CodeGuruReviewer::Model::ListRepositoryAssociationsRequest::SetMaxResults
void SetMaxResults(int value)
Definition: ListRepositoryAssociationsRequest.h:450
Aws::CodeGuruReviewer::Model::ListRepositoryAssociationsRequest
Definition: ListRepositoryAssociationsRequest.h:29
Aws::CodeGuruReviewer::Model::ListRepositoryAssociationsRequest::WithProviderTypes
ListRepositoryAssociationsRequest & WithProviderTypes(const Aws::Vector< ProviderType > &value)
Definition: ListRepositoryAssociationsRequest.h:67
Aws::CodeGuruReviewer::Model::ListRepositoryAssociationsRequest::WithOwners
ListRepositoryAssociationsRequest & WithOwners(Aws::Vector< Aws::String > &&value)
Definition: ListRepositoryAssociationsRequest.h:386
Aws::CodeGuruReviewer::Model::ListRepositoryAssociationsRequest::NamesHasBeenSet
bool NamesHasBeenSet() const
Definition: ListRepositoryAssociationsRequest.h:302
Aws::CodeGuruReviewer::Model::ListRepositoryAssociationsRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: ListRepositoryAssociationsRequest.h:437
Aws::CodeGuruReviewer::Model::ListRepositoryAssociationsRequest::WithNextToken
ListRepositoryAssociationsRequest & WithNextToken(const Aws::String &value)
Definition: ListRepositoryAssociationsRequest.h:530
Aws::CodeGuruReviewer::Model::RepositoryAssociationState
RepositoryAssociationState
Definition: RepositoryAssociationState.h:17
AWSString.h
Aws::CodeGuruReviewer::Model::ListRepositoryAssociationsRequest::StatesHasBeenSet
bool StatesHasBeenSet() const
Definition: ListRepositoryAssociationsRequest.h:135
Aws::CodeGuruReviewer::Model::ListRepositoryAssociationsRequest::SetNames
void SetNames(Aws::Vector< Aws::String > &&value)
Definition: ListRepositoryAssociationsRequest.h:312
Aws::CodeGuruReviewer::Model::ListRepositoryAssociationsRequest::SetProviderTypes
void SetProviderTypes(const Aws::Vector< ProviderType > &value)
Definition: ListRepositoryAssociationsRequest.h:57
Aws::CodeGuruReviewer::Model::ListRepositoryAssociationsRequest::AddOwners
ListRepositoryAssociationsRequest & AddOwners(Aws::String &&value)
Definition: ListRepositoryAssociationsRequest.h:402
Aws::CodeGuruReviewer::Model::ListRepositoryAssociationsRequest::WithMaxResults
ListRepositoryAssociationsRequest & WithMaxResults(int value)
Definition: ListRepositoryAssociationsRequest.h:463
Aws::CodeGuruReviewer::Model::ListRepositoryAssociationsRequest::AddOwners
ListRepositoryAssociationsRequest & AddOwners(const Aws::String &value)
Definition: ListRepositoryAssociationsRequest.h:394
Aws::CodeGuruReviewer::Model::ListRepositoryAssociationsRequest::GetNames
const Aws::Vector< Aws::String > & GetNames() const
Definition: ListRepositoryAssociationsRequest.h:297
Aws::CodeGuruReviewer::Model::ListRepositoryAssociationsRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListRepositoryAssociationsRequest.h:486
Aws::CodeGuruReviewer::Model::ListRepositoryAssociationsRequest::GetProviderTypes
const Aws::Vector< ProviderType > & GetProviderTypes() const
Definition: ListRepositoryAssociationsRequest.h:47
Aws
Definition: AccessManagementClient.h:15
Aws::CodeGuruReviewer::Model::ListRepositoryAssociationsRequest::WithNames
ListRepositoryAssociationsRequest & WithNames(Aws::Vector< Aws::String > &&value)
Definition: ListRepositoryAssociationsRequest.h:322
Aws::CodeGuruReviewer::Model::ListRepositoryAssociationsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::CodeGuruReviewer::Model::ListRepositoryAssociationsRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
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::ListRepositoryAssociationsRequest::AddStates
ListRepositoryAssociationsRequest & AddStates(RepositoryAssociationState &&value)
Definition: ListRepositoryAssociationsRequest.h:291
RepositoryAssociationState.h
Aws::CodeGuruReviewer::Model::ListRepositoryAssociationsRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListRepositoryAssociationsRequest.h:519
Aws::CodeGuruReviewer::Model::ListRepositoryAssociationsRequest::WithStates
ListRepositoryAssociationsRequest & WithStates(const Aws::Vector< RepositoryAssociationState > &value)
Definition: ListRepositoryAssociationsRequest.h:213
Aws::CodeGuruReviewer::Model::ListRepositoryAssociationsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListRepositoryAssociationsRequest.h:37
Aws::CodeGuruReviewer::Model::ListRepositoryAssociationsRequest::GetOwners
const Aws::Vector< Aws::String > & GetOwners() const
Definition: ListRepositoryAssociationsRequest.h:346
Aws::CodeGuruReviewer::Model::ListRepositoryAssociationsRequest::AddNames
ListRepositoryAssociationsRequest & AddNames(Aws::String &&value)
Definition: ListRepositoryAssociationsRequest.h:332
Aws::CodeGuruReviewer::Model::ListRepositoryAssociationsRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListRepositoryAssociationsRequest.h:475