AWS SDK for C++  1.9.1
AWS SDK for C++
AssociateRepositoryRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 #include <aws/core/utils/UUID.h>
14 
15 namespace Aws
16 {
17 namespace CodeGuruReviewer
18 {
19 namespace Model
20 {
21 
25  {
26  public:
28 
29  // Service request name is the Operation name which will send this request out,
30  // each operation should has unique request name, so that we can get operation's name from this request.
31  // Note: this is not true for response, multiple operations may have the same response name,
32  // so we can not get operation's name from response.
33  inline virtual const char* GetServiceRequestName() const override { return "AssociateRepository"; }
34 
35  Aws::String SerializePayload() const override;
36 
37 
41  inline const Repository& GetRepository() const{ return m_repository; }
42 
46  inline bool RepositoryHasBeenSet() const { return m_repositoryHasBeenSet; }
47 
51  inline void SetRepository(const Repository& value) { m_repositoryHasBeenSet = true; m_repository = value; }
52 
56  inline void SetRepository(Repository&& value) { m_repositoryHasBeenSet = true; m_repository = std::move(value); }
57 
61  inline AssociateRepositoryRequest& WithRepository(const Repository& value) { SetRepository(value); return *this;}
62 
66  inline AssociateRepositoryRequest& WithRepository(Repository&& value) { SetRepository(std::move(value)); return *this;}
67 
68 
73  inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; }
74 
79  inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
80 
85  inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; }
86 
91  inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); }
92 
97  inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); }
98 
103  inline AssociateRepositoryRequest& WithClientRequestToken(const Aws::String& value) { SetClientRequestToken(value); return *this;}
104 
109  inline AssociateRepositoryRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;}
110 
115  inline AssociateRepositoryRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;}
116 
117 
128  inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
129 
140  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
141 
152  inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
153 
164  inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
165 
176  inline AssociateRepositoryRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
177 
188  inline AssociateRepositoryRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
189 
200  inline AssociateRepositoryRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
201 
212  inline AssociateRepositoryRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
213 
224  inline AssociateRepositoryRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
225 
236  inline AssociateRepositoryRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
237 
248  inline AssociateRepositoryRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
249 
260  inline AssociateRepositoryRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
261 
272  inline AssociateRepositoryRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
273 
274  private:
275 
276  Repository m_repository;
277  bool m_repositoryHasBeenSet;
278 
279  Aws::String m_clientRequestToken;
280  bool m_clientRequestTokenHasBeenSet;
281 
283  bool m_tagsHasBeenSet;
284  };
285 
286 } // namespace Model
287 } // namespace CodeGuruReviewer
288 } // namespace Aws
Aws::CodeGuruReviewer::Model::AssociateRepositoryRequest::WithRepository
AssociateRepositoryRequest & WithRepository(const Repository &value)
Definition: AssociateRepositoryRequest.h:61
Repository.h
Aws::CodeGuruReviewer::Model::AssociateRepositoryRequest::RepositoryHasBeenSet
bool RepositoryHasBeenSet() const
Definition: AssociateRepositoryRequest.h:46
CodeGuruReviewerRequest.h
Aws::CodeGuruReviewer::Model::AssociateRepositoryRequest::AddTags
AssociateRepositoryRequest & AddTags(Aws::String &&key, Aws::String &&value)
Definition: AssociateRepositoryRequest.h:236
Aws::CodeGuruReviewer::Model::AssociateRepositoryRequest::GetRepository
const Repository & GetRepository() const
Definition: AssociateRepositoryRequest.h:41
Aws::CodeGuruReviewer::Model::AssociateRepositoryRequest::ClientRequestTokenHasBeenSet
bool ClientRequestTokenHasBeenSet() const
Definition: AssociateRepositoryRequest.h:79
Aws::CodeGuruReviewer::Model::AssociateRepositoryRequest::SetRepository
void SetRepository(Repository &&value)
Definition: AssociateRepositoryRequest.h:56
AWS_CODEGURUREVIEWER_API
#define AWS_CODEGURUREVIEWER_API
Definition: CodeGuruReviewer_EXPORTS.h:28
Aws::CodeGuruReviewer::CodeGuruReviewerRequest
Definition: CodeGuruReviewerRequest.h:17
Aws::CodeGuruReviewer::Model::AssociateRepositoryRequest
Definition: AssociateRepositoryRequest.h:25
Aws::CodeGuruReviewer::Model::AssociateRepositoryRequest::AddTags
AssociateRepositoryRequest & AddTags(const char *key, const char *value)
Definition: AssociateRepositoryRequest.h:272
CodeGuruReviewer_EXPORTS.h
Aws::CodeGuruReviewer::Model::AssociateRepositoryRequest::SetTags
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition: AssociateRepositoryRequest.h:164
Aws::CodeGuruReviewer::Model::AssociateRepositoryRequest::SetTags
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition: AssociateRepositoryRequest.h:152
Aws::CodeGuruReviewer::Model::AssociateRepositoryRequest::SetClientRequestToken
void SetClientRequestToken(const char *value)
Definition: AssociateRepositoryRequest.h:97
Aws::CodeGuruReviewer::Model::AssociateRepositoryRequest::WithClientRequestToken
AssociateRepositoryRequest & WithClientRequestToken(const char *value)
Definition: AssociateRepositoryRequest.h:115
Aws::CodeGuruReviewer::Model::AssociateRepositoryRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: AssociateRepositoryRequest.h:140
Aws::CodeGuruReviewer::Model::AssociateRepositoryRequest::AddTags
AssociateRepositoryRequest & AddTags(const char *key, Aws::String &&value)
Definition: AssociateRepositoryRequest.h:248
Aws::CodeGuruReviewer::Model::AssociateRepositoryRequest::AddTags
AssociateRepositoryRequest & AddTags(Aws::String &&key, const char *value)
Definition: AssociateRepositoryRequest.h:260
Aws::CodeGuruReviewer::Model::AssociateRepositoryRequest::WithClientRequestToken
AssociateRepositoryRequest & WithClientRequestToken(Aws::String &&value)
Definition: AssociateRepositoryRequest.h:109
AWSString.h
Aws::CodeGuruReviewer::Model::Repository
Definition: Repository.h:36
Aws::CodeGuruReviewer::Model::AssociateRepositoryRequest::WithClientRequestToken
AssociateRepositoryRequest & WithClientRequestToken(const Aws::String &value)
Definition: AssociateRepositoryRequest.h:103
Aws::CodeGuruReviewer::Model::AssociateRepositoryRequest::AddTags
AssociateRepositoryRequest & AddTags(Aws::String &&key, const Aws::String &value)
Definition: AssociateRepositoryRequest.h:212
Aws::CodeGuruReviewer::Model::AssociateRepositoryRequest::AddTags
AssociateRepositoryRequest & AddTags(const Aws::String &key, const Aws::String &value)
Definition: AssociateRepositoryRequest.h:200
Aws::CodeGuruReviewer::Model::AssociateRepositoryRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: AssociateRepositoryRequest.h:33
Aws::CodeGuruReviewer::Model::AssociateRepositoryRequest::SetRepository
void SetRepository(const Repository &value)
Definition: AssociateRepositoryRequest.h:51
Aws::CodeGuruReviewer::Model::AssociateRepositoryRequest::WithTags
AssociateRepositoryRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition: AssociateRepositoryRequest.h:176
Aws::CodeGuruReviewer::Model::AssociateRepositoryRequest::SetClientRequestToken
void SetClientRequestToken(const Aws::String &value)
Definition: AssociateRepositoryRequest.h:85
Aws::CodeGuruReviewer::Model::AssociateRepositoryRequest::GetClientRequestToken
const Aws::String & GetClientRequestToken() const
Definition: AssociateRepositoryRequest.h:73
Aws
Definition: AccessManagementClient.h:15
Aws::CodeGuruReviewer::Model::AssociateRepositoryRequest::SetClientRequestToken
void SetClientRequestToken(Aws::String &&value)
Definition: AssociateRepositoryRequest.h:91
Aws::CodeGuruReviewer::Model::AssociateRepositoryRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CodeGuruReviewer::Model::AssociateRepositoryRequest::AddTags
AssociateRepositoryRequest & AddTags(const Aws::String &key, Aws::String &&value)
Definition: AssociateRepositoryRequest.h:224
Aws::CodeGuruReviewer::Model::AssociateRepositoryRequest::WithTags
AssociateRepositoryRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition: AssociateRepositoryRequest.h:188
UUID.h
AWSMap.h
Aws::CodeGuruReviewer::Model::AssociateRepositoryRequest::AssociateRepositoryRequest
AssociateRepositoryRequest()
Aws::CodeGuruReviewer::Model::AssociateRepositoryRequest::GetTags
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition: AssociateRepositoryRequest.h:128
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
Aws::CodeGuruReviewer::Model::AssociateRepositoryRequest::WithRepository
AssociateRepositoryRequest & WithRepository(Repository &&value)
Definition: AssociateRepositoryRequest.h:66