AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
RepositoryDescription.h
1
6#pragma once
7#include <aws/codeartifact/CodeArtifact_EXPORTS.h>
8#include <aws/codeartifact/model/RepositoryExternalConnectionInfo.h>
9#include <aws/codeartifact/model/UpstreamRepositoryInfo.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace CodeArtifact {
24namespace Model {
25
38 public:
39 AWS_CODEARTIFACT_API RepositoryDescription() = default;
40 AWS_CODEARTIFACT_API RepositoryDescription(Aws::Utils::Json::JsonView jsonValue);
42 AWS_CODEARTIFACT_API Aws::Utils::Json::JsonValue Jsonize() const;
43
45
48 inline const Aws::String& GetName() const { return m_name; }
49 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
50 template <typename NameT = Aws::String>
51 void SetName(NameT&& value) {
52 m_nameHasBeenSet = true;
53 m_name = std::forward<NameT>(value);
54 }
55 template <typename NameT = Aws::String>
57 SetName(std::forward<NameT>(value));
58 return *this;
59 }
61
63
67 inline const Aws::String& GetAdministratorAccount() const { return m_administratorAccount; }
68 inline bool AdministratorAccountHasBeenSet() const { return m_administratorAccountHasBeenSet; }
69 template <typename AdministratorAccountT = Aws::String>
70 void SetAdministratorAccount(AdministratorAccountT&& value) {
71 m_administratorAccountHasBeenSet = true;
72 m_administratorAccount = std::forward<AdministratorAccountT>(value);
73 }
74 template <typename AdministratorAccountT = Aws::String>
75 RepositoryDescription& WithAdministratorAccount(AdministratorAccountT&& value) {
76 SetAdministratorAccount(std::forward<AdministratorAccountT>(value));
77 return *this;
78 }
80
82
85 inline const Aws::String& GetDomainName() const { return m_domainName; }
86 inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; }
87 template <typename DomainNameT = Aws::String>
88 void SetDomainName(DomainNameT&& value) {
89 m_domainNameHasBeenSet = true;
90 m_domainName = std::forward<DomainNameT>(value);
91 }
92 template <typename DomainNameT = Aws::String>
93 RepositoryDescription& WithDomainName(DomainNameT&& value) {
94 SetDomainName(std::forward<DomainNameT>(value));
95 return *this;
96 }
98
100
104 inline const Aws::String& GetDomainOwner() const { return m_domainOwner; }
105 inline bool DomainOwnerHasBeenSet() const { return m_domainOwnerHasBeenSet; }
106 template <typename DomainOwnerT = Aws::String>
107 void SetDomainOwner(DomainOwnerT&& value) {
108 m_domainOwnerHasBeenSet = true;
109 m_domainOwner = std::forward<DomainOwnerT>(value);
110 }
111 template <typename DomainOwnerT = Aws::String>
112 RepositoryDescription& WithDomainOwner(DomainOwnerT&& value) {
113 SetDomainOwner(std::forward<DomainOwnerT>(value));
114 return *this;
115 }
117
119
122 inline const Aws::String& GetArn() const { return m_arn; }
123 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
124 template <typename ArnT = Aws::String>
125 void SetArn(ArnT&& value) {
126 m_arnHasBeenSet = true;
127 m_arn = std::forward<ArnT>(value);
128 }
129 template <typename ArnT = Aws::String>
131 SetArn(std::forward<ArnT>(value));
132 return *this;
133 }
135
137
140 inline const Aws::String& GetDescription() const { return m_description; }
141 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
142 template <typename DescriptionT = Aws::String>
143 void SetDescription(DescriptionT&& value) {
144 m_descriptionHasBeenSet = true;
145 m_description = std::forward<DescriptionT>(value);
146 }
147 template <typename DescriptionT = Aws::String>
148 RepositoryDescription& WithDescription(DescriptionT&& value) {
149 SetDescription(std::forward<DescriptionT>(value));
150 return *this;
151 }
153
155
162 inline const Aws::Vector<UpstreamRepositoryInfo>& GetUpstreams() const { return m_upstreams; }
163 inline bool UpstreamsHasBeenSet() const { return m_upstreamsHasBeenSet; }
164 template <typename UpstreamsT = Aws::Vector<UpstreamRepositoryInfo>>
165 void SetUpstreams(UpstreamsT&& value) {
166 m_upstreamsHasBeenSet = true;
167 m_upstreams = std::forward<UpstreamsT>(value);
168 }
169 template <typename UpstreamsT = Aws::Vector<UpstreamRepositoryInfo>>
171 SetUpstreams(std::forward<UpstreamsT>(value));
172 return *this;
173 }
174 template <typename UpstreamsT = UpstreamRepositoryInfo>
175 RepositoryDescription& AddUpstreams(UpstreamsT&& value) {
176 m_upstreamsHasBeenSet = true;
177 m_upstreams.emplace_back(std::forward<UpstreamsT>(value));
178 return *this;
179 }
181
183
186 inline const Aws::Vector<RepositoryExternalConnectionInfo>& GetExternalConnections() const { return m_externalConnections; }
187 inline bool ExternalConnectionsHasBeenSet() const { return m_externalConnectionsHasBeenSet; }
188 template <typename ExternalConnectionsT = Aws::Vector<RepositoryExternalConnectionInfo>>
189 void SetExternalConnections(ExternalConnectionsT&& value) {
190 m_externalConnectionsHasBeenSet = true;
191 m_externalConnections = std::forward<ExternalConnectionsT>(value);
192 }
193 template <typename ExternalConnectionsT = Aws::Vector<RepositoryExternalConnectionInfo>>
194 RepositoryDescription& WithExternalConnections(ExternalConnectionsT&& value) {
195 SetExternalConnections(std::forward<ExternalConnectionsT>(value));
196 return *this;
197 }
198 template <typename ExternalConnectionsT = RepositoryExternalConnectionInfo>
199 RepositoryDescription& AddExternalConnections(ExternalConnectionsT&& value) {
200 m_externalConnectionsHasBeenSet = true;
201 m_externalConnections.emplace_back(std::forward<ExternalConnectionsT>(value));
202 return *this;
203 }
205
207
210 inline const Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
211 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
212 template <typename CreatedTimeT = Aws::Utils::DateTime>
213 void SetCreatedTime(CreatedTimeT&& value) {
214 m_createdTimeHasBeenSet = true;
215 m_createdTime = std::forward<CreatedTimeT>(value);
216 }
217 template <typename CreatedTimeT = Aws::Utils::DateTime>
218 RepositoryDescription& WithCreatedTime(CreatedTimeT&& value) {
219 SetCreatedTime(std::forward<CreatedTimeT>(value));
220 return *this;
221 }
223 private:
224 Aws::String m_name;
225
226 Aws::String m_administratorAccount;
227
228 Aws::String m_domainName;
229
230 Aws::String m_domainOwner;
231
232 Aws::String m_arn;
233
234 Aws::String m_description;
235
237
239
240 Aws::Utils::DateTime m_createdTime{};
241 bool m_nameHasBeenSet = false;
242 bool m_administratorAccountHasBeenSet = false;
243 bool m_domainNameHasBeenSet = false;
244 bool m_domainOwnerHasBeenSet = false;
245 bool m_arnHasBeenSet = false;
246 bool m_descriptionHasBeenSet = false;
247 bool m_upstreamsHasBeenSet = false;
248 bool m_externalConnectionsHasBeenSet = false;
249 bool m_createdTimeHasBeenSet = false;
250};
251
252} // namespace Model
253} // namespace CodeArtifact
254} // namespace Aws
RepositoryDescription & WithDomainName(DomainNameT &&value)
RepositoryDescription & WithCreatedTime(CreatedTimeT &&value)
RepositoryDescription & WithAdministratorAccount(AdministratorAccountT &&value)
AWS_CODEARTIFACT_API RepositoryDescription & operator=(Aws::Utils::Json::JsonView jsonValue)
RepositoryDescription & AddUpstreams(UpstreamsT &&value)
RepositoryDescription & WithArn(ArnT &&value)
RepositoryDescription & WithDomainOwner(DomainOwnerT &&value)
RepositoryDescription & WithName(NameT &&value)
RepositoryDescription & AddExternalConnections(ExternalConnectionsT &&value)
void SetExternalConnections(ExternalConnectionsT &&value)
RepositoryDescription & WithExternalConnections(ExternalConnectionsT &&value)
void SetAdministratorAccount(AdministratorAccountT &&value)
const Aws::Vector< UpstreamRepositoryInfo > & GetUpstreams() const
const Aws::Vector< RepositoryExternalConnectionInfo > & GetExternalConnections() const
RepositoryDescription & WithDescription(DescriptionT &&value)
RepositoryDescription & WithUpstreams(UpstreamsT &&value)
AWS_CODEARTIFACT_API RepositoryDescription(Aws::Utils::Json::JsonView jsonValue)
AWS_CODEARTIFACT_API RepositoryDescription()=default
const Aws::Utils::DateTime & GetCreatedTime() const
AWS_CODEARTIFACT_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue