AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename AccountIdT = Aws::String>
48 void SetAccountId(AccountIdT&& value) { m_accountIdHasBeenSet = true; m_accountId = std::forward<AccountIdT>(value); }
49 template<typename AccountIdT = Aws::String>
50 RepositoryMetadata& WithAccountId(AccountIdT&& value) { SetAccountId(std::forward<AccountIdT>(value)); return *this;}
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) { m_repositoryIdHasBeenSet = true; m_repositoryId = std::forward<RepositoryIdT>(value); }
61 template<typename RepositoryIdT = Aws::String>
62 RepositoryMetadata& WithRepositoryId(RepositoryIdT&& value) { SetRepositoryId(std::forward<RepositoryIdT>(value)); return *this;}
64
66
69 inline const Aws::String& GetRepositoryName() const { return m_repositoryName; }
70 inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
71 template<typename RepositoryNameT = Aws::String>
72 void SetRepositoryName(RepositoryNameT&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::forward<RepositoryNameT>(value); }
73 template<typename RepositoryNameT = Aws::String>
74 RepositoryMetadata& WithRepositoryName(RepositoryNameT&& value) { SetRepositoryName(std::forward<RepositoryNameT>(value)); return *this;}
76
78
81 inline const Aws::String& GetRepositoryDescription() const { return m_repositoryDescription; }
82 inline bool RepositoryDescriptionHasBeenSet() const { return m_repositoryDescriptionHasBeenSet; }
83 template<typename RepositoryDescriptionT = Aws::String>
84 void SetRepositoryDescription(RepositoryDescriptionT&& value) { m_repositoryDescriptionHasBeenSet = true; m_repositoryDescription = std::forward<RepositoryDescriptionT>(value); }
85 template<typename RepositoryDescriptionT = Aws::String>
86 RepositoryMetadata& WithRepositoryDescription(RepositoryDescriptionT&& value) { SetRepositoryDescription(std::forward<RepositoryDescriptionT>(value)); return *this;}
88
90
93 inline const Aws::String& GetDefaultBranch() const { return m_defaultBranch; }
94 inline bool DefaultBranchHasBeenSet() const { return m_defaultBranchHasBeenSet; }
95 template<typename DefaultBranchT = Aws::String>
96 void SetDefaultBranch(DefaultBranchT&& value) { m_defaultBranchHasBeenSet = true; m_defaultBranch = std::forward<DefaultBranchT>(value); }
97 template<typename DefaultBranchT = Aws::String>
98 RepositoryMetadata& WithDefaultBranch(DefaultBranchT&& value) { SetDefaultBranch(std::forward<DefaultBranchT>(value)); return *this;}
100
102
105 inline const Aws::Utils::DateTime& GetLastModifiedDate() const { return m_lastModifiedDate; }
106 inline bool LastModifiedDateHasBeenSet() const { return m_lastModifiedDateHasBeenSet; }
107 template<typename LastModifiedDateT = Aws::Utils::DateTime>
108 void SetLastModifiedDate(LastModifiedDateT&& value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate = std::forward<LastModifiedDateT>(value); }
109 template<typename LastModifiedDateT = Aws::Utils::DateTime>
110 RepositoryMetadata& WithLastModifiedDate(LastModifiedDateT&& value) { SetLastModifiedDate(std::forward<LastModifiedDateT>(value)); return *this;}
112
114
117 inline const Aws::Utils::DateTime& GetCreationDate() const { return m_creationDate; }
118 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
119 template<typename CreationDateT = Aws::Utils::DateTime>
120 void SetCreationDate(CreationDateT&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::forward<CreationDateT>(value); }
121 template<typename CreationDateT = Aws::Utils::DateTime>
122 RepositoryMetadata& WithCreationDate(CreationDateT&& value) { SetCreationDate(std::forward<CreationDateT>(value)); return *this;}
124
126
129 inline const Aws::String& GetCloneUrlHttp() const { return m_cloneUrlHttp; }
130 inline bool CloneUrlHttpHasBeenSet() const { return m_cloneUrlHttpHasBeenSet; }
131 template<typename CloneUrlHttpT = Aws::String>
132 void SetCloneUrlHttp(CloneUrlHttpT&& value) { m_cloneUrlHttpHasBeenSet = true; m_cloneUrlHttp = std::forward<CloneUrlHttpT>(value); }
133 template<typename CloneUrlHttpT = Aws::String>
134 RepositoryMetadata& WithCloneUrlHttp(CloneUrlHttpT&& value) { SetCloneUrlHttp(std::forward<CloneUrlHttpT>(value)); return *this;}
136
138
141 inline const Aws::String& GetCloneUrlSsh() const { return m_cloneUrlSsh; }
142 inline bool CloneUrlSshHasBeenSet() const { return m_cloneUrlSshHasBeenSet; }
143 template<typename CloneUrlSshT = Aws::String>
144 void SetCloneUrlSsh(CloneUrlSshT&& value) { m_cloneUrlSshHasBeenSet = true; m_cloneUrlSsh = std::forward<CloneUrlSshT>(value); }
145 template<typename CloneUrlSshT = Aws::String>
146 RepositoryMetadata& WithCloneUrlSsh(CloneUrlSshT&& value) { SetCloneUrlSsh(std::forward<CloneUrlSshT>(value)); return *this;}
148
150
153 inline const Aws::String& GetArn() const { return m_arn; }
154 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
155 template<typename ArnT = Aws::String>
156 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
157 template<typename ArnT = Aws::String>
158 RepositoryMetadata& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
160
162
166 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
167 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
168 template<typename KmsKeyIdT = Aws::String>
169 void SetKmsKeyId(KmsKeyIdT&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::forward<KmsKeyIdT>(value); }
170 template<typename KmsKeyIdT = Aws::String>
171 RepositoryMetadata& WithKmsKeyId(KmsKeyIdT&& value) { SetKmsKeyId(std::forward<KmsKeyIdT>(value)); return *this;}
173 private:
174
175 Aws::String m_accountId;
176 bool m_accountIdHasBeenSet = false;
177
178 Aws::String m_repositoryId;
179 bool m_repositoryIdHasBeenSet = false;
180
181 Aws::String m_repositoryName;
182 bool m_repositoryNameHasBeenSet = false;
183
184 Aws::String m_repositoryDescription;
185 bool m_repositoryDescriptionHasBeenSet = false;
186
187 Aws::String m_defaultBranch;
188 bool m_defaultBranchHasBeenSet = false;
189
190 Aws::Utils::DateTime m_lastModifiedDate{};
191 bool m_lastModifiedDateHasBeenSet = false;
192
193 Aws::Utils::DateTime m_creationDate{};
194 bool m_creationDateHasBeenSet = false;
195
196 Aws::String m_cloneUrlHttp;
197 bool m_cloneUrlHttpHasBeenSet = false;
198
199 Aws::String m_cloneUrlSsh;
200 bool m_cloneUrlSshHasBeenSet = false;
201
202 Aws::String m_arn;
203 bool m_arnHasBeenSet = false;
204
205 Aws::String m_kmsKeyId;
206 bool m_kmsKeyIdHasBeenSet = false;
207 };
208
209} // namespace Model
210} // namespace CodeCommit
211} // 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