AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
RepositoryMetadata.h
1
6#pragma once
7#include <aws/codecommit/CodeCommit_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace CodeCommit {
21namespace Model {
22
29 public:
30 AWS_CODECOMMIT_API RepositoryMetadata() = default;
31 AWS_CODECOMMIT_API RepositoryMetadata(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CODECOMMIT_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetAccountId() const { return m_accountId; }
40 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
41 template <typename AccountIdT = Aws::String>
42 void SetAccountId(AccountIdT&& value) {
43 m_accountIdHasBeenSet = true;
44 m_accountId = std::forward<AccountIdT>(value);
45 }
46 template <typename AccountIdT = Aws::String>
47 RepositoryMetadata& WithAccountId(AccountIdT&& value) {
48 SetAccountId(std::forward<AccountIdT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetRepositoryId() const { return m_repositoryId; }
58 inline bool RepositoryIdHasBeenSet() const { return m_repositoryIdHasBeenSet; }
59 template <typename RepositoryIdT = Aws::String>
60 void SetRepositoryId(RepositoryIdT&& value) {
61 m_repositoryIdHasBeenSet = true;
62 m_repositoryId = std::forward<RepositoryIdT>(value);
63 }
64 template <typename RepositoryIdT = Aws::String>
65 RepositoryMetadata& WithRepositoryId(RepositoryIdT&& value) {
66 SetRepositoryId(std::forward<RepositoryIdT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetRepositoryName() const { return m_repositoryName; }
76 inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
77 template <typename RepositoryNameT = Aws::String>
78 void SetRepositoryName(RepositoryNameT&& value) {
79 m_repositoryNameHasBeenSet = true;
80 m_repositoryName = std::forward<RepositoryNameT>(value);
81 }
82 template <typename RepositoryNameT = Aws::String>
83 RepositoryMetadata& WithRepositoryName(RepositoryNameT&& value) {
84 SetRepositoryName(std::forward<RepositoryNameT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::String& GetRepositoryDescription() const { return m_repositoryDescription; }
94 inline bool RepositoryDescriptionHasBeenSet() const { return m_repositoryDescriptionHasBeenSet; }
95 template <typename RepositoryDescriptionT = Aws::String>
96 void SetRepositoryDescription(RepositoryDescriptionT&& value) {
97 m_repositoryDescriptionHasBeenSet = true;
98 m_repositoryDescription = std::forward<RepositoryDescriptionT>(value);
99 }
100 template <typename RepositoryDescriptionT = Aws::String>
101 RepositoryMetadata& WithRepositoryDescription(RepositoryDescriptionT&& value) {
102 SetRepositoryDescription(std::forward<RepositoryDescriptionT>(value));
103 return *this;
104 }
106
108
111 inline const Aws::String& GetDefaultBranch() const { return m_defaultBranch; }
112 inline bool DefaultBranchHasBeenSet() const { return m_defaultBranchHasBeenSet; }
113 template <typename DefaultBranchT = Aws::String>
114 void SetDefaultBranch(DefaultBranchT&& value) {
115 m_defaultBranchHasBeenSet = true;
116 m_defaultBranch = std::forward<DefaultBranchT>(value);
117 }
118 template <typename DefaultBranchT = Aws::String>
119 RepositoryMetadata& WithDefaultBranch(DefaultBranchT&& value) {
120 SetDefaultBranch(std::forward<DefaultBranchT>(value));
121 return *this;
122 }
124
126
129 inline const Aws::Utils::DateTime& GetLastModifiedDate() const { return m_lastModifiedDate; }
130 inline bool LastModifiedDateHasBeenSet() const { return m_lastModifiedDateHasBeenSet; }
131 template <typename LastModifiedDateT = Aws::Utils::DateTime>
132 void SetLastModifiedDate(LastModifiedDateT&& value) {
133 m_lastModifiedDateHasBeenSet = true;
134 m_lastModifiedDate = std::forward<LastModifiedDateT>(value);
135 }
136 template <typename LastModifiedDateT = Aws::Utils::DateTime>
137 RepositoryMetadata& WithLastModifiedDate(LastModifiedDateT&& value) {
138 SetLastModifiedDate(std::forward<LastModifiedDateT>(value));
139 return *this;
140 }
142
144
147 inline const Aws::Utils::DateTime& GetCreationDate() const { return m_creationDate; }
148 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
149 template <typename CreationDateT = Aws::Utils::DateTime>
150 void SetCreationDate(CreationDateT&& value) {
151 m_creationDateHasBeenSet = true;
152 m_creationDate = std::forward<CreationDateT>(value);
153 }
154 template <typename CreationDateT = Aws::Utils::DateTime>
155 RepositoryMetadata& WithCreationDate(CreationDateT&& value) {
156 SetCreationDate(std::forward<CreationDateT>(value));
157 return *this;
158 }
160
162
165 inline const Aws::String& GetCloneUrlHttp() const { return m_cloneUrlHttp; }
166 inline bool CloneUrlHttpHasBeenSet() const { return m_cloneUrlHttpHasBeenSet; }
167 template <typename CloneUrlHttpT = Aws::String>
168 void SetCloneUrlHttp(CloneUrlHttpT&& value) {
169 m_cloneUrlHttpHasBeenSet = true;
170 m_cloneUrlHttp = std::forward<CloneUrlHttpT>(value);
171 }
172 template <typename CloneUrlHttpT = Aws::String>
173 RepositoryMetadata& WithCloneUrlHttp(CloneUrlHttpT&& value) {
174 SetCloneUrlHttp(std::forward<CloneUrlHttpT>(value));
175 return *this;
176 }
178
180
183 inline const Aws::String& GetCloneUrlSsh() const { return m_cloneUrlSsh; }
184 inline bool CloneUrlSshHasBeenSet() const { return m_cloneUrlSshHasBeenSet; }
185 template <typename CloneUrlSshT = Aws::String>
186 void SetCloneUrlSsh(CloneUrlSshT&& value) {
187 m_cloneUrlSshHasBeenSet = true;
188 m_cloneUrlSsh = std::forward<CloneUrlSshT>(value);
189 }
190 template <typename CloneUrlSshT = Aws::String>
191 RepositoryMetadata& WithCloneUrlSsh(CloneUrlSshT&& value) {
192 SetCloneUrlSsh(std::forward<CloneUrlSshT>(value));
193 return *this;
194 }
196
198
201 inline const Aws::String& GetArn() const { return m_arn; }
202 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
203 template <typename ArnT = Aws::String>
204 void SetArn(ArnT&& value) {
205 m_arnHasBeenSet = true;
206 m_arn = std::forward<ArnT>(value);
207 }
208 template <typename ArnT = Aws::String>
210 SetArn(std::forward<ArnT>(value));
211 return *this;
212 }
214
216
220 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
221 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
222 template <typename KmsKeyIdT = Aws::String>
223 void SetKmsKeyId(KmsKeyIdT&& value) {
224 m_kmsKeyIdHasBeenSet = true;
225 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
226 }
227 template <typename KmsKeyIdT = Aws::String>
228 RepositoryMetadata& WithKmsKeyId(KmsKeyIdT&& value) {
229 SetKmsKeyId(std::forward<KmsKeyIdT>(value));
230 return *this;
231 }
233 private:
234 Aws::String m_accountId;
235
236 Aws::String m_repositoryId;
237
238 Aws::String m_repositoryName;
239
240 Aws::String m_repositoryDescription;
241
242 Aws::String m_defaultBranch;
243
244 Aws::Utils::DateTime m_lastModifiedDate{};
245
246 Aws::Utils::DateTime m_creationDate{};
247
248 Aws::String m_cloneUrlHttp;
249
250 Aws::String m_cloneUrlSsh;
251
252 Aws::String m_arn;
253
254 Aws::String m_kmsKeyId;
255 bool m_accountIdHasBeenSet = false;
256 bool m_repositoryIdHasBeenSet = false;
257 bool m_repositoryNameHasBeenSet = false;
258 bool m_repositoryDescriptionHasBeenSet = false;
259 bool m_defaultBranchHasBeenSet = false;
260 bool m_lastModifiedDateHasBeenSet = false;
261 bool m_creationDateHasBeenSet = false;
262 bool m_cloneUrlHttpHasBeenSet = false;
263 bool m_cloneUrlSshHasBeenSet = false;
264 bool m_arnHasBeenSet = false;
265 bool m_kmsKeyIdHasBeenSet = false;
266};
267
268} // namespace Model
269} // namespace CodeCommit
270} // namespace Aws
RepositoryMetadata & WithArn(ArnT &&value)
void SetLastModifiedDate(LastModifiedDateT &&value)
RepositoryMetadata & WithAccountId(AccountIdT &&value)
RepositoryMetadata & WithRepositoryDescription(RepositoryDescriptionT &&value)
RepositoryMetadata & WithLastModifiedDate(LastModifiedDateT &&value)
void SetDefaultBranch(DefaultBranchT &&value)
const Aws::String & GetRepositoryDescription() const
AWS_CODECOMMIT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetRepositoryName(RepositoryNameT &&value)
const Aws::Utils::DateTime & GetCreationDate() const
RepositoryMetadata & WithRepositoryId(RepositoryIdT &&value)
RepositoryMetadata & WithDefaultBranch(DefaultBranchT &&value)
AWS_CODECOMMIT_API RepositoryMetadata & operator=(Aws::Utils::Json::JsonView jsonValue)
RepositoryMetadata & WithCreationDate(CreationDateT &&value)
AWS_CODECOMMIT_API RepositoryMetadata()=default
RepositoryMetadata & WithRepositoryName(RepositoryNameT &&value)
RepositoryMetadata & WithCloneUrlSsh(CloneUrlSshT &&value)
RepositoryMetadata & WithKmsKeyId(KmsKeyIdT &&value)
const Aws::Utils::DateTime & GetLastModifiedDate() const
void SetRepositoryDescription(RepositoryDescriptionT &&value)
RepositoryMetadata & WithCloneUrlHttp(CloneUrlHttpT &&value)
const Aws::String & GetRepositoryName() const
AWS_CODECOMMIT_API RepositoryMetadata(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue