AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
AssociateRepositoryRequest.h
Go to the documentation of this file.
1
6#pragma once
13#include <utility>
14#include <aws/core/utils/UUID.h>
15
16namespace Aws
17{
18namespace CodeGuruReviewer
19{
20namespace Model
21{
22
26 {
27 public:
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "AssociateRepository"; }
35
37
38
42 inline const Repository& GetRepository() const{ return m_repository; }
43
47 inline bool RepositoryHasBeenSet() const { return m_repositoryHasBeenSet; }
48
52 inline void SetRepository(const Repository& value) { m_repositoryHasBeenSet = true; m_repository = value; }
53
57 inline void SetRepository(Repository&& value) { m_repositoryHasBeenSet = true; m_repository = std::move(value); }
58
62 inline AssociateRepositoryRequest& WithRepository(const Repository& value) { SetRepository(value); return *this;}
63
67 inline AssociateRepositoryRequest& WithRepository(Repository&& value) { SetRepository(std::move(value)); return *this;}
68
69
74 inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; }
75
80 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
81
86 inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; }
87
92 inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); }
93
98 inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); }
99
105
110 inline AssociateRepositoryRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;}
111
116 inline AssociateRepositoryRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;}
117
118
129 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
130
141 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
142
153 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
154
165 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
166
178
189 inline AssociateRepositoryRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
190
201 inline AssociateRepositoryRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
202
213 inline AssociateRepositoryRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
214
225 inline AssociateRepositoryRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
226
237 inline AssociateRepositoryRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
238
249 inline AssociateRepositoryRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
250
261 inline AssociateRepositoryRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
262
273 inline AssociateRepositoryRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
274
275
284 inline const KMSKeyDetails& GetKMSKeyDetails() const{ return m_kMSKeyDetails; }
285
294 inline bool KMSKeyDetailsHasBeenSet() const { return m_kMSKeyDetailsHasBeenSet; }
295
304 inline void SetKMSKeyDetails(const KMSKeyDetails& value) { m_kMSKeyDetailsHasBeenSet = true; m_kMSKeyDetails = value; }
305
314 inline void SetKMSKeyDetails(KMSKeyDetails&& value) { m_kMSKeyDetailsHasBeenSet = true; m_kMSKeyDetails = std::move(value); }
315
324 inline AssociateRepositoryRequest& WithKMSKeyDetails(const KMSKeyDetails& value) { SetKMSKeyDetails(value); return *this;}
325
334 inline AssociateRepositoryRequest& WithKMSKeyDetails(KMSKeyDetails&& value) { SetKMSKeyDetails(std::move(value)); return *this;}
335
336 private:
337
338 Repository m_repository;
339 bool m_repositoryHasBeenSet = false;
340
341 Aws::String m_clientRequestToken;
342 bool m_clientRequestTokenHasBeenSet = false;
343
345 bool m_tagsHasBeenSet = false;
346
347 KMSKeyDetails m_kMSKeyDetails;
348 bool m_kMSKeyDetailsHasBeenSet = false;
349 };
350
351} // namespace Model
352} // namespace CodeGuruReviewer
353} // namespace Aws
#define AWS_CODEGURUREVIEWER_API
AssociateRepositoryRequest & WithKMSKeyDetails(KMSKeyDetails &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_CODEGURUREVIEWER_API Aws::String SerializePayload() const override
AssociateRepositoryRequest & WithClientRequestToken(const char *value)
AssociateRepositoryRequest & WithRepository(const Repository &value)
AssociateRepositoryRequest & WithClientRequestToken(const Aws::String &value)
AssociateRepositoryRequest & AddTags(const Aws::String &key, const Aws::String &value)
AssociateRepositoryRequest & WithKMSKeyDetails(const KMSKeyDetails &value)
AssociateRepositoryRequest & WithRepository(Repository &&value)
AssociateRepositoryRequest & AddTags(const char *key, Aws::String &&value)
AssociateRepositoryRequest & AddTags(Aws::String &&key, const Aws::String &value)
AssociateRepositoryRequest & AddTags(Aws::String &&key, const char *value)
AssociateRepositoryRequest & WithClientRequestToken(Aws::String &&value)
AssociateRepositoryRequest & AddTags(const char *key, const char *value)
AssociateRepositoryRequest & AddTags(Aws::String &&key, Aws::String &&value)
AssociateRepositoryRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
AssociateRepositoryRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
AssociateRepositoryRequest & AddTags(const Aws::String &key, Aws::String &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String