AWS SDK for C++

AWS SDK for C++ Version 1.11.783

Loading...
Searching...
No Matches
GlobalResolversItem.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/route53globalresolver/Route53GlobalResolver_EXPORTS.h>
11#include <aws/route53globalresolver/model/CRResourceStatus.h>
12#include <aws/route53globalresolver/model/GlobalResolverIpAddressType.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Route53GlobalResolver {
24namespace Model {
25
32 public:
33 AWS_ROUTE53GLOBALRESOLVER_API GlobalResolversItem() = default;
34 AWS_ROUTE53GLOBALRESOLVER_API GlobalResolversItem(Aws::Utils::Json::JsonView jsonValue);
35 AWS_ROUTE53GLOBALRESOLVER_API GlobalResolversItem& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_ROUTE53GLOBALRESOLVER_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetId() const { return m_id; }
43 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
44 template <typename IdT = Aws::String>
45 void SetId(IdT&& value) {
46 m_idHasBeenSet = true;
47 m_id = std::forward<IdT>(value);
48 }
49 template <typename IdT = Aws::String>
51 SetId(std::forward<IdT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetArn() const { return m_arn; }
61 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
62 template <typename ArnT = Aws::String>
63 void SetArn(ArnT&& value) {
64 m_arnHasBeenSet = true;
65 m_arn = std::forward<ArnT>(value);
66 }
67 template <typename ArnT = Aws::String>
69 SetArn(std::forward<ArnT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetClientToken() const { return m_clientToken; }
79 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
80 template <typename ClientTokenT = Aws::String>
81 void SetClientToken(ClientTokenT&& value) {
82 m_clientTokenHasBeenSet = true;
83 m_clientToken = std::forward<ClientTokenT>(value);
84 }
85 template <typename ClientTokenT = Aws::String>
86 GlobalResolversItem& WithClientToken(ClientTokenT&& value) {
87 SetClientToken(std::forward<ClientTokenT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::String& GetDnsName() const { return m_dnsName; }
97 inline bool DnsNameHasBeenSet() const { return m_dnsNameHasBeenSet; }
98 template <typename DnsNameT = Aws::String>
99 void SetDnsName(DnsNameT&& value) {
100 m_dnsNameHasBeenSet = true;
101 m_dnsName = std::forward<DnsNameT>(value);
102 }
103 template <typename DnsNameT = Aws::String>
104 GlobalResolversItem& WithDnsName(DnsNameT&& value) {
105 SetDnsName(std::forward<DnsNameT>(value));
106 return *this;
107 }
109
111
115 inline const Aws::String& GetObservabilityRegion() const { return m_observabilityRegion; }
116 inline bool ObservabilityRegionHasBeenSet() const { return m_observabilityRegionHasBeenSet; }
117 template <typename ObservabilityRegionT = Aws::String>
118 void SetObservabilityRegion(ObservabilityRegionT&& value) {
119 m_observabilityRegionHasBeenSet = true;
120 m_observabilityRegion = std::forward<ObservabilityRegionT>(value);
121 }
122 template <typename ObservabilityRegionT = Aws::String>
123 GlobalResolversItem& WithObservabilityRegion(ObservabilityRegionT&& value) {
124 SetObservabilityRegion(std::forward<ObservabilityRegionT>(value));
125 return *this;
126 }
128
130
133 inline const Aws::String& GetName() const { return m_name; }
134 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
135 template <typename NameT = Aws::String>
136 void SetName(NameT&& value) {
137 m_nameHasBeenSet = true;
138 m_name = std::forward<NameT>(value);
139 }
140 template <typename NameT = Aws::String>
142 SetName(std::forward<NameT>(value));
143 return *this;
144 }
146
148
151 inline const Aws::String& GetDescription() const { return m_description; }
152 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
153 template <typename DescriptionT = Aws::String>
154 void SetDescription(DescriptionT&& value) {
155 m_descriptionHasBeenSet = true;
156 m_description = std::forward<DescriptionT>(value);
157 }
158 template <typename DescriptionT = Aws::String>
159 GlobalResolversItem& WithDescription(DescriptionT&& value) {
160 SetDescription(std::forward<DescriptionT>(value));
161 return *this;
162 }
164
166
169 inline const Aws::Vector<Aws::String>& GetRegions() const { return m_regions; }
170 inline bool RegionsHasBeenSet() const { return m_regionsHasBeenSet; }
171 template <typename RegionsT = Aws::Vector<Aws::String>>
172 void SetRegions(RegionsT&& value) {
173 m_regionsHasBeenSet = true;
174 m_regions = std::forward<RegionsT>(value);
175 }
176 template <typename RegionsT = Aws::Vector<Aws::String>>
177 GlobalResolversItem& WithRegions(RegionsT&& value) {
178 SetRegions(std::forward<RegionsT>(value));
179 return *this;
180 }
181 template <typename RegionsT = Aws::String>
182 GlobalResolversItem& AddRegions(RegionsT&& value) {
183 m_regionsHasBeenSet = true;
184 m_regions.emplace_back(std::forward<RegionsT>(value));
185 return *this;
186 }
188
190
193 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
194 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
195 template <typename CreatedAtT = Aws::Utils::DateTime>
196 void SetCreatedAt(CreatedAtT&& value) {
197 m_createdAtHasBeenSet = true;
198 m_createdAt = std::forward<CreatedAtT>(value);
199 }
200 template <typename CreatedAtT = Aws::Utils::DateTime>
201 GlobalResolversItem& WithCreatedAt(CreatedAtT&& value) {
202 SetCreatedAt(std::forward<CreatedAtT>(value));
203 return *this;
204 }
206
208
211 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
212 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
213 template <typename UpdatedAtT = Aws::Utils::DateTime>
214 void SetUpdatedAt(UpdatedAtT&& value) {
215 m_updatedAtHasBeenSet = true;
216 m_updatedAt = std::forward<UpdatedAtT>(value);
217 }
218 template <typename UpdatedAtT = Aws::Utils::DateTime>
219 GlobalResolversItem& WithUpdatedAt(UpdatedAtT&& value) {
220 SetUpdatedAt(std::forward<UpdatedAtT>(value));
221 return *this;
222 }
224
226
229 inline CRResourceStatus GetStatus() const { return m_status; }
230 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
231 inline void SetStatus(CRResourceStatus value) {
232 m_statusHasBeenSet = true;
233 m_status = value;
234 }
236 SetStatus(value);
237 return *this;
238 }
240
242
245 inline const Aws::Vector<Aws::String>& GetIpv4Addresses() const { return m_ipv4Addresses; }
246 inline bool Ipv4AddressesHasBeenSet() const { return m_ipv4AddressesHasBeenSet; }
247 template <typename Ipv4AddressesT = Aws::Vector<Aws::String>>
248 void SetIpv4Addresses(Ipv4AddressesT&& value) {
249 m_ipv4AddressesHasBeenSet = true;
250 m_ipv4Addresses = std::forward<Ipv4AddressesT>(value);
251 }
252 template <typename Ipv4AddressesT = Aws::Vector<Aws::String>>
253 GlobalResolversItem& WithIpv4Addresses(Ipv4AddressesT&& value) {
254 SetIpv4Addresses(std::forward<Ipv4AddressesT>(value));
255 return *this;
256 }
257 template <typename Ipv4AddressesT = Aws::String>
258 GlobalResolversItem& AddIpv4Addresses(Ipv4AddressesT&& value) {
259 m_ipv4AddressesHasBeenSet = true;
260 m_ipv4Addresses.emplace_back(std::forward<Ipv4AddressesT>(value));
261 return *this;
262 }
264
266
270 inline const Aws::Vector<Aws::String>& GetIpv6Addresses() const { return m_ipv6Addresses; }
271 inline bool Ipv6AddressesHasBeenSet() const { return m_ipv6AddressesHasBeenSet; }
272 template <typename Ipv6AddressesT = Aws::Vector<Aws::String>>
273 void SetIpv6Addresses(Ipv6AddressesT&& value) {
274 m_ipv6AddressesHasBeenSet = true;
275 m_ipv6Addresses = std::forward<Ipv6AddressesT>(value);
276 }
277 template <typename Ipv6AddressesT = Aws::Vector<Aws::String>>
278 GlobalResolversItem& WithIpv6Addresses(Ipv6AddressesT&& value) {
279 SetIpv6Addresses(std::forward<Ipv6AddressesT>(value));
280 return *this;
281 }
282 template <typename Ipv6AddressesT = Aws::String>
283 GlobalResolversItem& AddIpv6Addresses(Ipv6AddressesT&& value) {
284 m_ipv6AddressesHasBeenSet = true;
285 m_ipv6Addresses.emplace_back(std::forward<Ipv6AddressesT>(value));
286 return *this;
287 }
289
291
294 inline GlobalResolverIpAddressType GetIpAddressType() const { return m_ipAddressType; }
295 inline bool IpAddressTypeHasBeenSet() const { return m_ipAddressTypeHasBeenSet; }
297 m_ipAddressTypeHasBeenSet = true;
298 m_ipAddressType = value;
299 }
301 SetIpAddressType(value);
302 return *this;
303 }
305 private:
306 Aws::String m_id;
307
308 Aws::String m_arn;
309
310 Aws::String m_clientToken;
311
312 Aws::String m_dnsName;
313
314 Aws::String m_observabilityRegion;
315
316 Aws::String m_name;
317
318 Aws::String m_description;
319
320 Aws::Vector<Aws::String> m_regions;
321
322 Aws::Utils::DateTime m_createdAt{};
323
324 Aws::Utils::DateTime m_updatedAt{};
325
327
328 Aws::Vector<Aws::String> m_ipv4Addresses;
329
330 Aws::Vector<Aws::String> m_ipv6Addresses;
331
333 bool m_idHasBeenSet = false;
334 bool m_arnHasBeenSet = false;
335 bool m_clientTokenHasBeenSet = false;
336 bool m_dnsNameHasBeenSet = false;
337 bool m_observabilityRegionHasBeenSet = false;
338 bool m_nameHasBeenSet = false;
339 bool m_descriptionHasBeenSet = false;
340 bool m_regionsHasBeenSet = false;
341 bool m_createdAtHasBeenSet = false;
342 bool m_updatedAtHasBeenSet = false;
343 bool m_statusHasBeenSet = false;
344 bool m_ipv4AddressesHasBeenSet = false;
345 bool m_ipv6AddressesHasBeenSet = false;
346 bool m_ipAddressTypeHasBeenSet = false;
347};
348
349} // namespace Model
350} // namespace Route53GlobalResolver
351} // namespace Aws
const Aws::Vector< Aws::String > & GetRegions() const
GlobalResolversItem & AddRegions(RegionsT &&value)
AWS_ROUTE53GLOBALRESOLVER_API GlobalResolversItem(Aws::Utils::Json::JsonView jsonValue)
GlobalResolversItem & WithDnsName(DnsNameT &&value)
GlobalResolversItem & WithIpv6Addresses(Ipv6AddressesT &&value)
AWS_ROUTE53GLOBALRESOLVER_API Aws::Utils::Json::JsonValue Jsonize() const
GlobalResolversItem & WithIpAddressType(GlobalResolverIpAddressType value)
const Aws::Vector< Aws::String > & GetIpv4Addresses() const
GlobalResolversItem & AddIpv6Addresses(Ipv6AddressesT &&value)
GlobalResolversItem & WithCreatedAt(CreatedAtT &&value)
GlobalResolversItem & WithUpdatedAt(UpdatedAtT &&value)
const Aws::Vector< Aws::String > & GetIpv6Addresses() const
GlobalResolversItem & WithRegions(RegionsT &&value)
GlobalResolversItem & WithDescription(DescriptionT &&value)
void SetIpAddressType(GlobalResolverIpAddressType value)
GlobalResolversItem & AddIpv4Addresses(Ipv4AddressesT &&value)
GlobalResolversItem & WithClientToken(ClientTokenT &&value)
GlobalResolversItem & WithIpv4Addresses(Ipv4AddressesT &&value)
GlobalResolversItem & WithObservabilityRegion(ObservabilityRegionT &&value)
GlobalResolversItem & WithStatus(CRResourceStatus value)
AWS_ROUTE53GLOBALRESOLVER_API GlobalResolversItem & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_ROUTE53GLOBALRESOLVER_API GlobalResolversItem()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue