AWS SDK for C++

AWS SDK for C++ Version 1.11.763

Loading...
Searching...
No Matches
AssociateRepositoryRequest.h
1
6#pragma once
7#include <aws/codeguru-reviewer/CodeGuruReviewerRequest.h>
8#include <aws/codeguru-reviewer/CodeGuruReviewer_EXPORTS.h>
9#include <aws/codeguru-reviewer/model/KMSKeyDetails.h>
10#include <aws/codeguru-reviewer/model/Repository.h>
11#include <aws/core/utils/UUID.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14
15#include <utility>
16
17namespace Aws {
18namespace CodeGuruReviewer {
19namespace Model {
20
24 public:
25 AWS_CODEGURUREVIEWER_API AssociateRepositoryRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "AssociateRepository"; }
32
33 AWS_CODEGURUREVIEWER_API Aws::String SerializePayload() const override;
34
36
39 inline const Repository& GetRepository() const { return m_repository; }
40 inline bool RepositoryHasBeenSet() const { return m_repositoryHasBeenSet; }
41 template <typename RepositoryT = Repository>
42 void SetRepository(RepositoryT&& value) {
43 m_repositoryHasBeenSet = true;
44 m_repository = std::forward<RepositoryT>(value);
45 }
46 template <typename RepositoryT = Repository>
48 SetRepository(std::forward<RepositoryT>(value));
49 return *this;
50 }
52
54
58 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
59 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
60 template <typename ClientRequestTokenT = Aws::String>
61 void SetClientRequestToken(ClientRequestTokenT&& value) {
62 m_clientRequestTokenHasBeenSet = true;
63 m_clientRequestToken = std::forward<ClientRequestTokenT>(value);
64 }
65 template <typename ClientRequestTokenT = Aws::String>
66 AssociateRepositoryRequest& WithClientRequestToken(ClientRequestTokenT&& value) {
67 SetClientRequestToken(std::forward<ClientRequestTokenT>(value));
68 return *this;
69 }
71
73
83 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
84 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
85 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
86 void SetTags(TagsT&& value) {
87 m_tagsHasBeenSet = true;
88 m_tags = std::forward<TagsT>(value);
89 }
90 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
92 SetTags(std::forward<TagsT>(value));
93 return *this;
94 }
95 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
96 AssociateRepositoryRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
97 m_tagsHasBeenSet = true;
98 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
99 return *this;
100 }
102
104
112 inline const KMSKeyDetails& GetKMSKeyDetails() const { return m_kMSKeyDetails; }
113 inline bool KMSKeyDetailsHasBeenSet() const { return m_kMSKeyDetailsHasBeenSet; }
114 template <typename KMSKeyDetailsT = KMSKeyDetails>
115 void SetKMSKeyDetails(KMSKeyDetailsT&& value) {
116 m_kMSKeyDetailsHasBeenSet = true;
117 m_kMSKeyDetails = std::forward<KMSKeyDetailsT>(value);
118 }
119 template <typename KMSKeyDetailsT = KMSKeyDetails>
121 SetKMSKeyDetails(std::forward<KMSKeyDetailsT>(value));
122 return *this;
123 }
125 private:
126 Repository m_repository;
127
128 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
129
131
132 KMSKeyDetails m_kMSKeyDetails;
133 bool m_repositoryHasBeenSet = false;
134 bool m_clientRequestTokenHasBeenSet = true;
135 bool m_tagsHasBeenSet = false;
136 bool m_kMSKeyDetailsHasBeenSet = false;
137};
138
139} // namespace Model
140} // namespace CodeGuruReviewer
141} // namespace Aws
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AssociateRepositoryRequest & WithClientRequestToken(ClientRequestTokenT &&value)
AWS_CODEGURUREVIEWER_API Aws::String SerializePayload() const override
AWS_CODEGURUREVIEWER_API AssociateRepositoryRequest()=default
AssociateRepositoryRequest & WithKMSKeyDetails(KMSKeyDetailsT &&value)
AssociateRepositoryRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
AssociateRepositoryRequest & WithRepository(RepositoryT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
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