AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
RepositoryDescription.h
1
6#pragma once
7#include <aws/codeartifact/CodeArtifact_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/codeartifact/model/UpstreamRepositoryInfo.h>
12#include <aws/codeartifact/model/RepositoryExternalConnectionInfo.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace CodeArtifact
26{
27namespace Model
28{
29
42 {
43 public:
44 AWS_CODEARTIFACT_API RepositoryDescription() = default;
45 AWS_CODEARTIFACT_API RepositoryDescription(Aws::Utils::Json::JsonView jsonValue);
47 AWS_CODEARTIFACT_API Aws::Utils::Json::JsonValue Jsonize() const;
48
49
51
54 inline const Aws::String& GetName() const { return m_name; }
55 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
56 template<typename NameT = Aws::String>
57 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
58 template<typename NameT = Aws::String>
59 RepositoryDescription& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
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) { m_administratorAccountHasBeenSet = true; m_administratorAccount = std::forward<AdministratorAccountT>(value); }
71 template<typename AdministratorAccountT = Aws::String>
72 RepositoryDescription& WithAdministratorAccount(AdministratorAccountT&& value) { SetAdministratorAccount(std::forward<AdministratorAccountT>(value)); return *this;}
74
76
79 inline const Aws::String& GetDomainName() const { return m_domainName; }
80 inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; }
81 template<typename DomainNameT = Aws::String>
82 void SetDomainName(DomainNameT&& value) { m_domainNameHasBeenSet = true; m_domainName = std::forward<DomainNameT>(value); }
83 template<typename DomainNameT = Aws::String>
84 RepositoryDescription& WithDomainName(DomainNameT&& value) { SetDomainName(std::forward<DomainNameT>(value)); return *this;}
86
88
92 inline const Aws::String& GetDomainOwner() const { return m_domainOwner; }
93 inline bool DomainOwnerHasBeenSet() const { return m_domainOwnerHasBeenSet; }
94 template<typename DomainOwnerT = Aws::String>
95 void SetDomainOwner(DomainOwnerT&& value) { m_domainOwnerHasBeenSet = true; m_domainOwner = std::forward<DomainOwnerT>(value); }
96 template<typename DomainOwnerT = Aws::String>
97 RepositoryDescription& WithDomainOwner(DomainOwnerT&& value) { SetDomainOwner(std::forward<DomainOwnerT>(value)); return *this;}
99
101
104 inline const Aws::String& GetArn() const { return m_arn; }
105 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
106 template<typename ArnT = Aws::String>
107 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
108 template<typename ArnT = Aws::String>
109 RepositoryDescription& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
111
113
116 inline const Aws::String& GetDescription() const { return m_description; }
117 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
118 template<typename DescriptionT = Aws::String>
119 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
120 template<typename DescriptionT = Aws::String>
121 RepositoryDescription& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
123
125
132 inline const Aws::Vector<UpstreamRepositoryInfo>& GetUpstreams() const { return m_upstreams; }
133 inline bool UpstreamsHasBeenSet() const { return m_upstreamsHasBeenSet; }
134 template<typename UpstreamsT = Aws::Vector<UpstreamRepositoryInfo>>
135 void SetUpstreams(UpstreamsT&& value) { m_upstreamsHasBeenSet = true; m_upstreams = std::forward<UpstreamsT>(value); }
136 template<typename UpstreamsT = Aws::Vector<UpstreamRepositoryInfo>>
137 RepositoryDescription& WithUpstreams(UpstreamsT&& value) { SetUpstreams(std::forward<UpstreamsT>(value)); return *this;}
138 template<typename UpstreamsT = UpstreamRepositoryInfo>
139 RepositoryDescription& AddUpstreams(UpstreamsT&& value) { m_upstreamsHasBeenSet = true; m_upstreams.emplace_back(std::forward<UpstreamsT>(value)); return *this; }
141
143
146 inline const Aws::Vector<RepositoryExternalConnectionInfo>& GetExternalConnections() const { return m_externalConnections; }
147 inline bool ExternalConnectionsHasBeenSet() const { return m_externalConnectionsHasBeenSet; }
148 template<typename ExternalConnectionsT = Aws::Vector<RepositoryExternalConnectionInfo>>
149 void SetExternalConnections(ExternalConnectionsT&& value) { m_externalConnectionsHasBeenSet = true; m_externalConnections = std::forward<ExternalConnectionsT>(value); }
150 template<typename ExternalConnectionsT = Aws::Vector<RepositoryExternalConnectionInfo>>
151 RepositoryDescription& WithExternalConnections(ExternalConnectionsT&& value) { SetExternalConnections(std::forward<ExternalConnectionsT>(value)); return *this;}
152 template<typename ExternalConnectionsT = RepositoryExternalConnectionInfo>
153 RepositoryDescription& AddExternalConnections(ExternalConnectionsT&& value) { m_externalConnectionsHasBeenSet = true; m_externalConnections.emplace_back(std::forward<ExternalConnectionsT>(value)); return *this; }
155
157
160 inline const Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
161 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
162 template<typename CreatedTimeT = Aws::Utils::DateTime>
163 void SetCreatedTime(CreatedTimeT&& value) { m_createdTimeHasBeenSet = true; m_createdTime = std::forward<CreatedTimeT>(value); }
164 template<typename CreatedTimeT = Aws::Utils::DateTime>
165 RepositoryDescription& WithCreatedTime(CreatedTimeT&& value) { SetCreatedTime(std::forward<CreatedTimeT>(value)); return *this;}
167 private:
168
169 Aws::String m_name;
170 bool m_nameHasBeenSet = false;
171
172 Aws::String m_administratorAccount;
173 bool m_administratorAccountHasBeenSet = false;
174
175 Aws::String m_domainName;
176 bool m_domainNameHasBeenSet = false;
177
178 Aws::String m_domainOwner;
179 bool m_domainOwnerHasBeenSet = false;
180
181 Aws::String m_arn;
182 bool m_arnHasBeenSet = false;
183
184 Aws::String m_description;
185 bool m_descriptionHasBeenSet = false;
186
188 bool m_upstreamsHasBeenSet = false;
189
191 bool m_externalConnectionsHasBeenSet = false;
192
193 Aws::Utils::DateTime m_createdTime{};
194 bool m_createdTimeHasBeenSet = false;
195 };
196
197} // namespace Model
198} // namespace CodeArtifact
199} // 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