AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ResolverEndpoint.h
1
6#pragma once
7#include <aws/route53resolver/Route53Resolver_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/route53resolver/model/ResolverEndpointDirection.h>
11#include <aws/route53resolver/model/ResolverEndpointStatus.h>
12#include <aws/route53resolver/model/ResolverEndpointType.h>
13#include <aws/route53resolver/model/Protocol.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace Route53Resolver
27{
28namespace Model
29{
30
46 {
47 public:
48 AWS_ROUTE53RESOLVER_API ResolverEndpoint();
49 AWS_ROUTE53RESOLVER_API ResolverEndpoint(Aws::Utils::Json::JsonView jsonValue);
50 AWS_ROUTE53RESOLVER_API ResolverEndpoint& operator=(Aws::Utils::Json::JsonView jsonValue);
51 AWS_ROUTE53RESOLVER_API Aws::Utils::Json::JsonValue Jsonize() const;
52
53
55
58 inline const Aws::String& GetId() const{ return m_id; }
59 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
60 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
61 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
62 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
63 inline ResolverEndpoint& WithId(const Aws::String& value) { SetId(value); return *this;}
64 inline ResolverEndpoint& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
65 inline ResolverEndpoint& WithId(const char* value) { SetId(value); return *this;}
67
69
74 inline const Aws::String& GetCreatorRequestId() const{ return m_creatorRequestId; }
75 inline bool CreatorRequestIdHasBeenSet() const { return m_creatorRequestIdHasBeenSet; }
76 inline void SetCreatorRequestId(const Aws::String& value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId = value; }
77 inline void SetCreatorRequestId(Aws::String&& value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId = std::move(value); }
78 inline void SetCreatorRequestId(const char* value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId.assign(value); }
79 inline ResolverEndpoint& WithCreatorRequestId(const Aws::String& value) { SetCreatorRequestId(value); return *this;}
80 inline ResolverEndpoint& WithCreatorRequestId(Aws::String&& value) { SetCreatorRequestId(std::move(value)); return *this;}
81 inline ResolverEndpoint& WithCreatorRequestId(const char* value) { SetCreatorRequestId(value); return *this;}
83
85
88 inline const Aws::String& GetArn() const{ return m_arn; }
89 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
90 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
91 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
92 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
93 inline ResolverEndpoint& WithArn(const Aws::String& value) { SetArn(value); return *this;}
94 inline ResolverEndpoint& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
95 inline ResolverEndpoint& WithArn(const char* value) { SetArn(value); return *this;}
97
99
104 inline const Aws::String& GetName() const{ return m_name; }
105 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
106 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
107 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
108 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
109 inline ResolverEndpoint& WithName(const Aws::String& value) { SetName(value); return *this;}
110 inline ResolverEndpoint& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
111 inline ResolverEndpoint& WithName(const char* value) { SetName(value); return *this;}
113
115
122 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const{ return m_securityGroupIds; }
123 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
124 inline void SetSecurityGroupIds(const Aws::Vector<Aws::String>& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = value; }
125 inline void SetSecurityGroupIds(Aws::Vector<Aws::String>&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = std::move(value); }
127 inline ResolverEndpoint& WithSecurityGroupIds(Aws::Vector<Aws::String>&& value) { SetSecurityGroupIds(std::move(value)); return *this;}
128 inline ResolverEndpoint& AddSecurityGroupIds(const Aws::String& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; }
129 inline ResolverEndpoint& AddSecurityGroupIds(Aws::String&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(std::move(value)); return *this; }
130 inline ResolverEndpoint& AddSecurityGroupIds(const char* value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; }
132
134
140 inline const ResolverEndpointDirection& GetDirection() const{ return m_direction; }
141 inline bool DirectionHasBeenSet() const { return m_directionHasBeenSet; }
142 inline void SetDirection(const ResolverEndpointDirection& value) { m_directionHasBeenSet = true; m_direction = value; }
143 inline void SetDirection(ResolverEndpointDirection&& value) { m_directionHasBeenSet = true; m_direction = std::move(value); }
144 inline ResolverEndpoint& WithDirection(const ResolverEndpointDirection& value) { SetDirection(value); return *this;}
145 inline ResolverEndpoint& WithDirection(ResolverEndpointDirection&& value) { SetDirection(std::move(value)); return *this;}
147
149
153 inline int GetIpAddressCount() const{ return m_ipAddressCount; }
154 inline bool IpAddressCountHasBeenSet() const { return m_ipAddressCountHasBeenSet; }
155 inline void SetIpAddressCount(int value) { m_ipAddressCountHasBeenSet = true; m_ipAddressCount = value; }
156 inline ResolverEndpoint& WithIpAddressCount(int value) { SetIpAddressCount(value); return *this;}
158
160
163 inline const Aws::String& GetHostVPCId() const{ return m_hostVPCId; }
164 inline bool HostVPCIdHasBeenSet() const { return m_hostVPCIdHasBeenSet; }
165 inline void SetHostVPCId(const Aws::String& value) { m_hostVPCIdHasBeenSet = true; m_hostVPCId = value; }
166 inline void SetHostVPCId(Aws::String&& value) { m_hostVPCIdHasBeenSet = true; m_hostVPCId = std::move(value); }
167 inline void SetHostVPCId(const char* value) { m_hostVPCIdHasBeenSet = true; m_hostVPCId.assign(value); }
168 inline ResolverEndpoint& WithHostVPCId(const Aws::String& value) { SetHostVPCId(value); return *this;}
169 inline ResolverEndpoint& WithHostVPCId(Aws::String&& value) { SetHostVPCId(std::move(value)); return *this;}
170 inline ResolverEndpoint& WithHostVPCId(const char* value) { SetHostVPCId(value); return *this;}
172
174
203 inline const ResolverEndpointStatus& GetStatus() const{ return m_status; }
204 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
205 inline void SetStatus(const ResolverEndpointStatus& value) { m_statusHasBeenSet = true; m_status = value; }
206 inline void SetStatus(ResolverEndpointStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
207 inline ResolverEndpoint& WithStatus(const ResolverEndpointStatus& value) { SetStatus(value); return *this;}
208 inline ResolverEndpoint& WithStatus(ResolverEndpointStatus&& value) { SetStatus(std::move(value)); return *this;}
210
212
215 inline const Aws::String& GetStatusMessage() const{ return m_statusMessage; }
216 inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
217 inline void SetStatusMessage(const Aws::String& value) { m_statusMessageHasBeenSet = true; m_statusMessage = value; }
218 inline void SetStatusMessage(Aws::String&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::move(value); }
219 inline void SetStatusMessage(const char* value) { m_statusMessageHasBeenSet = true; m_statusMessage.assign(value); }
220 inline ResolverEndpoint& WithStatusMessage(const Aws::String& value) { SetStatusMessage(value); return *this;}
221 inline ResolverEndpoint& WithStatusMessage(Aws::String&& value) { SetStatusMessage(std::move(value)); return *this;}
222 inline ResolverEndpoint& WithStatusMessage(const char* value) { SetStatusMessage(value); return *this;}
224
226
230 inline const Aws::String& GetCreationTime() const{ return m_creationTime; }
231 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
232 inline void SetCreationTime(const Aws::String& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
233 inline void SetCreationTime(Aws::String&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); }
234 inline void SetCreationTime(const char* value) { m_creationTimeHasBeenSet = true; m_creationTime.assign(value); }
235 inline ResolverEndpoint& WithCreationTime(const Aws::String& value) { SetCreationTime(value); return *this;}
236 inline ResolverEndpoint& WithCreationTime(Aws::String&& value) { SetCreationTime(std::move(value)); return *this;}
237 inline ResolverEndpoint& WithCreationTime(const char* value) { SetCreationTime(value); return *this;}
239
241
245 inline const Aws::String& GetModificationTime() const{ return m_modificationTime; }
246 inline bool ModificationTimeHasBeenSet() const { return m_modificationTimeHasBeenSet; }
247 inline void SetModificationTime(const Aws::String& value) { m_modificationTimeHasBeenSet = true; m_modificationTime = value; }
248 inline void SetModificationTime(Aws::String&& value) { m_modificationTimeHasBeenSet = true; m_modificationTime = std::move(value); }
249 inline void SetModificationTime(const char* value) { m_modificationTimeHasBeenSet = true; m_modificationTime.assign(value); }
250 inline ResolverEndpoint& WithModificationTime(const Aws::String& value) { SetModificationTime(value); return *this;}
251 inline ResolverEndpoint& WithModificationTime(Aws::String&& value) { SetModificationTime(std::move(value)); return *this;}
252 inline ResolverEndpoint& WithModificationTime(const char* value) { SetModificationTime(value); return *this;}
254
256
259 inline const Aws::String& GetOutpostArn() const{ return m_outpostArn; }
260 inline bool OutpostArnHasBeenSet() const { return m_outpostArnHasBeenSet; }
261 inline void SetOutpostArn(const Aws::String& value) { m_outpostArnHasBeenSet = true; m_outpostArn = value; }
262 inline void SetOutpostArn(Aws::String&& value) { m_outpostArnHasBeenSet = true; m_outpostArn = std::move(value); }
263 inline void SetOutpostArn(const char* value) { m_outpostArnHasBeenSet = true; m_outpostArn.assign(value); }
264 inline ResolverEndpoint& WithOutpostArn(const Aws::String& value) { SetOutpostArn(value); return *this;}
265 inline ResolverEndpoint& WithOutpostArn(Aws::String&& value) { SetOutpostArn(std::move(value)); return *this;}
266 inline ResolverEndpoint& WithOutpostArn(const char* value) { SetOutpostArn(value); return *this;}
268
270
273 inline const Aws::String& GetPreferredInstanceType() const{ return m_preferredInstanceType; }
274 inline bool PreferredInstanceTypeHasBeenSet() const { return m_preferredInstanceTypeHasBeenSet; }
275 inline void SetPreferredInstanceType(const Aws::String& value) { m_preferredInstanceTypeHasBeenSet = true; m_preferredInstanceType = value; }
276 inline void SetPreferredInstanceType(Aws::String&& value) { m_preferredInstanceTypeHasBeenSet = true; m_preferredInstanceType = std::move(value); }
277 inline void SetPreferredInstanceType(const char* value) { m_preferredInstanceTypeHasBeenSet = true; m_preferredInstanceType.assign(value); }
279 inline ResolverEndpoint& WithPreferredInstanceType(Aws::String&& value) { SetPreferredInstanceType(std::move(value)); return *this;}
280 inline ResolverEndpoint& WithPreferredInstanceType(const char* value) { SetPreferredInstanceType(value); return *this;}
282
284
287 inline const ResolverEndpointType& GetResolverEndpointType() const{ return m_resolverEndpointType; }
288 inline bool ResolverEndpointTypeHasBeenSet() const { return m_resolverEndpointTypeHasBeenSet; }
289 inline void SetResolverEndpointType(const ResolverEndpointType& value) { m_resolverEndpointTypeHasBeenSet = true; m_resolverEndpointType = value; }
290 inline void SetResolverEndpointType(ResolverEndpointType&& value) { m_resolverEndpointTypeHasBeenSet = true; m_resolverEndpointType = std::move(value); }
294
296
307 inline const Aws::Vector<Protocol>& GetProtocols() const{ return m_protocols; }
308 inline bool ProtocolsHasBeenSet() const { return m_protocolsHasBeenSet; }
309 inline void SetProtocols(const Aws::Vector<Protocol>& value) { m_protocolsHasBeenSet = true; m_protocols = value; }
310 inline void SetProtocols(Aws::Vector<Protocol>&& value) { m_protocolsHasBeenSet = true; m_protocols = std::move(value); }
311 inline ResolverEndpoint& WithProtocols(const Aws::Vector<Protocol>& value) { SetProtocols(value); return *this;}
312 inline ResolverEndpoint& WithProtocols(Aws::Vector<Protocol>&& value) { SetProtocols(std::move(value)); return *this;}
313 inline ResolverEndpoint& AddProtocols(const Protocol& value) { m_protocolsHasBeenSet = true; m_protocols.push_back(value); return *this; }
314 inline ResolverEndpoint& AddProtocols(Protocol&& value) { m_protocolsHasBeenSet = true; m_protocols.push_back(std::move(value)); return *this; }
316 private:
317
318 Aws::String m_id;
319 bool m_idHasBeenSet = false;
320
321 Aws::String m_creatorRequestId;
322 bool m_creatorRequestIdHasBeenSet = false;
323
324 Aws::String m_arn;
325 bool m_arnHasBeenSet = false;
326
327 Aws::String m_name;
328 bool m_nameHasBeenSet = false;
329
330 Aws::Vector<Aws::String> m_securityGroupIds;
331 bool m_securityGroupIdsHasBeenSet = false;
332
333 ResolverEndpointDirection m_direction;
334 bool m_directionHasBeenSet = false;
335
336 int m_ipAddressCount;
337 bool m_ipAddressCountHasBeenSet = false;
338
339 Aws::String m_hostVPCId;
340 bool m_hostVPCIdHasBeenSet = false;
341
342 ResolverEndpointStatus m_status;
343 bool m_statusHasBeenSet = false;
344
345 Aws::String m_statusMessage;
346 bool m_statusMessageHasBeenSet = false;
347
348 Aws::String m_creationTime;
349 bool m_creationTimeHasBeenSet = false;
350
351 Aws::String m_modificationTime;
352 bool m_modificationTimeHasBeenSet = false;
353
354 Aws::String m_outpostArn;
355 bool m_outpostArnHasBeenSet = false;
356
357 Aws::String m_preferredInstanceType;
358 bool m_preferredInstanceTypeHasBeenSet = false;
359
360 ResolverEndpointType m_resolverEndpointType;
361 bool m_resolverEndpointTypeHasBeenSet = false;
362
363 Aws::Vector<Protocol> m_protocols;
364 bool m_protocolsHasBeenSet = false;
365 };
366
367} // namespace Model
368} // namespace Route53Resolver
369} // namespace Aws
ResolverEndpoint & AddSecurityGroupIds(const Aws::String &value)
ResolverEndpoint & WithModificationTime(const char *value)
ResolverEndpoint & WithName(const char *value)
ResolverEndpoint & WithArn(const char *value)
ResolverEndpoint & WithArn(Aws::String &&value)
ResolverEndpoint & WithIpAddressCount(int value)
ResolverEndpoint & WithHostVPCId(const Aws::String &value)
void SetProtocols(Aws::Vector< Protocol > &&value)
ResolverEndpoint & WithOutpostArn(const char *value)
ResolverEndpoint & WithResolverEndpointType(const ResolverEndpointType &value)
ResolverEndpoint & WithPreferredInstanceType(const char *value)
ResolverEndpoint & WithProtocols(Aws::Vector< Protocol > &&value)
ResolverEndpoint & WithStatus(const ResolverEndpointStatus &value)
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
void SetDirection(const ResolverEndpointDirection &value)
ResolverEndpoint & AddSecurityGroupIds(const char *value)
ResolverEndpoint & WithName(Aws::String &&value)
AWS_ROUTE53RESOLVER_API ResolverEndpoint(Aws::Utils::Json::JsonView jsonValue)
void SetStatusMessage(const Aws::String &value)
ResolverEndpoint & WithDirection(ResolverEndpointDirection &&value)
AWS_ROUTE53RESOLVER_API Aws::Utils::Json::JsonValue Jsonize() const
ResolverEndpoint & AddProtocols(const Protocol &value)
ResolverEndpoint & WithSecurityGroupIds(Aws::Vector< Aws::String > &&value)
const Aws::String & GetCreatorRequestId() const
ResolverEndpoint & WithId(const char *value)
ResolverEndpoint & WithOutpostArn(const Aws::String &value)
ResolverEndpoint & WithArn(const Aws::String &value)
ResolverEndpoint & WithSecurityGroupIds(const Aws::Vector< Aws::String > &value)
ResolverEndpoint & WithCreatorRequestId(const char *value)
ResolverEndpoint & WithPreferredInstanceType(const Aws::String &value)
void SetPreferredInstanceType(const Aws::String &value)
ResolverEndpoint & WithCreatorRequestId(const Aws::String &value)
ResolverEndpoint & WithOutpostArn(Aws::String &&value)
ResolverEndpoint & WithStatusMessage(Aws::String &&value)
ResolverEndpoint & WithDirection(const ResolverEndpointDirection &value)
void SetOutpostArn(const Aws::String &value)
void SetCreationTime(const Aws::String &value)
ResolverEndpoint & WithStatusMessage(const char *value)
void SetResolverEndpointType(const ResolverEndpointType &value)
ResolverEndpoint & WithModificationTime(Aws::String &&value)
ResolverEndpoint & WithPreferredInstanceType(Aws::String &&value)
ResolverEndpoint & WithResolverEndpointType(ResolverEndpointType &&value)
void SetStatus(ResolverEndpointStatus &&value)
ResolverEndpoint & AddSecurityGroupIds(Aws::String &&value)
void SetModificationTime(const Aws::String &value)
void SetDirection(ResolverEndpointDirection &&value)
const Aws::Vector< Protocol > & GetProtocols() const
void SetStatus(const ResolverEndpointStatus &value)
ResolverEndpoint & WithCreatorRequestId(Aws::String &&value)
ResolverEndpoint & WithModificationTime(const Aws::String &value)
ResolverEndpoint & WithStatus(ResolverEndpointStatus &&value)
ResolverEndpoint & WithName(const Aws::String &value)
ResolverEndpoint & WithCreationTime(const char *value)
void SetSecurityGroupIds(Aws::Vector< Aws::String > &&value)
ResolverEndpoint & WithProtocols(const Aws::Vector< Protocol > &value)
ResolverEndpoint & WithHostVPCId(Aws::String &&value)
AWS_ROUTE53RESOLVER_API ResolverEndpoint & operator=(Aws::Utils::Json::JsonView jsonValue)
ResolverEndpoint & AddProtocols(Protocol &&value)
void SetHostVPCId(const Aws::String &value)
const ResolverEndpointStatus & GetStatus() const
ResolverEndpoint & WithHostVPCId(const char *value)
void SetSecurityGroupIds(const Aws::Vector< Aws::String > &value)
const ResolverEndpointType & GetResolverEndpointType() const
void SetProtocols(const Aws::Vector< Protocol > &value)
AWS_ROUTE53RESOLVER_API ResolverEndpoint()
ResolverEndpoint & WithCreationTime(Aws::String &&value)
void SetResolverEndpointType(ResolverEndpointType &&value)
const ResolverEndpointDirection & GetDirection() const
void SetCreatorRequestId(const Aws::String &value)
ResolverEndpoint & WithStatusMessage(const Aws::String &value)
ResolverEndpoint & WithId(Aws::String &&value)
ResolverEndpoint & WithId(const Aws::String &value)
const Aws::String & GetPreferredInstanceType() const
ResolverEndpoint & WithCreationTime(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue