AWS SDK for C++

AWS SDK for C++ Version 1.11.939

Loading...
Searching...
No Matches
ConnectionGroupSummary.h
1
6#pragma once
7#include <aws/cloudfront/CloudFront_EXPORTS.h>
8#include <aws/cloudfront/model/ViewerFallback.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Xml {
17class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace CloudFront {
21namespace Model {
22
30 public:
31 AWS_CLOUDFRONT_API ConnectionGroupSummary() = default;
32 AWS_CLOUDFRONT_API ConnectionGroupSummary(const Aws::Utils::Xml::XmlNode& xmlNode);
33 AWS_CLOUDFRONT_API ConnectionGroupSummary& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
34
35 AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
36
38
41 inline const Aws::String& GetId() const { return m_id; }
42 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
43 template <typename IdT = Aws::String>
44 void SetId(IdT&& value) {
45 m_idHasBeenSet = true;
46 m_id = std::forward<IdT>(value);
47 }
48 template <typename IdT = Aws::String>
50 SetId(std::forward<IdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetName() const { return m_name; }
60 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
61 template <typename NameT = Aws::String>
62 void SetName(NameT&& value) {
63 m_nameHasBeenSet = true;
64 m_name = std::forward<NameT>(value);
65 }
66 template <typename NameT = Aws::String>
68 SetName(std::forward<NameT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetArn() const { return m_arn; }
78 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
79 template <typename ArnT = Aws::String>
80 void SetArn(ArnT&& value) {
81 m_arnHasBeenSet = true;
82 m_arn = std::forward<ArnT>(value);
83 }
84 template <typename ArnT = Aws::String>
86 SetArn(std::forward<ArnT>(value));
87 return *this;
88 }
90
92
96 inline const Aws::String& GetRoutingEndpoint() const { return m_routingEndpoint; }
97 inline bool RoutingEndpointHasBeenSet() const { return m_routingEndpointHasBeenSet; }
98 template <typename RoutingEndpointT = Aws::String>
99 void SetRoutingEndpoint(RoutingEndpointT&& value) {
100 m_routingEndpointHasBeenSet = true;
101 m_routingEndpoint = std::forward<RoutingEndpointT>(value);
102 }
103 template <typename RoutingEndpointT = Aws::String>
104 ConnectionGroupSummary& WithRoutingEndpoint(RoutingEndpointT&& value) {
105 SetRoutingEndpoint(std::forward<RoutingEndpointT>(value));
106 return *this;
107 }
109
111
114 inline const Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
115 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
116 template <typename CreatedTimeT = Aws::Utils::DateTime>
117 void SetCreatedTime(CreatedTimeT&& value) {
118 m_createdTimeHasBeenSet = true;
119 m_createdTime = std::forward<CreatedTimeT>(value);
120 }
121 template <typename CreatedTimeT = Aws::Utils::DateTime>
123 SetCreatedTime(std::forward<CreatedTimeT>(value));
124 return *this;
125 }
127
129
132 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
133 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
134 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
135 void SetLastModifiedTime(LastModifiedTimeT&& value) {
136 m_lastModifiedTimeHasBeenSet = true;
137 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
138 }
139 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
140 ConnectionGroupSummary& WithLastModifiedTime(LastModifiedTimeT&& value) {
141 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
142 return *this;
143 }
145
147
150 inline const Aws::String& GetETag() const { return m_eTag; }
151 inline bool ETagHasBeenSet() const { return m_eTagHasBeenSet; }
152 template <typename ETagT = Aws::String>
153 void SetETag(ETagT&& value) {
154 m_eTagHasBeenSet = true;
155 m_eTag = std::forward<ETagT>(value);
156 }
157 template <typename ETagT = Aws::String>
159 SetETag(std::forward<ETagT>(value));
160 return *this;
161 }
163
165
168 inline const Aws::String& GetAnycastIpListId() const { return m_anycastIpListId; }
169 inline bool AnycastIpListIdHasBeenSet() const { return m_anycastIpListIdHasBeenSet; }
170 template <typename AnycastIpListIdT = Aws::String>
171 void SetAnycastIpListId(AnycastIpListIdT&& value) {
172 m_anycastIpListIdHasBeenSet = true;
173 m_anycastIpListId = std::forward<AnycastIpListIdT>(value);
174 }
175 template <typename AnycastIpListIdT = Aws::String>
176 ConnectionGroupSummary& WithAnycastIpListId(AnycastIpListIdT&& value) {
177 SetAnycastIpListId(std::forward<AnycastIpListIdT>(value));
178 return *this;
179 }
181
183
186 inline bool GetEnabled() const { return m_enabled; }
187 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
188 inline void SetEnabled(bool value) {
189 m_enabledHasBeenSet = true;
190 m_enabled = value;
191 }
193 SetEnabled(value);
194 return *this;
195 }
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) {
206 m_statusHasBeenSet = true;
207 m_status = std::forward<StatusT>(value);
208 }
209 template <typename StatusT = Aws::String>
211 SetStatus(std::forward<StatusT>(value));
212 return *this;
213 }
215
217
221 inline bool GetIsDefault() const { return m_isDefault; }
222 inline bool IsDefaultHasBeenSet() const { return m_isDefaultHasBeenSet; }
223 inline void SetIsDefault(bool value) {
224 m_isDefaultHasBeenSet = true;
225 m_isDefault = value;
226 }
228 SetIsDefault(value);
229 return *this;
230 }
232
234
239 inline const ViewerFallback& GetViewerFallback() const { return m_viewerFallback; }
240 inline bool ViewerFallbackHasBeenSet() const { return m_viewerFallbackHasBeenSet; }
241 template <typename ViewerFallbackT = ViewerFallback>
242 void SetViewerFallback(ViewerFallbackT&& value) {
243 m_viewerFallbackHasBeenSet = true;
244 m_viewerFallback = std::forward<ViewerFallbackT>(value);
245 }
246 template <typename ViewerFallbackT = ViewerFallback>
247 ConnectionGroupSummary& WithViewerFallback(ViewerFallbackT&& value) {
248 SetViewerFallback(std::forward<ViewerFallbackT>(value));
249 return *this;
250 }
252 private:
253 Aws::String m_id;
254
255 Aws::String m_name;
256
257 Aws::String m_arn;
258
259 Aws::String m_routingEndpoint;
260
261 Aws::Utils::DateTime m_createdTime{};
262
263 Aws::Utils::DateTime m_lastModifiedTime{};
264
265 Aws::String m_eTag;
266
267 Aws::String m_anycastIpListId;
268
269 bool m_enabled{false};
270
271 Aws::String m_status;
272
273 bool m_isDefault{false};
274
275 ViewerFallback m_viewerFallback;
276 bool m_idHasBeenSet = false;
277 bool m_nameHasBeenSet = false;
278 bool m_arnHasBeenSet = false;
279 bool m_routingEndpointHasBeenSet = false;
280 bool m_createdTimeHasBeenSet = false;
281 bool m_lastModifiedTimeHasBeenSet = false;
282 bool m_eTagHasBeenSet = false;
283 bool m_anycastIpListIdHasBeenSet = false;
284 bool m_enabledHasBeenSet = false;
285 bool m_statusHasBeenSet = false;
286 bool m_isDefaultHasBeenSet = false;
287 bool m_viewerFallbackHasBeenSet = false;
288};
289
290} // namespace Model
291} // namespace CloudFront
292} // namespace Aws
ConnectionGroupSummary & WithLastModifiedTime(LastModifiedTimeT &&value)
const Aws::Utils::DateTime & GetCreatedTime() const
ConnectionGroupSummary & WithRoutingEndpoint(RoutingEndpointT &&value)
ConnectionGroupSummary & WithEnabled(bool value)
ConnectionGroupSummary & WithStatus(StatusT &&value)
const Aws::Utils::DateTime & GetLastModifiedTime() const
ConnectionGroupSummary & WithAnycastIpListId(AnycastIpListIdT &&value)
AWS_CLOUDFRONT_API ConnectionGroupSummary()=default
ConnectionGroupSummary & WithId(IdT &&value)
AWS_CLOUDFRONT_API ConnectionGroupSummary(const Aws::Utils::Xml::XmlNode &xmlNode)
ConnectionGroupSummary & WithArn(ArnT &&value)
ConnectionGroupSummary & WithIsDefault(bool value)
ConnectionGroupSummary & WithViewerFallback(ViewerFallbackT &&value)
ConnectionGroupSummary & WithCreatedTime(CreatedTimeT &&value)
AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
AWS_CLOUDFRONT_API ConnectionGroupSummary & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
ConnectionGroupSummary & WithName(NameT &&value)
ConnectionGroupSummary & WithETag(ETagT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String