AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
57 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
58 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
59 inline RepositoryDescription& WithName(const Aws::String& value) { SetName(value); return *this;}
60 inline RepositoryDescription& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
61 inline RepositoryDescription& WithName(const char* value) { SetName(value); return *this;}
63
65
69 inline const Aws::String& GetAdministratorAccount() const{ return m_administratorAccount; }
70 inline bool AdministratorAccountHasBeenSet() const { return m_administratorAccountHasBeenSet; }
71 inline void SetAdministratorAccount(const Aws::String& value) { m_administratorAccountHasBeenSet = true; m_administratorAccount = value; }
72 inline void SetAdministratorAccount(Aws::String&& value) { m_administratorAccountHasBeenSet = true; m_administratorAccount = std::move(value); }
73 inline void SetAdministratorAccount(const char* value) { m_administratorAccountHasBeenSet = true; m_administratorAccount.assign(value); }
75 inline RepositoryDescription& WithAdministratorAccount(Aws::String&& value) { SetAdministratorAccount(std::move(value)); return *this;}
76 inline RepositoryDescription& WithAdministratorAccount(const char* value) { SetAdministratorAccount(value); return *this;}
78
80
83 inline const Aws::String& GetDomainName() const{ return m_domainName; }
84 inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; }
85 inline void SetDomainName(const Aws::String& value) { m_domainNameHasBeenSet = true; m_domainName = value; }
86 inline void SetDomainName(Aws::String&& value) { m_domainNameHasBeenSet = true; m_domainName = std::move(value); }
87 inline void SetDomainName(const char* value) { m_domainNameHasBeenSet = true; m_domainName.assign(value); }
88 inline RepositoryDescription& WithDomainName(const Aws::String& value) { SetDomainName(value); return *this;}
89 inline RepositoryDescription& WithDomainName(Aws::String&& value) { SetDomainName(std::move(value)); return *this;}
90 inline RepositoryDescription& WithDomainName(const char* value) { SetDomainName(value); return *this;}
92
94
98 inline const Aws::String& GetDomainOwner() const{ return m_domainOwner; }
99 inline bool DomainOwnerHasBeenSet() const { return m_domainOwnerHasBeenSet; }
100 inline void SetDomainOwner(const Aws::String& value) { m_domainOwnerHasBeenSet = true; m_domainOwner = value; }
101 inline void SetDomainOwner(Aws::String&& value) { m_domainOwnerHasBeenSet = true; m_domainOwner = std::move(value); }
102 inline void SetDomainOwner(const char* value) { m_domainOwnerHasBeenSet = true; m_domainOwner.assign(value); }
103 inline RepositoryDescription& WithDomainOwner(const Aws::String& value) { SetDomainOwner(value); return *this;}
104 inline RepositoryDescription& WithDomainOwner(Aws::String&& value) { SetDomainOwner(std::move(value)); return *this;}
105 inline RepositoryDescription& WithDomainOwner(const char* value) { SetDomainOwner(value); return *this;}
107
109
112 inline const Aws::String& GetArn() const{ return m_arn; }
113 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
114 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
115 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
116 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
117 inline RepositoryDescription& WithArn(const Aws::String& value) { SetArn(value); return *this;}
118 inline RepositoryDescription& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
119 inline RepositoryDescription& WithArn(const char* value) { SetArn(value); return *this;}
121
123
126 inline const Aws::String& GetDescription() const{ return m_description; }
127 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
128 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
129 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
130 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
131 inline RepositoryDescription& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
132 inline RepositoryDescription& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
133 inline RepositoryDescription& WithDescription(const char* value) { SetDescription(value); return *this;}
135
137
144 inline const Aws::Vector<UpstreamRepositoryInfo>& GetUpstreams() const{ return m_upstreams; }
145 inline bool UpstreamsHasBeenSet() const { return m_upstreamsHasBeenSet; }
146 inline void SetUpstreams(const Aws::Vector<UpstreamRepositoryInfo>& value) { m_upstreamsHasBeenSet = true; m_upstreams = value; }
147 inline void SetUpstreams(Aws::Vector<UpstreamRepositoryInfo>&& value) { m_upstreamsHasBeenSet = true; m_upstreams = std::move(value); }
149 inline RepositoryDescription& WithUpstreams(Aws::Vector<UpstreamRepositoryInfo>&& value) { SetUpstreams(std::move(value)); return *this;}
150 inline RepositoryDescription& AddUpstreams(const UpstreamRepositoryInfo& value) { m_upstreamsHasBeenSet = true; m_upstreams.push_back(value); return *this; }
151 inline RepositoryDescription& AddUpstreams(UpstreamRepositoryInfo&& value) { m_upstreamsHasBeenSet = true; m_upstreams.push_back(std::move(value)); return *this; }
153
155
158 inline const Aws::Vector<RepositoryExternalConnectionInfo>& GetExternalConnections() const{ return m_externalConnections; }
159 inline bool ExternalConnectionsHasBeenSet() const { return m_externalConnectionsHasBeenSet; }
160 inline void SetExternalConnections(const Aws::Vector<RepositoryExternalConnectionInfo>& value) { m_externalConnectionsHasBeenSet = true; m_externalConnections = value; }
161 inline void SetExternalConnections(Aws::Vector<RepositoryExternalConnectionInfo>&& value) { m_externalConnectionsHasBeenSet = true; m_externalConnections = std::move(value); }
164 inline RepositoryDescription& AddExternalConnections(const RepositoryExternalConnectionInfo& value) { m_externalConnectionsHasBeenSet = true; m_externalConnections.push_back(value); return *this; }
165 inline RepositoryDescription& AddExternalConnections(RepositoryExternalConnectionInfo&& value) { m_externalConnectionsHasBeenSet = true; m_externalConnections.push_back(std::move(value)); return *this; }
167
169
172 inline const Aws::Utils::DateTime& GetCreatedTime() const{ return m_createdTime; }
173 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
174 inline void SetCreatedTime(const Aws::Utils::DateTime& value) { m_createdTimeHasBeenSet = true; m_createdTime = value; }
175 inline void SetCreatedTime(Aws::Utils::DateTime&& value) { m_createdTimeHasBeenSet = true; m_createdTime = std::move(value); }
176 inline RepositoryDescription& WithCreatedTime(const Aws::Utils::DateTime& value) { SetCreatedTime(value); return *this;}
177 inline RepositoryDescription& WithCreatedTime(Aws::Utils::DateTime&& value) { SetCreatedTime(std::move(value)); return *this;}
179 private:
180
181 Aws::String m_name;
182 bool m_nameHasBeenSet = false;
183
184 Aws::String m_administratorAccount;
185 bool m_administratorAccountHasBeenSet = false;
186
187 Aws::String m_domainName;
188 bool m_domainNameHasBeenSet = false;
189
190 Aws::String m_domainOwner;
191 bool m_domainOwnerHasBeenSet = false;
192
193 Aws::String m_arn;
194 bool m_arnHasBeenSet = false;
195
196 Aws::String m_description;
197 bool m_descriptionHasBeenSet = false;
198
200 bool m_upstreamsHasBeenSet = false;
201
203 bool m_externalConnectionsHasBeenSet = false;
204
205 Aws::Utils::DateTime m_createdTime;
206 bool m_createdTimeHasBeenSet = false;
207 };
208
209} // namespace Model
210} // namespace CodeArtifact
211} // namespace Aws
RepositoryDescription & WithDescription(const char *value)
RepositoryDescription & WithDomainOwner(const Aws::String &value)
RepositoryDescription & WithDescription(const Aws::String &value)
RepositoryDescription & AddExternalConnections(const RepositoryExternalConnectionInfo &value)
void SetExternalConnections(Aws::Vector< RepositoryExternalConnectionInfo > &&value)
AWS_CODEARTIFACT_API RepositoryDescription & operator=(Aws::Utils::Json::JsonView jsonValue)
RepositoryDescription & WithDomainOwner(Aws::String &&value)
RepositoryDescription & WithDomainName(const char *value)
void SetCreatedTime(const Aws::Utils::DateTime &value)
RepositoryDescription & WithUpstreams(Aws::Vector< UpstreamRepositoryInfo > &&value)
RepositoryDescription & WithCreatedTime(Aws::Utils::DateTime &&value)
RepositoryDescription & WithArn(Aws::String &&value)
RepositoryDescription & AddExternalConnections(RepositoryExternalConnectionInfo &&value)
RepositoryDescription & WithName(const Aws::String &value)
void SetUpstreams(Aws::Vector< UpstreamRepositoryInfo > &&value)
RepositoryDescription & AddUpstreams(const UpstreamRepositoryInfo &value)
RepositoryDescription & WithAdministratorAccount(Aws::String &&value)
RepositoryDescription & WithExternalConnections(Aws::Vector< RepositoryExternalConnectionInfo > &&value)
RepositoryDescription & WithName(const char *value)
RepositoryDescription & WithAdministratorAccount(const Aws::String &value)
RepositoryDescription & WithCreatedTime(const Aws::Utils::DateTime &value)
RepositoryDescription & WithAdministratorAccount(const char *value)
RepositoryDescription & WithArn(const Aws::String &value)
void SetCreatedTime(Aws::Utils::DateTime &&value)
const Aws::Vector< UpstreamRepositoryInfo > & GetUpstreams() const
RepositoryDescription & WithName(Aws::String &&value)
RepositoryDescription & AddUpstreams(UpstreamRepositoryInfo &&value)
RepositoryDescription & WithExternalConnections(const Aws::Vector< RepositoryExternalConnectionInfo > &value)
const Aws::Vector< RepositoryExternalConnectionInfo > & GetExternalConnections() const
RepositoryDescription & WithDomainOwner(const char *value)
RepositoryDescription & WithArn(const char *value)
AWS_CODEARTIFACT_API RepositoryDescription(Aws::Utils::Json::JsonView jsonValue)
void SetUpstreams(const Aws::Vector< UpstreamRepositoryInfo > &value)
RepositoryDescription & WithDomainName(const Aws::String &value)
void SetExternalConnections(const Aws::Vector< RepositoryExternalConnectionInfo > &value)
const Aws::Utils::DateTime & GetCreatedTime() const
AWS_CODEARTIFACT_API Aws::Utils::Json::JsonValue Jsonize() const
RepositoryDescription & WithDomainName(Aws::String &&value)
RepositoryDescription & WithUpstreams(const Aws::Vector< UpstreamRepositoryInfo > &value)
RepositoryDescription & WithDescription(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue