AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
AnycastIpList.h
1
6#pragma once
7#include <aws/cloudfront/CloudFront_EXPORTS.h>
8#include <aws/cloudfront/model/IpAddressType.h>
9#include <aws/cloudfront/model/IpamConfig.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Xml {
19class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace CloudFront {
23namespace Model {
24
34 public:
35 AWS_CLOUDFRONT_API AnycastIpList() = default;
36 AWS_CLOUDFRONT_API AnycastIpList(const Aws::Utils::Xml::XmlNode& xmlNode);
37 AWS_CLOUDFRONT_API AnycastIpList& 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 AnycastIpList& 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 AnycastIpList& WithName(NameT&& value) {
72 SetName(std::forward<NameT>(value));
73 return *this;
74 }
76
78
82 inline const Aws::String& GetStatus() const { return m_status; }
83 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
84 template <typename StatusT = Aws::String>
85 void SetStatus(StatusT&& value) {
86 m_statusHasBeenSet = true;
87 m_status = std::forward<StatusT>(value);
88 }
89 template <typename StatusT = Aws::String>
90 AnycastIpList& WithStatus(StatusT&& value) {
91 SetStatus(std::forward<StatusT>(value));
92 return *this;
93 }
95
97
100 inline const Aws::String& GetArn() const { return m_arn; }
101 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
102 template <typename ArnT = Aws::String>
103 void SetArn(ArnT&& value) {
104 m_arnHasBeenSet = true;
105 m_arn = std::forward<ArnT>(value);
106 }
107 template <typename ArnT = Aws::String>
108 AnycastIpList& WithArn(ArnT&& value) {
109 SetArn(std::forward<ArnT>(value));
110 return *this;
111 }
113
115
118 inline IpAddressType GetIpAddressType() const { return m_ipAddressType; }
119 inline bool IpAddressTypeHasBeenSet() const { return m_ipAddressTypeHasBeenSet; }
120 inline void SetIpAddressType(IpAddressType value) {
121 m_ipAddressTypeHasBeenSet = true;
122 m_ipAddressType = value;
123 }
125 SetIpAddressType(value);
126 return *this;
127 }
129
131
135 inline const IpamConfig& GetIpamConfig() const { return m_ipamConfig; }
136 inline bool IpamConfigHasBeenSet() const { return m_ipamConfigHasBeenSet; }
137 template <typename IpamConfigT = IpamConfig>
138 void SetIpamConfig(IpamConfigT&& value) {
139 m_ipamConfigHasBeenSet = true;
140 m_ipamConfig = std::forward<IpamConfigT>(value);
141 }
142 template <typename IpamConfigT = IpamConfig>
143 AnycastIpList& WithIpamConfig(IpamConfigT&& value) {
144 SetIpamConfig(std::forward<IpamConfigT>(value));
145 return *this;
146 }
148
150
153 inline const Aws::Vector<Aws::String>& GetAnycastIps() const { return m_anycastIps; }
154 inline bool AnycastIpsHasBeenSet() const { return m_anycastIpsHasBeenSet; }
155 template <typename AnycastIpsT = Aws::Vector<Aws::String>>
156 void SetAnycastIps(AnycastIpsT&& value) {
157 m_anycastIpsHasBeenSet = true;
158 m_anycastIps = std::forward<AnycastIpsT>(value);
159 }
160 template <typename AnycastIpsT = Aws::Vector<Aws::String>>
161 AnycastIpList& WithAnycastIps(AnycastIpsT&& value) {
162 SetAnycastIps(std::forward<AnycastIpsT>(value));
163 return *this;
164 }
165 template <typename AnycastIpsT = Aws::String>
166 AnycastIpList& AddAnycastIps(AnycastIpsT&& value) {
167 m_anycastIpsHasBeenSet = true;
168 m_anycastIps.emplace_back(std::forward<AnycastIpsT>(value));
169 return *this;
170 }
172
174
177 inline int GetIpCount() const { return m_ipCount; }
178 inline bool IpCountHasBeenSet() const { return m_ipCountHasBeenSet; }
179 inline void SetIpCount(int value) {
180 m_ipCountHasBeenSet = true;
181 m_ipCount = value;
182 }
183 inline AnycastIpList& WithIpCount(int value) {
184 SetIpCount(value);
185 return *this;
186 }
188
190
193 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
194 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
195 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
196 void SetLastModifiedTime(LastModifiedTimeT&& value) {
197 m_lastModifiedTimeHasBeenSet = true;
198 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
199 }
200 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
201 AnycastIpList& WithLastModifiedTime(LastModifiedTimeT&& value) {
202 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
203 return *this;
204 }
206 private:
207 Aws::String m_id;
208
209 Aws::String m_name;
210
211 Aws::String m_status;
212
213 Aws::String m_arn;
214
215 IpAddressType m_ipAddressType{IpAddressType::NOT_SET};
216
217 IpamConfig m_ipamConfig;
218
219 Aws::Vector<Aws::String> m_anycastIps;
220
221 int m_ipCount{0};
222
223 Aws::Utils::DateTime m_lastModifiedTime{};
224 bool m_idHasBeenSet = false;
225 bool m_nameHasBeenSet = false;
226 bool m_statusHasBeenSet = false;
227 bool m_arnHasBeenSet = false;
228 bool m_ipAddressTypeHasBeenSet = false;
229 bool m_ipamConfigHasBeenSet = false;
230 bool m_anycastIpsHasBeenSet = false;
231 bool m_ipCountHasBeenSet = false;
232 bool m_lastModifiedTimeHasBeenSet = false;
233};
234
235} // namespace Model
236} // namespace CloudFront
237} // namespace Aws
AnycastIpList & AddAnycastIps(AnycastIpsT &&value)
AnycastIpList & WithName(NameT &&value)
const Aws::Utils::DateTime & GetLastModifiedTime() const
const Aws::String & GetArn() const
const IpamConfig & GetIpamConfig() const
AnycastIpList & WithIpamConfig(IpamConfigT &&value)
void SetIpAddressType(IpAddressType value)
AWS_CLOUDFRONT_API AnycastIpList()=default
AnycastIpList & WithAnycastIps(AnycastIpsT &&value)
AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
AnycastIpList & WithArn(ArnT &&value)
void SetLastModifiedTime(LastModifiedTimeT &&value)
AWS_CLOUDFRONT_API AnycastIpList(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetName() const
const Aws::Vector< Aws::String > & GetAnycastIps() const
void SetIpamConfig(IpamConfigT &&value)
AnycastIpList & WithLastModifiedTime(LastModifiedTimeT &&value)
const Aws::String & GetStatus() const
const Aws::String & GetId() const
AnycastIpList & WithIpAddressType(IpAddressType value)
void SetAnycastIps(AnycastIpsT &&value)
AWS_CLOUDFRONT_API AnycastIpList & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AnycastIpList & WithId(IdT &&value)
AnycastIpList & WithStatus(StatusT &&value)
AnycastIpList & WithIpCount(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector