AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ConnectionGroup.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/DateTime.h>
10#include <aws/cloudfront/model/Tags.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace CloudFront
23{
24namespace Model
25{
26
37 {
38 public:
39 AWS_CLOUDFRONT_API ConnectionGroup() = default;
40 AWS_CLOUDFRONT_API ConnectionGroup(const Aws::Utils::Xml::XmlNode& xmlNode);
41 AWS_CLOUDFRONT_API ConnectionGroup& 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 ConnectionGroup& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
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) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
66 template<typename NameT = Aws::String>
67 ConnectionGroup& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
69
71
74 inline const Aws::String& GetArn() const { return m_arn; }
75 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
76 template<typename ArnT = Aws::String>
77 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
78 template<typename ArnT = Aws::String>
79 ConnectionGroup& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
81
83
86 inline const Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
87 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
88 template<typename CreatedTimeT = Aws::Utils::DateTime>
89 void SetCreatedTime(CreatedTimeT&& value) { m_createdTimeHasBeenSet = true; m_createdTime = std::forward<CreatedTimeT>(value); }
90 template<typename CreatedTimeT = Aws::Utils::DateTime>
91 ConnectionGroup& WithCreatedTime(CreatedTimeT&& value) { SetCreatedTime(std::forward<CreatedTimeT>(value)); return *this;}
93
95
98 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
99 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
100 template<typename LastModifiedTimeT = Aws::Utils::DateTime>
101 void SetLastModifiedTime(LastModifiedTimeT&& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = std::forward<LastModifiedTimeT>(value); }
102 template<typename LastModifiedTimeT = Aws::Utils::DateTime>
103 ConnectionGroup& WithLastModifiedTime(LastModifiedTimeT&& value) { SetLastModifiedTime(std::forward<LastModifiedTimeT>(value)); return *this;}
105
107
108 inline const Tags& GetTags() const { return m_tags; }
109 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
110 template<typename TagsT = Tags>
111 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
112 template<typename TagsT = Tags>
113 ConnectionGroup& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
115
117
120 inline bool GetIpv6Enabled() const { return m_ipv6Enabled; }
121 inline bool Ipv6EnabledHasBeenSet() const { return m_ipv6EnabledHasBeenSet; }
122 inline void SetIpv6Enabled(bool value) { m_ipv6EnabledHasBeenSet = true; m_ipv6Enabled = value; }
123 inline ConnectionGroup& WithIpv6Enabled(bool value) { SetIpv6Enabled(value); return *this;}
125
127
131 inline const Aws::String& GetRoutingEndpoint() const { return m_routingEndpoint; }
132 inline bool RoutingEndpointHasBeenSet() const { return m_routingEndpointHasBeenSet; }
133 template<typename RoutingEndpointT = Aws::String>
134 void SetRoutingEndpoint(RoutingEndpointT&& value) { m_routingEndpointHasBeenSet = true; m_routingEndpoint = std::forward<RoutingEndpointT>(value); }
135 template<typename RoutingEndpointT = Aws::String>
136 ConnectionGroup& WithRoutingEndpoint(RoutingEndpointT&& value) { SetRoutingEndpoint(std::forward<RoutingEndpointT>(value)); return *this;}
138
140
143 inline const Aws::String& GetAnycastIpListId() const { return m_anycastIpListId; }
144 inline bool AnycastIpListIdHasBeenSet() const { return m_anycastIpListIdHasBeenSet; }
145 template<typename AnycastIpListIdT = Aws::String>
146 void SetAnycastIpListId(AnycastIpListIdT&& value) { m_anycastIpListIdHasBeenSet = true; m_anycastIpListId = std::forward<AnycastIpListIdT>(value); }
147 template<typename AnycastIpListIdT = Aws::String>
148 ConnectionGroup& WithAnycastIpListId(AnycastIpListIdT&& value) { SetAnycastIpListId(std::forward<AnycastIpListIdT>(value)); return *this;}
150
152
155 inline const Aws::String& GetStatus() const { return m_status; }
156 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
157 template<typename StatusT = Aws::String>
158 void SetStatus(StatusT&& value) { m_statusHasBeenSet = true; m_status = std::forward<StatusT>(value); }
159 template<typename StatusT = Aws::String>
160 ConnectionGroup& WithStatus(StatusT&& value) { SetStatus(std::forward<StatusT>(value)); return *this;}
162
164
167 inline bool GetEnabled() const { return m_enabled; }
168 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
169 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
170 inline ConnectionGroup& WithEnabled(bool value) { SetEnabled(value); return *this;}
172
174
178 inline bool GetIsDefault() const { return m_isDefault; }
179 inline bool IsDefaultHasBeenSet() const { return m_isDefaultHasBeenSet; }
180 inline void SetIsDefault(bool value) { m_isDefaultHasBeenSet = true; m_isDefault = value; }
181 inline ConnectionGroup& WithIsDefault(bool value) { SetIsDefault(value); return *this;}
183 private:
184
185 Aws::String m_id;
186 bool m_idHasBeenSet = false;
187
188 Aws::String m_name;
189 bool m_nameHasBeenSet = false;
190
191 Aws::String m_arn;
192 bool m_arnHasBeenSet = false;
193
194 Aws::Utils::DateTime m_createdTime{};
195 bool m_createdTimeHasBeenSet = false;
196
197 Aws::Utils::DateTime m_lastModifiedTime{};
198 bool m_lastModifiedTimeHasBeenSet = false;
199
200 Tags m_tags;
201 bool m_tagsHasBeenSet = false;
202
203 bool m_ipv6Enabled{false};
204 bool m_ipv6EnabledHasBeenSet = false;
205
206 Aws::String m_routingEndpoint;
207 bool m_routingEndpointHasBeenSet = false;
208
209 Aws::String m_anycastIpListId;
210 bool m_anycastIpListIdHasBeenSet = false;
211
212 Aws::String m_status;
213 bool m_statusHasBeenSet = false;
214
215 bool m_enabled{false};
216 bool m_enabledHasBeenSet = false;
217
218 bool m_isDefault{false};
219 bool m_isDefaultHasBeenSet = false;
220 };
221
222} // namespace Model
223} // namespace CloudFront
224} // 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