AWS SDK for C++

AWS SDK for C++ Version 1.11.743

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/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
33 public:
34 AWS_CLOUDFRONT_API ConnectionGroup() = default;
35 AWS_CLOUDFRONT_API ConnectionGroup(const Aws::Utils::Xml::XmlNode& xmlNode);
36 AWS_CLOUDFRONT_API ConnectionGroup& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
37
38 AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
39
41
44 inline const Aws::String& GetId() const { return m_id; }
45 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
46 template <typename IdT = Aws::String>
47 void SetId(IdT&& value) {
48 m_idHasBeenSet = true;
49 m_id = std::forward<IdT>(value);
50 }
51 template <typename IdT = Aws::String>
52 ConnectionGroup& WithId(IdT&& value) {
53 SetId(std::forward<IdT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetName() const { return m_name; }
63 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
64 template <typename NameT = Aws::String>
65 void SetName(NameT&& value) {
66 m_nameHasBeenSet = true;
67 m_name = std::forward<NameT>(value);
68 }
69 template <typename NameT = Aws::String>
70 ConnectionGroup& WithName(NameT&& value) {
71 SetName(std::forward<NameT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetArn() const { return m_arn; }
81 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
82 template <typename ArnT = Aws::String>
83 void SetArn(ArnT&& value) {
84 m_arnHasBeenSet = true;
85 m_arn = std::forward<ArnT>(value);
86 }
87 template <typename ArnT = Aws::String>
88 ConnectionGroup& WithArn(ArnT&& value) {
89 SetArn(std::forward<ArnT>(value));
90 return *this;
91 }
93
95
98 inline const Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
99 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
100 template <typename CreatedTimeT = Aws::Utils::DateTime>
101 void SetCreatedTime(CreatedTimeT&& value) {
102 m_createdTimeHasBeenSet = true;
103 m_createdTime = std::forward<CreatedTimeT>(value);
104 }
105 template <typename CreatedTimeT = Aws::Utils::DateTime>
106 ConnectionGroup& WithCreatedTime(CreatedTimeT&& value) {
107 SetCreatedTime(std::forward<CreatedTimeT>(value));
108 return *this;
109 }
111
113
116 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
117 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
118 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
119 void SetLastModifiedTime(LastModifiedTimeT&& value) {
120 m_lastModifiedTimeHasBeenSet = true;
121 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
122 }
123 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
124 ConnectionGroup& WithLastModifiedTime(LastModifiedTimeT&& value) {
125 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
126 return *this;
127 }
129
131
132 inline const Tags& GetTags() const { return m_tags; }
133 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
134 template <typename TagsT = Tags>
135 void SetTags(TagsT&& value) {
136 m_tagsHasBeenSet = true;
137 m_tags = std::forward<TagsT>(value);
138 }
139 template <typename TagsT = Tags>
140 ConnectionGroup& WithTags(TagsT&& value) {
141 SetTags(std::forward<TagsT>(value));
142 return *this;
143 }
145
147
150 inline bool GetIpv6Enabled() const { return m_ipv6Enabled; }
151 inline bool Ipv6EnabledHasBeenSet() const { return m_ipv6EnabledHasBeenSet; }
152 inline void SetIpv6Enabled(bool value) {
153 m_ipv6EnabledHasBeenSet = true;
154 m_ipv6Enabled = value;
155 }
156 inline ConnectionGroup& WithIpv6Enabled(bool value) {
157 SetIpv6Enabled(value);
158 return *this;
159 }
161
163
167 inline const Aws::String& GetRoutingEndpoint() const { return m_routingEndpoint; }
168 inline bool RoutingEndpointHasBeenSet() const { return m_routingEndpointHasBeenSet; }
169 template <typename RoutingEndpointT = Aws::String>
170 void SetRoutingEndpoint(RoutingEndpointT&& value) {
171 m_routingEndpointHasBeenSet = true;
172 m_routingEndpoint = std::forward<RoutingEndpointT>(value);
173 }
174 template <typename RoutingEndpointT = Aws::String>
175 ConnectionGroup& WithRoutingEndpoint(RoutingEndpointT&& value) {
176 SetRoutingEndpoint(std::forward<RoutingEndpointT>(value));
177 return *this;
178 }
180
182
185 inline const Aws::String& GetAnycastIpListId() const { return m_anycastIpListId; }
186 inline bool AnycastIpListIdHasBeenSet() const { return m_anycastIpListIdHasBeenSet; }
187 template <typename AnycastIpListIdT = Aws::String>
188 void SetAnycastIpListId(AnycastIpListIdT&& value) {
189 m_anycastIpListIdHasBeenSet = true;
190 m_anycastIpListId = std::forward<AnycastIpListIdT>(value);
191 }
192 template <typename AnycastIpListIdT = Aws::String>
193 ConnectionGroup& WithAnycastIpListId(AnycastIpListIdT&& value) {
194 SetAnycastIpListId(std::forward<AnycastIpListIdT>(value));
195 return *this;
196 }
198
200
203 inline const Aws::String& GetStatus() const { return m_status; }
204 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
205 template <typename StatusT = Aws::String>
206 void SetStatus(StatusT&& value) {
207 m_statusHasBeenSet = true;
208 m_status = std::forward<StatusT>(value);
209 }
210 template <typename StatusT = Aws::String>
211 ConnectionGroup& WithStatus(StatusT&& value) {
212 SetStatus(std::forward<StatusT>(value));
213 return *this;
214 }
216
218
221 inline bool GetEnabled() const { return m_enabled; }
222 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
223 inline void SetEnabled(bool value) {
224 m_enabledHasBeenSet = true;
225 m_enabled = value;
226 }
227 inline ConnectionGroup& WithEnabled(bool value) {
228 SetEnabled(value);
229 return *this;
230 }
232
234
238 inline bool GetIsDefault() const { return m_isDefault; }
239 inline bool IsDefaultHasBeenSet() const { return m_isDefaultHasBeenSet; }
240 inline void SetIsDefault(bool value) {
241 m_isDefaultHasBeenSet = true;
242 m_isDefault = value;
243 }
244 inline ConnectionGroup& WithIsDefault(bool value) {
245 SetIsDefault(value);
246 return *this;
247 }
249 private:
250 Aws::String m_id;
251
252 Aws::String m_name;
253
254 Aws::String m_arn;
255
256 Aws::Utils::DateTime m_createdTime{};
257
258 Aws::Utils::DateTime m_lastModifiedTime{};
259
260 Tags m_tags;
261
262 bool m_ipv6Enabled{false};
263
264 Aws::String m_routingEndpoint;
265
266 Aws::String m_anycastIpListId;
267
268 Aws::String m_status;
269
270 bool m_enabled{false};
271
272 bool m_isDefault{false};
273 bool m_idHasBeenSet = false;
274 bool m_nameHasBeenSet = false;
275 bool m_arnHasBeenSet = false;
276 bool m_createdTimeHasBeenSet = false;
277 bool m_lastModifiedTimeHasBeenSet = false;
278 bool m_tagsHasBeenSet = false;
279 bool m_ipv6EnabledHasBeenSet = false;
280 bool m_routingEndpointHasBeenSet = false;
281 bool m_anycastIpListIdHasBeenSet = false;
282 bool m_statusHasBeenSet = false;
283 bool m_enabledHasBeenSet = false;
284 bool m_isDefaultHasBeenSet = false;
285};
286
287} // namespace Model
288} // namespace CloudFront
289} // namespace Aws
ConnectionGroup & WithName(NameT &&value)
void SetCreatedTime(CreatedTimeT &&value)
const Aws::Utils::DateTime & GetCreatedTime() const
const Aws::String & GetStatus() const
const Aws::String & GetArn() const
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
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