AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AssociateRepositoryRequest.h
1
6#pragma once
7#include <aws/codeguru-reviewer/CodeGuruReviewer_EXPORTS.h>
8#include <aws/codeguru-reviewer/CodeGuruReviewerRequest.h>
9#include <aws/codeguru-reviewer/model/Repository.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/codeguru-reviewer/model/KMSKeyDetails.h>
13#include <utility>
14#include <aws/core/utils/UUID.h>
15
16namespace Aws
17{
18namespace CodeGuruReviewer
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_CODEGURUREVIEWER_API AssociateRepositoryRequest();
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
36 AWS_CODEGURUREVIEWER_API Aws::String SerializePayload() const override;
37
38
40
43 inline const Repository& GetRepository() const{ return m_repository; }
44 inline bool RepositoryHasBeenSet() const { return m_repositoryHasBeenSet; }
45 inline void SetRepository(const Repository& value) { m_repositoryHasBeenSet = true; m_repository = value; }
46 inline void SetRepository(Repository&& value) { m_repositoryHasBeenSet = true; m_repository = std::move(value); }
47 inline AssociateRepositoryRequest& WithRepository(const Repository& value) { SetRepository(value); return *this;}
48 inline AssociateRepositoryRequest& WithRepository(Repository&& value) { SetRepository(std::move(value)); return *this;}
50
52
56 inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; }
57 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
58 inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; }
59 inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); }
60 inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); }
62 inline AssociateRepositoryRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;}
63 inline AssociateRepositoryRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;}
65
67
77 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
78 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
79 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
80 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
82 inline AssociateRepositoryRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
83 inline AssociateRepositoryRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
84 inline AssociateRepositoryRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
85 inline AssociateRepositoryRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
86 inline AssociateRepositoryRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
87 inline AssociateRepositoryRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
88 inline AssociateRepositoryRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
89 inline AssociateRepositoryRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
91
93
101 inline const KMSKeyDetails& GetKMSKeyDetails() const{ return m_kMSKeyDetails; }
102 inline bool KMSKeyDetailsHasBeenSet() const { return m_kMSKeyDetailsHasBeenSet; }
103 inline void SetKMSKeyDetails(const KMSKeyDetails& value) { m_kMSKeyDetailsHasBeenSet = true; m_kMSKeyDetails = value; }
104 inline void SetKMSKeyDetails(KMSKeyDetails&& value) { m_kMSKeyDetailsHasBeenSet = true; m_kMSKeyDetails = std::move(value); }
105 inline AssociateRepositoryRequest& WithKMSKeyDetails(const KMSKeyDetails& value) { SetKMSKeyDetails(value); return *this;}
106 inline AssociateRepositoryRequest& WithKMSKeyDetails(KMSKeyDetails&& value) { SetKMSKeyDetails(std::move(value)); return *this;}
108 private:
109
110 Repository m_repository;
111 bool m_repositoryHasBeenSet = false;
112
113 Aws::String m_clientRequestToken;
114 bool m_clientRequestTokenHasBeenSet = false;
115
117 bool m_tagsHasBeenSet = false;
118
119 KMSKeyDetails m_kMSKeyDetails;
120 bool m_kMSKeyDetailsHasBeenSet = false;
121 };
122
123} // namespace Model
124} // namespace CodeGuruReviewer
125} // namespace Aws
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