AWS SDK for C++

AWS SDK for C++ Version 1.11.939

Loading...
Searching...
No Matches
ConnectionGroup.h
1
6#pragma once
7#include <aws/cloudfront/CloudFront_EXPORTS.h>
8#include <aws/cloudfront/model/Tags.h>
9#include <aws/cloudfront/model/ViewerFallback.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Xml {
18class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace CloudFront {
22namespace Model {
23
34 public:
35 AWS_CLOUDFRONT_API ConnectionGroup() = default;
36 AWS_CLOUDFRONT_API ConnectionGroup(const Aws::Utils::Xml::XmlNode& xmlNode);
37 AWS_CLOUDFRONT_API ConnectionGroup& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
38
39 AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
40
42
45 inline const Aws::String& GetId() const { return m_id; }
46 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
47 template <typename IdT = Aws::String>
48 void SetId(IdT&& value) {
49 m_idHasBeenSet = true;
50 m_id = std::forward<IdT>(value);
51 }
52 template <typename IdT = Aws::String>
53 ConnectionGroup& WithId(IdT&& value) {
54 SetId(std::forward<IdT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetName() const { return m_name; }
64 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
65 template <typename NameT = Aws::String>
66 void SetName(NameT&& value) {
67 m_nameHasBeenSet = true;
68 m_name = std::forward<NameT>(value);
69 }
70 template <typename NameT = Aws::String>
71 ConnectionGroup& WithName(NameT&& value) {
72 SetName(std::forward<NameT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::String& GetArn() const { return m_arn; }
82 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
83 template <typename ArnT = Aws::String>
84 void SetArn(ArnT&& value) {
85 m_arnHasBeenSet = true;
86 m_arn = std::forward<ArnT>(value);
87 }
88 template <typename ArnT = Aws::String>
89 ConnectionGroup& WithArn(ArnT&& value) {
90 SetArn(std::forward<ArnT>(value));
91 return *this;
92 }
94
96
99 inline const Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
100 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
101 template <typename CreatedTimeT = Aws::Utils::DateTime>
102 void SetCreatedTime(CreatedTimeT&& value) {
103 m_createdTimeHasBeenSet = true;
104 m_createdTime = std::forward<CreatedTimeT>(value);
105 }
106 template <typename CreatedTimeT = Aws::Utils::DateTime>
107 ConnectionGroup& WithCreatedTime(CreatedTimeT&& value) {
108 SetCreatedTime(std::forward<CreatedTimeT>(value));
109 return *this;
110 }
112
114
117 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
118 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
119 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
120 void SetLastModifiedTime(LastModifiedTimeT&& value) {
121 m_lastModifiedTimeHasBeenSet = true;
122 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
123 }
124 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
125 ConnectionGroup& WithLastModifiedTime(LastModifiedTimeT&& value) {
126 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
127 return *this;
128 }
130
132
133 inline const Tags& GetTags() const { return m_tags; }
134 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
135 template <typename TagsT = Tags>
136 void SetTags(TagsT&& value) {
137 m_tagsHasBeenSet = true;
138 m_tags = std::forward<TagsT>(value);
139 }
140 template <typename TagsT = Tags>
141 ConnectionGroup& WithTags(TagsT&& value) {
142 SetTags(std::forward<TagsT>(value));
143 return *this;
144 }
146
148
151 inline bool GetIpv6Enabled() const { return m_ipv6Enabled; }
152 inline bool Ipv6EnabledHasBeenSet() const { return m_ipv6EnabledHasBeenSet; }
153 inline void SetIpv6Enabled(bool value) {
154 m_ipv6EnabledHasBeenSet = true;
155 m_ipv6Enabled = value;
156 }
157 inline ConnectionGroup& WithIpv6Enabled(bool value) {
158 SetIpv6Enabled(value);
159 return *this;
160 }
162
164
168 inline const Aws::String& GetRoutingEndpoint() const { return m_routingEndpoint; }
169 inline bool RoutingEndpointHasBeenSet() const { return m_routingEndpointHasBeenSet; }
170 template <typename RoutingEndpointT = Aws::String>
171 void SetRoutingEndpoint(RoutingEndpointT&& value) {
172 m_routingEndpointHasBeenSet = true;
173 m_routingEndpoint = std::forward<RoutingEndpointT>(value);
174 }
175 template <typename RoutingEndpointT = Aws::String>
176 ConnectionGroup& WithRoutingEndpoint(RoutingEndpointT&& value) {
177 SetRoutingEndpoint(std::forward<RoutingEndpointT>(value));
178 return *this;
179 }
181
183
186 inline const Aws::String& GetAnycastIpListId() const { return m_anycastIpListId; }
187 inline bool AnycastIpListIdHasBeenSet() const { return m_anycastIpListIdHasBeenSet; }
188 template <typename AnycastIpListIdT = Aws::String>
189 void SetAnycastIpListId(AnycastIpListIdT&& value) {
190 m_anycastIpListIdHasBeenSet = true;
191 m_anycastIpListId = std::forward<AnycastIpListIdT>(value);
192 }
193 template <typename AnycastIpListIdT = Aws::String>
194 ConnectionGroup& WithAnycastIpListId(AnycastIpListIdT&& value) {
195 SetAnycastIpListId(std::forward<AnycastIpListIdT>(value));
196 return *this;
197 }
199
201
204 inline const Aws::String& GetStatus() const { return m_status; }
205 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
206 template <typename StatusT = Aws::String>
207 void SetStatus(StatusT&& value) {
208 m_statusHasBeenSet = true;
209 m_status = std::forward<StatusT>(value);
210 }
211 template <typename StatusT = Aws::String>
212 ConnectionGroup& WithStatus(StatusT&& value) {
213 SetStatus(std::forward<StatusT>(value));
214 return *this;
215 }
217
219
222 inline bool GetEnabled() const { return m_enabled; }
223 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
224 inline void SetEnabled(bool value) {
225 m_enabledHasBeenSet = true;
226 m_enabled = value;
227 }
228 inline ConnectionGroup& WithEnabled(bool value) {
229 SetEnabled(value);
230 return *this;
231 }
233
235
239 inline bool GetIsDefault() const { return m_isDefault; }
240 inline bool IsDefaultHasBeenSet() const { return m_isDefaultHasBeenSet; }
241 inline void SetIsDefault(bool value) {
242 m_isDefaultHasBeenSet = true;
243 m_isDefault = value;
244 }
245 inline ConnectionGroup& WithIsDefault(bool value) {
246 SetIsDefault(value);
247 return *this;
248 }
250
252
257 inline const ViewerFallback& GetViewerFallback() const { return m_viewerFallback; }
258 inline bool ViewerFallbackHasBeenSet() const { return m_viewerFallbackHasBeenSet; }
259 template <typename ViewerFallbackT = ViewerFallback>
260 void SetViewerFallback(ViewerFallbackT&& value) {
261 m_viewerFallbackHasBeenSet = true;
262 m_viewerFallback = std::forward<ViewerFallbackT>(value);
263 }
264 template <typename ViewerFallbackT = ViewerFallback>
265 ConnectionGroup& WithViewerFallback(ViewerFallbackT&& value) {
266 SetViewerFallback(std::forward<ViewerFallbackT>(value));
267 return *this;
268 }
270 private:
271 Aws::String m_id;
272
273 Aws::String m_name;
274
275 Aws::String m_arn;
276
277 Aws::Utils::DateTime m_createdTime{};
278
279 Aws::Utils::DateTime m_lastModifiedTime{};
280
281 Tags m_tags;
282
283 bool m_ipv6Enabled{false};
284
285 Aws::String m_routingEndpoint;
286
287 Aws::String m_anycastIpListId;
288
289 Aws::String m_status;
290
291 bool m_enabled{false};
292
293 bool m_isDefault{false};
294
295 ViewerFallback m_viewerFallback;
296 bool m_idHasBeenSet = false;
297 bool m_nameHasBeenSet = false;
298 bool m_arnHasBeenSet = false;
299 bool m_createdTimeHasBeenSet = false;
300 bool m_lastModifiedTimeHasBeenSet = false;
301 bool m_tagsHasBeenSet = false;
302 bool m_ipv6EnabledHasBeenSet = false;
303 bool m_routingEndpointHasBeenSet = false;
304 bool m_anycastIpListIdHasBeenSet = false;
305 bool m_statusHasBeenSet = false;
306 bool m_enabledHasBeenSet = false;
307 bool m_isDefaultHasBeenSet = false;
308 bool m_viewerFallbackHasBeenSet = false;
309};
310
311} // namespace Model
312} // namespace CloudFront
313} // namespace Aws
ConnectionGroup & WithName(NameT &&value)
void SetCreatedTime(CreatedTimeT &&value)
const Aws::Utils::DateTime & GetCreatedTime() const
const Aws::String & GetStatus() const
const ViewerFallback & GetViewerFallback() const
const Aws::String & GetArn() const
void SetViewerFallback(ViewerFallbackT &&value)
const Aws::String & GetName() const
void SetRoutingEndpoint(RoutingEndpointT &&value)
ConnectionGroup & WithCreatedTime(CreatedTimeT &&value)
AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
void SetLastModifiedTime(LastModifiedTimeT &&value)
ConnectionGroup & WithStatus(StatusT &&value)
const Aws::String & GetAnycastIpListId() const
const Aws::String & GetRoutingEndpoint() const
ConnectionGroup & WithIsDefault(bool value)
void SetAnycastIpListId(AnycastIpListIdT &&value)
ConnectionGroup & WithId(IdT &&value)
ConnectionGroup & WithIpv6Enabled(bool value)
ConnectionGroup & WithTags(TagsT &&value)
AWS_CLOUDFRONT_API ConnectionGroup()=default
ConnectionGroup & WithViewerFallback(ViewerFallbackT &&value)
const Aws::Utils::DateTime & GetLastModifiedTime() const
ConnectionGroup & WithLastModifiedTime(LastModifiedTimeT &&value)
const Aws::String & GetId() const
AWS_CLOUDFRONT_API ConnectionGroup(const Aws::Utils::Xml::XmlNode &xmlNode)
ConnectionGroup & WithArn(ArnT &&value)
ConnectionGroup & WithEnabled(bool value)
AWS_CLOUDFRONT_API ConnectionGroup & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
ConnectionGroup & WithRoutingEndpoint(RoutingEndpointT &&value)
ConnectionGroup & WithAnycastIpListId(AnycastIpListIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String