AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
DistributionTenant.h
1
6#pragma once
7#include <aws/cloudfront/CloudFront_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/cloudfront/model/Tags.h>
11#include <aws/cloudfront/model/Customizations.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/cloudfront/model/DomainResult.h>
14#include <aws/cloudfront/model/Parameter.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Xml
22{
23 class XmlNode;
24} // namespace Xml
25} // namespace Utils
26namespace CloudFront
27{
28namespace Model
29{
30
37 {
38 public:
39 AWS_CLOUDFRONT_API DistributionTenant() = default;
40 AWS_CLOUDFRONT_API DistributionTenant(const Aws::Utils::Xml::XmlNode& xmlNode);
41 AWS_CLOUDFRONT_API DistributionTenant& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
42
43 AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
44
45
47
50 inline const Aws::String& GetId() const { return m_id; }
51 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
52 template<typename IdT = Aws::String>
53 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
54 template<typename IdT = Aws::String>
55 DistributionTenant& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
57
59
62 inline const Aws::String& GetDistributionId() const { return m_distributionId; }
63 inline bool DistributionIdHasBeenSet() const { return m_distributionIdHasBeenSet; }
64 template<typename DistributionIdT = Aws::String>
65 void SetDistributionId(DistributionIdT&& value) { m_distributionIdHasBeenSet = true; m_distributionId = std::forward<DistributionIdT>(value); }
66 template<typename DistributionIdT = Aws::String>
67 DistributionTenant& WithDistributionId(DistributionIdT&& value) { SetDistributionId(std::forward<DistributionIdT>(value)); return *this;}
69
71
74 inline const Aws::String& GetName() const { return m_name; }
75 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
76 template<typename NameT = Aws::String>
77 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
78 template<typename NameT = Aws::String>
79 DistributionTenant& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
81
83
86 inline const Aws::String& GetArn() const { return m_arn; }
87 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
88 template<typename ArnT = Aws::String>
89 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
90 template<typename ArnT = Aws::String>
91 DistributionTenant& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
93
95
98 inline const Aws::Vector<DomainResult>& GetDomains() const { return m_domains; }
99 inline bool DomainsHasBeenSet() const { return m_domainsHasBeenSet; }
100 template<typename DomainsT = Aws::Vector<DomainResult>>
101 void SetDomains(DomainsT&& value) { m_domainsHasBeenSet = true; m_domains = std::forward<DomainsT>(value); }
102 template<typename DomainsT = Aws::Vector<DomainResult>>
103 DistributionTenant& WithDomains(DomainsT&& value) { SetDomains(std::forward<DomainsT>(value)); return *this;}
104 template<typename DomainsT = DomainResult>
105 DistributionTenant& AddDomains(DomainsT&& value) { m_domainsHasBeenSet = true; m_domains.emplace_back(std::forward<DomainsT>(value)); return *this; }
107
109
110 inline const Tags& GetTags() const { return m_tags; }
111 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
112 template<typename TagsT = Tags>
113 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
114 template<typename TagsT = Tags>
115 DistributionTenant& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
117
119
126 inline const Customizations& GetCustomizations() const { return m_customizations; }
127 inline bool CustomizationsHasBeenSet() const { return m_customizationsHasBeenSet; }
128 template<typename CustomizationsT = Customizations>
129 void SetCustomizations(CustomizationsT&& value) { m_customizationsHasBeenSet = true; m_customizations = std::forward<CustomizationsT>(value); }
130 template<typename CustomizationsT = Customizations>
131 DistributionTenant& WithCustomizations(CustomizationsT&& value) { SetCustomizations(std::forward<CustomizationsT>(value)); return *this;}
133
135
140 inline const Aws::Vector<Parameter>& GetParameters() const { return m_parameters; }
141 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
142 template<typename ParametersT = Aws::Vector<Parameter>>
143 void SetParameters(ParametersT&& value) { m_parametersHasBeenSet = true; m_parameters = std::forward<ParametersT>(value); }
144 template<typename ParametersT = Aws::Vector<Parameter>>
145 DistributionTenant& WithParameters(ParametersT&& value) { SetParameters(std::forward<ParametersT>(value)); return *this;}
146 template<typename ParametersT = Parameter>
147 DistributionTenant& AddParameters(ParametersT&& value) { m_parametersHasBeenSet = true; m_parameters.emplace_back(std::forward<ParametersT>(value)); return *this; }
149
151
155 inline const Aws::String& GetConnectionGroupId() const { return m_connectionGroupId; }
156 inline bool ConnectionGroupIdHasBeenSet() const { return m_connectionGroupIdHasBeenSet; }
157 template<typename ConnectionGroupIdT = Aws::String>
158 void SetConnectionGroupId(ConnectionGroupIdT&& value) { m_connectionGroupIdHasBeenSet = true; m_connectionGroupId = std::forward<ConnectionGroupIdT>(value); }
159 template<typename ConnectionGroupIdT = Aws::String>
160 DistributionTenant& WithConnectionGroupId(ConnectionGroupIdT&& value) { SetConnectionGroupId(std::forward<ConnectionGroupIdT>(value)); return *this;}
162
164
167 inline const Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
168 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
169 template<typename CreatedTimeT = Aws::Utils::DateTime>
170 void SetCreatedTime(CreatedTimeT&& value) { m_createdTimeHasBeenSet = true; m_createdTime = std::forward<CreatedTimeT>(value); }
171 template<typename CreatedTimeT = Aws::Utils::DateTime>
172 DistributionTenant& WithCreatedTime(CreatedTimeT&& value) { SetCreatedTime(std::forward<CreatedTimeT>(value)); return *this;}
174
176
179 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
180 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
181 template<typename LastModifiedTimeT = Aws::Utils::DateTime>
182 void SetLastModifiedTime(LastModifiedTimeT&& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = std::forward<LastModifiedTimeT>(value); }
183 template<typename LastModifiedTimeT = Aws::Utils::DateTime>
184 DistributionTenant& WithLastModifiedTime(LastModifiedTimeT&& value) { SetLastModifiedTime(std::forward<LastModifiedTimeT>(value)); return *this;}
186
188
192 inline bool GetEnabled() const { return m_enabled; }
193 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
194 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
195 inline DistributionTenant& WithEnabled(bool value) { SetEnabled(value); return *this;}
197
199
202 inline const Aws::String& GetStatus() const { return m_status; }
203 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
204 template<typename StatusT = Aws::String>
205 void SetStatus(StatusT&& value) { m_statusHasBeenSet = true; m_status = std::forward<StatusT>(value); }
206 template<typename StatusT = Aws::String>
207 DistributionTenant& WithStatus(StatusT&& value) { SetStatus(std::forward<StatusT>(value)); return *this;}
209 private:
210
211 Aws::String m_id;
212 bool m_idHasBeenSet = false;
213
214 Aws::String m_distributionId;
215 bool m_distributionIdHasBeenSet = false;
216
217 Aws::String m_name;
218 bool m_nameHasBeenSet = false;
219
220 Aws::String m_arn;
221 bool m_arnHasBeenSet = false;
222
224 bool m_domainsHasBeenSet = false;
225
226 Tags m_tags;
227 bool m_tagsHasBeenSet = false;
228
229 Customizations m_customizations;
230 bool m_customizationsHasBeenSet = false;
231
232 Aws::Vector<Parameter> m_parameters;
233 bool m_parametersHasBeenSet = false;
234
235 Aws::String m_connectionGroupId;
236 bool m_connectionGroupIdHasBeenSet = false;
237
238 Aws::Utils::DateTime m_createdTime{};
239 bool m_createdTimeHasBeenSet = false;
240
241 Aws::Utils::DateTime m_lastModifiedTime{};
242 bool m_lastModifiedTimeHasBeenSet = false;
243
244 bool m_enabled{false};
245 bool m_enabledHasBeenSet = false;
246
247 Aws::String m_status;
248 bool m_statusHasBeenSet = false;
249 };
250
251} // namespace Model
252} // namespace CloudFront
253} // namespace Aws
const Aws::Utils::DateTime & GetCreatedTime() const
AWS_CLOUDFRONT_API DistributionTenant(const Aws::Utils::Xml::XmlNode &xmlNode)
DistributionTenant & WithCustomizations(CustomizationsT &&value)
DistributionTenant & AddDomains(DomainsT &&value)
DistributionTenant & WithId(IdT &&value)
DistributionTenant & WithEnabled(bool value)
const Aws::Vector< Parameter > & GetParameters() const
void SetDistributionId(DistributionIdT &&value)
AWS_CLOUDFRONT_API DistributionTenant & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
DistributionTenant & WithDistributionId(DistributionIdT &&value)
AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
DistributionTenant & WithLastModifiedTime(LastModifiedTimeT &&value)
DistributionTenant & AddParameters(ParametersT &&value)
DistributionTenant & WithArn(ArnT &&value)
DistributionTenant & WithParameters(ParametersT &&value)
AWS_CLOUDFRONT_API DistributionTenant()=default
const Aws::Vector< DomainResult > & GetDomains() const
const Aws::String & GetConnectionGroupId() const
void SetCustomizations(CustomizationsT &&value)
DistributionTenant & WithConnectionGroupId(ConnectionGroupIdT &&value)
DistributionTenant & WithCreatedTime(CreatedTimeT &&value)
void SetConnectionGroupId(ConnectionGroupIdT &&value)
const Aws::Utils::DateTime & GetLastModifiedTime() const
DistributionTenant & WithStatus(StatusT &&value)
const Customizations & GetCustomizations() const
DistributionTenant & WithDomains(DomainsT &&value)
const Aws::String & GetDistributionId() const
DistributionTenant & WithTags(TagsT &&value)
DistributionTenant & WithName(NameT &&value)
void SetLastModifiedTime(LastModifiedTimeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector