AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RepositoryMetadata.h
1
6#pragma once
7#include <aws/codecommit/CodeCommit_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace CodeCommit
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_CODECOMMIT_API RepositoryMetadata();
36 AWS_CODECOMMIT_API RepositoryMetadata(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CODECOMMIT_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetAccountId() const{ return m_accountId; }
46 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
47 inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
48 inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
49 inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
50 inline RepositoryMetadata& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
51 inline RepositoryMetadata& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
52 inline RepositoryMetadata& WithAccountId(const char* value) { SetAccountId(value); return *this;}
54
56
59 inline const Aws::String& GetRepositoryId() const{ return m_repositoryId; }
60 inline bool RepositoryIdHasBeenSet() const { return m_repositoryIdHasBeenSet; }
61 inline void SetRepositoryId(const Aws::String& value) { m_repositoryIdHasBeenSet = true; m_repositoryId = value; }
62 inline void SetRepositoryId(Aws::String&& value) { m_repositoryIdHasBeenSet = true; m_repositoryId = std::move(value); }
63 inline void SetRepositoryId(const char* value) { m_repositoryIdHasBeenSet = true; m_repositoryId.assign(value); }
64 inline RepositoryMetadata& WithRepositoryId(const Aws::String& value) { SetRepositoryId(value); return *this;}
65 inline RepositoryMetadata& WithRepositoryId(Aws::String&& value) { SetRepositoryId(std::move(value)); return *this;}
66 inline RepositoryMetadata& WithRepositoryId(const char* value) { SetRepositoryId(value); return *this;}
68
70
73 inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; }
74 inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
75 inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
76 inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::move(value); }
77 inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); }
78 inline RepositoryMetadata& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;}
79 inline RepositoryMetadata& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;}
80 inline RepositoryMetadata& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
82
84
87 inline const Aws::String& GetRepositoryDescription() const{ return m_repositoryDescription; }
88 inline bool RepositoryDescriptionHasBeenSet() const { return m_repositoryDescriptionHasBeenSet; }
89 inline void SetRepositoryDescription(const Aws::String& value) { m_repositoryDescriptionHasBeenSet = true; m_repositoryDescription = value; }
90 inline void SetRepositoryDescription(Aws::String&& value) { m_repositoryDescriptionHasBeenSet = true; m_repositoryDescription = std::move(value); }
91 inline void SetRepositoryDescription(const char* value) { m_repositoryDescriptionHasBeenSet = true; m_repositoryDescription.assign(value); }
93 inline RepositoryMetadata& WithRepositoryDescription(Aws::String&& value) { SetRepositoryDescription(std::move(value)); return *this;}
94 inline RepositoryMetadata& WithRepositoryDescription(const char* value) { SetRepositoryDescription(value); return *this;}
96
98
101 inline const Aws::String& GetDefaultBranch() const{ return m_defaultBranch; }
102 inline bool DefaultBranchHasBeenSet() const { return m_defaultBranchHasBeenSet; }
103 inline void SetDefaultBranch(const Aws::String& value) { m_defaultBranchHasBeenSet = true; m_defaultBranch = value; }
104 inline void SetDefaultBranch(Aws::String&& value) { m_defaultBranchHasBeenSet = true; m_defaultBranch = std::move(value); }
105 inline void SetDefaultBranch(const char* value) { m_defaultBranchHasBeenSet = true; m_defaultBranch.assign(value); }
106 inline RepositoryMetadata& WithDefaultBranch(const Aws::String& value) { SetDefaultBranch(value); return *this;}
107 inline RepositoryMetadata& WithDefaultBranch(Aws::String&& value) { SetDefaultBranch(std::move(value)); return *this;}
108 inline RepositoryMetadata& WithDefaultBranch(const char* value) { SetDefaultBranch(value); return *this;}
110
112
115 inline const Aws::Utils::DateTime& GetLastModifiedDate() const{ return m_lastModifiedDate; }
116 inline bool LastModifiedDateHasBeenSet() const { return m_lastModifiedDateHasBeenSet; }
117 inline void SetLastModifiedDate(const Aws::Utils::DateTime& value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate = value; }
118 inline void SetLastModifiedDate(Aws::Utils::DateTime&& value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate = std::move(value); }
120 inline RepositoryMetadata& WithLastModifiedDate(Aws::Utils::DateTime&& value) { SetLastModifiedDate(std::move(value)); return *this;}
122
124
127 inline const Aws::Utils::DateTime& GetCreationDate() const{ return m_creationDate; }
128 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
129 inline void SetCreationDate(const Aws::Utils::DateTime& value) { m_creationDateHasBeenSet = true; m_creationDate = value; }
130 inline void SetCreationDate(Aws::Utils::DateTime&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::move(value); }
131 inline RepositoryMetadata& WithCreationDate(const Aws::Utils::DateTime& value) { SetCreationDate(value); return *this;}
132 inline RepositoryMetadata& WithCreationDate(Aws::Utils::DateTime&& value) { SetCreationDate(std::move(value)); return *this;}
134
136
139 inline const Aws::String& GetCloneUrlHttp() const{ return m_cloneUrlHttp; }
140 inline bool CloneUrlHttpHasBeenSet() const { return m_cloneUrlHttpHasBeenSet; }
141 inline void SetCloneUrlHttp(const Aws::String& value) { m_cloneUrlHttpHasBeenSet = true; m_cloneUrlHttp = value; }
142 inline void SetCloneUrlHttp(Aws::String&& value) { m_cloneUrlHttpHasBeenSet = true; m_cloneUrlHttp = std::move(value); }
143 inline void SetCloneUrlHttp(const char* value) { m_cloneUrlHttpHasBeenSet = true; m_cloneUrlHttp.assign(value); }
144 inline RepositoryMetadata& WithCloneUrlHttp(const Aws::String& value) { SetCloneUrlHttp(value); return *this;}
145 inline RepositoryMetadata& WithCloneUrlHttp(Aws::String&& value) { SetCloneUrlHttp(std::move(value)); return *this;}
146 inline RepositoryMetadata& WithCloneUrlHttp(const char* value) { SetCloneUrlHttp(value); return *this;}
148
150
153 inline const Aws::String& GetCloneUrlSsh() const{ return m_cloneUrlSsh; }
154 inline bool CloneUrlSshHasBeenSet() const { return m_cloneUrlSshHasBeenSet; }
155 inline void SetCloneUrlSsh(const Aws::String& value) { m_cloneUrlSshHasBeenSet = true; m_cloneUrlSsh = value; }
156 inline void SetCloneUrlSsh(Aws::String&& value) { m_cloneUrlSshHasBeenSet = true; m_cloneUrlSsh = std::move(value); }
157 inline void SetCloneUrlSsh(const char* value) { m_cloneUrlSshHasBeenSet = true; m_cloneUrlSsh.assign(value); }
158 inline RepositoryMetadata& WithCloneUrlSsh(const Aws::String& value) { SetCloneUrlSsh(value); return *this;}
159 inline RepositoryMetadata& WithCloneUrlSsh(Aws::String&& value) { SetCloneUrlSsh(std::move(value)); return *this;}
160 inline RepositoryMetadata& WithCloneUrlSsh(const char* value) { SetCloneUrlSsh(value); return *this;}
162
164
167 inline const Aws::String& GetArn() const{ return m_arn; }
168 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
169 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
170 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
171 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
172 inline RepositoryMetadata& WithArn(const Aws::String& value) { SetArn(value); return *this;}
173 inline RepositoryMetadata& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
174 inline RepositoryMetadata& WithArn(const char* value) { SetArn(value); return *this;}
176
178
182 inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; }
183 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
184 inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
185 inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); }
186 inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); }
187 inline RepositoryMetadata& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;}
188 inline RepositoryMetadata& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;}
189 inline RepositoryMetadata& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;}
191 private:
192
193 Aws::String m_accountId;
194 bool m_accountIdHasBeenSet = false;
195
196 Aws::String m_repositoryId;
197 bool m_repositoryIdHasBeenSet = false;
198
199 Aws::String m_repositoryName;
200 bool m_repositoryNameHasBeenSet = false;
201
202 Aws::String m_repositoryDescription;
203 bool m_repositoryDescriptionHasBeenSet = false;
204
205 Aws::String m_defaultBranch;
206 bool m_defaultBranchHasBeenSet = false;
207
208 Aws::Utils::DateTime m_lastModifiedDate;
209 bool m_lastModifiedDateHasBeenSet = false;
210
211 Aws::Utils::DateTime m_creationDate;
212 bool m_creationDateHasBeenSet = false;
213
214 Aws::String m_cloneUrlHttp;
215 bool m_cloneUrlHttpHasBeenSet = false;
216
217 Aws::String m_cloneUrlSsh;
218 bool m_cloneUrlSshHasBeenSet = false;
219
220 Aws::String m_arn;
221 bool m_arnHasBeenSet = false;
222
223 Aws::String m_kmsKeyId;
224 bool m_kmsKeyIdHasBeenSet = false;
225 };
226
227} // namespace Model
228} // namespace CodeCommit
229} // namespace Aws
void SetRepositoryDescription(const Aws::String &value)
RepositoryMetadata & WithLastModifiedDate(const Aws::Utils::DateTime &value)
RepositoryMetadata & WithCloneUrlHttp(const Aws::String &value)
void SetDefaultBranch(const Aws::String &value)
RepositoryMetadata & WithRepositoryName(const Aws::String &value)
RepositoryMetadata & WithArn(const Aws::String &value)
RepositoryMetadata & WithKmsKeyId(const char *value)
void SetCreationDate(const Aws::Utils::DateTime &value)
RepositoryMetadata & WithDefaultBranch(const Aws::String &value)
RepositoryMetadata & WithKmsKeyId(const Aws::String &value)
RepositoryMetadata & WithKmsKeyId(Aws::String &&value)
RepositoryMetadata & WithRepositoryId(Aws::String &&value)
RepositoryMetadata & WithCloneUrlSsh(const char *value)
const Aws::String & GetRepositoryDescription() const
AWS_CODECOMMIT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetRepositoryId(const Aws::String &value)
RepositoryMetadata & WithRepositoryId(const Aws::String &value)
RepositoryMetadata & WithRepositoryDescription(Aws::String &&value)
const Aws::Utils::DateTime & GetCreationDate() const
RepositoryMetadata & WithRepositoryName(Aws::String &&value)
RepositoryMetadata & WithAccountId(Aws::String &&value)
RepositoryMetadata & WithAccountId(const char *value)
void SetRepositoryName(const Aws::String &value)
RepositoryMetadata & WithDefaultBranch(const char *value)
RepositoryMetadata & WithRepositoryName(const char *value)
RepositoryMetadata & WithCloneUrlHttp(Aws::String &&value)
RepositoryMetadata & WithCreationDate(const Aws::Utils::DateTime &value)
void SetAccountId(const Aws::String &value)
void SetCloneUrlSsh(const Aws::String &value)
void SetLastModifiedDate(Aws::Utils::DateTime &&value)
void SetCloneUrlHttp(const Aws::String &value)
RepositoryMetadata & WithCreationDate(Aws::Utils::DateTime &&value)
AWS_CODECOMMIT_API RepositoryMetadata & operator=(Aws::Utils::Json::JsonView jsonValue)
RepositoryMetadata & WithLastModifiedDate(Aws::Utils::DateTime &&value)
RepositoryMetadata & WithRepositoryId(const char *value)
RepositoryMetadata & WithArn(Aws::String &&value)
RepositoryMetadata & WithRepositoryDescription(const Aws::String &value)
RepositoryMetadata & WithCloneUrlSsh(const Aws::String &value)
RepositoryMetadata & WithCloneUrlSsh(Aws::String &&value)
RepositoryMetadata & WithDefaultBranch(Aws::String &&value)
RepositoryMetadata & WithArn(const char *value)
void SetKmsKeyId(const Aws::String &value)
const Aws::Utils::DateTime & GetLastModifiedDate() const
RepositoryMetadata & WithCloneUrlHttp(const char *value)
RepositoryMetadata & WithAccountId(const Aws::String &value)
const Aws::String & GetRepositoryName() const
RepositoryMetadata & WithRepositoryDescription(const char *value)
void SetRepositoryDescription(Aws::String &&value)
void SetCreationDate(Aws::Utils::DateTime &&value)
void SetLastModifiedDate(const Aws::Utils::DateTime &value)
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