AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ResolverRule.h
1
6#pragma once
7#include <aws/route53resolver/Route53Resolver_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/route53resolver/model/ResolverRuleStatus.h>
10#include <aws/route53resolver/model/RuleTypeOption.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/route53resolver/model/ShareStatus.h>
13#include <aws/route53resolver/model/TargetAddress.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
49 {
50 public:
51 AWS_ROUTE53RESOLVER_API ResolverRule();
52 AWS_ROUTE53RESOLVER_API ResolverRule(Aws::Utils::Json::JsonView jsonValue);
53 AWS_ROUTE53RESOLVER_API ResolverRule& operator=(Aws::Utils::Json::JsonView jsonValue);
54 AWS_ROUTE53RESOLVER_API Aws::Utils::Json::JsonValue Jsonize() const;
55
56
58
61 inline const Aws::String& GetId() const{ return m_id; }
62 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
63 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
64 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
65 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
66 inline ResolverRule& WithId(const Aws::String& value) { SetId(value); return *this;}
67 inline ResolverRule& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
68 inline ResolverRule& WithId(const char* value) { SetId(value); return *this;}
70
72
77 inline const Aws::String& GetCreatorRequestId() const{ return m_creatorRequestId; }
78 inline bool CreatorRequestIdHasBeenSet() const { return m_creatorRequestIdHasBeenSet; }
79 inline void SetCreatorRequestId(const Aws::String& value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId = value; }
80 inline void SetCreatorRequestId(Aws::String&& value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId = std::move(value); }
81 inline void SetCreatorRequestId(const char* value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId.assign(value); }
82 inline ResolverRule& WithCreatorRequestId(const Aws::String& value) { SetCreatorRequestId(value); return *this;}
83 inline ResolverRule& WithCreatorRequestId(Aws::String&& value) { SetCreatorRequestId(std::move(value)); return *this;}
84 inline ResolverRule& WithCreatorRequestId(const char* value) { SetCreatorRequestId(value); return *this;}
86
88
92 inline const Aws::String& GetArn() const{ return m_arn; }
93 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
94 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
95 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
96 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
97 inline ResolverRule& WithArn(const Aws::String& value) { SetArn(value); return *this;}
98 inline ResolverRule& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
99 inline ResolverRule& WithArn(const char* value) { SetArn(value); return *this;}
101
103
109 inline const Aws::String& GetDomainName() const{ return m_domainName; }
110 inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; }
111 inline void SetDomainName(const Aws::String& value) { m_domainNameHasBeenSet = true; m_domainName = value; }
112 inline void SetDomainName(Aws::String&& value) { m_domainNameHasBeenSet = true; m_domainName = std::move(value); }
113 inline void SetDomainName(const char* value) { m_domainNameHasBeenSet = true; m_domainName.assign(value); }
114 inline ResolverRule& WithDomainName(const Aws::String& value) { SetDomainName(value); return *this;}
115 inline ResolverRule& WithDomainName(Aws::String&& value) { SetDomainName(std::move(value)); return *this;}
116 inline ResolverRule& WithDomainName(const char* value) { SetDomainName(value); return *this;}
118
120
123 inline const ResolverRuleStatus& GetStatus() const{ return m_status; }
124 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
125 inline void SetStatus(const ResolverRuleStatus& value) { m_statusHasBeenSet = true; m_status = value; }
126 inline void SetStatus(ResolverRuleStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
127 inline ResolverRule& WithStatus(const ResolverRuleStatus& value) { SetStatus(value); return *this;}
128 inline ResolverRule& WithStatus(ResolverRuleStatus&& value) { SetStatus(std::move(value)); return *this;}
130
132
135 inline const Aws::String& GetStatusMessage() const{ return m_statusMessage; }
136 inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
137 inline void SetStatusMessage(const Aws::String& value) { m_statusMessageHasBeenSet = true; m_statusMessage = value; }
138 inline void SetStatusMessage(Aws::String&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::move(value); }
139 inline void SetStatusMessage(const char* value) { m_statusMessageHasBeenSet = true; m_statusMessage.assign(value); }
140 inline ResolverRule& WithStatusMessage(const Aws::String& value) { SetStatusMessage(value); return *this;}
141 inline ResolverRule& WithStatusMessage(Aws::String&& value) { SetStatusMessage(std::move(value)); return *this;}
142 inline ResolverRule& WithStatusMessage(const char* value) { SetStatusMessage(value); return *this;}
144
146
158 inline const RuleTypeOption& GetRuleType() const{ return m_ruleType; }
159 inline bool RuleTypeHasBeenSet() const { return m_ruleTypeHasBeenSet; }
160 inline void SetRuleType(const RuleTypeOption& value) { m_ruleTypeHasBeenSet = true; m_ruleType = value; }
161 inline void SetRuleType(RuleTypeOption&& value) { m_ruleTypeHasBeenSet = true; m_ruleType = std::move(value); }
162 inline ResolverRule& WithRuleType(const RuleTypeOption& value) { SetRuleType(value); return *this;}
163 inline ResolverRule& WithRuleType(RuleTypeOption&& value) { SetRuleType(std::move(value)); return *this;}
165
167
171 inline const Aws::String& GetName() const{ return m_name; }
172 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
173 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
174 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
175 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
176 inline ResolverRule& WithName(const Aws::String& value) { SetName(value); return *this;}
177 inline ResolverRule& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
178 inline ResolverRule& WithName(const char* value) { SetName(value); return *this;}
180
182
187 inline const Aws::Vector<TargetAddress>& GetTargetIps() const{ return m_targetIps; }
188 inline bool TargetIpsHasBeenSet() const { return m_targetIpsHasBeenSet; }
189 inline void SetTargetIps(const Aws::Vector<TargetAddress>& value) { m_targetIpsHasBeenSet = true; m_targetIps = value; }
190 inline void SetTargetIps(Aws::Vector<TargetAddress>&& value) { m_targetIpsHasBeenSet = true; m_targetIps = std::move(value); }
191 inline ResolverRule& WithTargetIps(const Aws::Vector<TargetAddress>& value) { SetTargetIps(value); return *this;}
192 inline ResolverRule& WithTargetIps(Aws::Vector<TargetAddress>&& value) { SetTargetIps(std::move(value)); return *this;}
193 inline ResolverRule& AddTargetIps(const TargetAddress& value) { m_targetIpsHasBeenSet = true; m_targetIps.push_back(value); return *this; }
194 inline ResolverRule& AddTargetIps(TargetAddress&& value) { m_targetIpsHasBeenSet = true; m_targetIps.push_back(std::move(value)); return *this; }
196
198
201 inline const Aws::String& GetResolverEndpointId() const{ return m_resolverEndpointId; }
202 inline bool ResolverEndpointIdHasBeenSet() const { return m_resolverEndpointIdHasBeenSet; }
203 inline void SetResolverEndpointId(const Aws::String& value) { m_resolverEndpointIdHasBeenSet = true; m_resolverEndpointId = value; }
204 inline void SetResolverEndpointId(Aws::String&& value) { m_resolverEndpointIdHasBeenSet = true; m_resolverEndpointId = std::move(value); }
205 inline void SetResolverEndpointId(const char* value) { m_resolverEndpointIdHasBeenSet = true; m_resolverEndpointId.assign(value); }
206 inline ResolverRule& WithResolverEndpointId(const Aws::String& value) { SetResolverEndpointId(value); return *this;}
207 inline ResolverRule& WithResolverEndpointId(Aws::String&& value) { SetResolverEndpointId(std::move(value)); return *this;}
208 inline ResolverRule& WithResolverEndpointId(const char* value) { SetResolverEndpointId(value); return *this;}
210
212
216 inline const Aws::String& GetOwnerId() const{ return m_ownerId; }
217 inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
218 inline void SetOwnerId(const Aws::String& value) { m_ownerIdHasBeenSet = true; m_ownerId = value; }
219 inline void SetOwnerId(Aws::String&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::move(value); }
220 inline void SetOwnerId(const char* value) { m_ownerIdHasBeenSet = true; m_ownerId.assign(value); }
221 inline ResolverRule& WithOwnerId(const Aws::String& value) { SetOwnerId(value); return *this;}
222 inline ResolverRule& WithOwnerId(Aws::String&& value) { SetOwnerId(std::move(value)); return *this;}
223 inline ResolverRule& WithOwnerId(const char* value) { SetOwnerId(value); return *this;}
225
227
232 inline const ShareStatus& GetShareStatus() const{ return m_shareStatus; }
233 inline bool ShareStatusHasBeenSet() const { return m_shareStatusHasBeenSet; }
234 inline void SetShareStatus(const ShareStatus& value) { m_shareStatusHasBeenSet = true; m_shareStatus = value; }
235 inline void SetShareStatus(ShareStatus&& value) { m_shareStatusHasBeenSet = true; m_shareStatus = std::move(value); }
236 inline ResolverRule& WithShareStatus(const ShareStatus& value) { SetShareStatus(value); return *this;}
237 inline ResolverRule& WithShareStatus(ShareStatus&& value) { SetShareStatus(std::move(value)); return *this;}
239
241
245 inline const Aws::String& GetCreationTime() const{ return m_creationTime; }
246 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
247 inline void SetCreationTime(const Aws::String& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
248 inline void SetCreationTime(Aws::String&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); }
249 inline void SetCreationTime(const char* value) { m_creationTimeHasBeenSet = true; m_creationTime.assign(value); }
250 inline ResolverRule& WithCreationTime(const Aws::String& value) { SetCreationTime(value); return *this;}
251 inline ResolverRule& WithCreationTime(Aws::String&& value) { SetCreationTime(std::move(value)); return *this;}
252 inline ResolverRule& WithCreationTime(const char* value) { SetCreationTime(value); return *this;}
254
256
260 inline const Aws::String& GetModificationTime() const{ return m_modificationTime; }
261 inline bool ModificationTimeHasBeenSet() const { return m_modificationTimeHasBeenSet; }
262 inline void SetModificationTime(const Aws::String& value) { m_modificationTimeHasBeenSet = true; m_modificationTime = value; }
263 inline void SetModificationTime(Aws::String&& value) { m_modificationTimeHasBeenSet = true; m_modificationTime = std::move(value); }
264 inline void SetModificationTime(const char* value) { m_modificationTimeHasBeenSet = true; m_modificationTime.assign(value); }
265 inline ResolverRule& WithModificationTime(const Aws::String& value) { SetModificationTime(value); return *this;}
266 inline ResolverRule& WithModificationTime(Aws::String&& value) { SetModificationTime(std::move(value)); return *this;}
267 inline ResolverRule& WithModificationTime(const char* value) { SetModificationTime(value); return *this;}
269 private:
270
271 Aws::String m_id;
272 bool m_idHasBeenSet = false;
273
274 Aws::String m_creatorRequestId;
275 bool m_creatorRequestIdHasBeenSet = false;
276
277 Aws::String m_arn;
278 bool m_arnHasBeenSet = false;
279
280 Aws::String m_domainName;
281 bool m_domainNameHasBeenSet = false;
282
283 ResolverRuleStatus m_status;
284 bool m_statusHasBeenSet = false;
285
286 Aws::String m_statusMessage;
287 bool m_statusMessageHasBeenSet = false;
288
289 RuleTypeOption m_ruleType;
290 bool m_ruleTypeHasBeenSet = false;
291
292 Aws::String m_name;
293 bool m_nameHasBeenSet = false;
294
295 Aws::Vector<TargetAddress> m_targetIps;
296 bool m_targetIpsHasBeenSet = false;
297
298 Aws::String m_resolverEndpointId;
299 bool m_resolverEndpointIdHasBeenSet = false;
300
301 Aws::String m_ownerId;
302 bool m_ownerIdHasBeenSet = false;
303
304 ShareStatus m_shareStatus;
305 bool m_shareStatusHasBeenSet = false;
306
307 Aws::String m_creationTime;
308 bool m_creationTimeHasBeenSet = false;
309
310 Aws::String m_modificationTime;
311 bool m_modificationTimeHasBeenSet = false;
312 };
313
314} // namespace Model
315} // namespace Route53Resolver
316} // namespace Aws
ResolverRule & AddTargetIps(TargetAddress &&value)
void SetRuleType(RuleTypeOption &&value)
const RuleTypeOption & GetRuleType() const
ResolverRule & WithId(Aws::String &&value)
const Aws::String & GetName() const
void SetResolverEndpointId(const Aws::String &value)
ResolverRule & WithDomainName(const char *value)
ResolverRule & AddTargetIps(const TargetAddress &value)
const Aws::String & GetCreationTime() const
void SetDomainName(const Aws::String &value)
ResolverRule & WithStatusMessage(Aws::String &&value)
void SetId(const Aws::String &value)
ResolverRule & WithCreatorRequestId(const Aws::String &value)
ResolverRule & WithStatus(ResolverRuleStatus &&value)
ResolverRule & WithTargetIps(Aws::Vector< TargetAddress > &&value)
const Aws::String & GetModificationTime() const
ResolverRule & WithCreatorRequestId(Aws::String &&value)
const ShareStatus & GetShareStatus() const
ResolverRule & WithCreationTime(const char *value)
void SetStatus(ResolverRuleStatus &&value)
const Aws::String & GetOwnerId() const
ResolverRule & WithStatusMessage(const char *value)
ResolverRule & WithOwnerId(const Aws::String &value)
ResolverRule & WithId(const char *value)
void SetStatus(const ResolverRuleStatus &value)
ResolverRule & WithName(const char *value)
void SetCreatorRequestId(const char *value)
AWS_ROUTE53RESOLVER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetResolverEndpointId(Aws::String &&value)
ResolverRule & WithCreatorRequestId(const char *value)
const Aws::Vector< TargetAddress > & GetTargetIps() const
AWS_ROUTE53RESOLVER_API ResolverRule()
const Aws::String & GetStatusMessage() const
ResolverRule & WithArn(const Aws::String &value)
ResolverRule & WithOwnerId(const char *value)
ResolverRule & WithTargetIps(const Aws::Vector< TargetAddress > &value)
void SetResolverEndpointId(const char *value)
void SetCreationTime(Aws::String &&value)
ResolverRule & WithName(const Aws::String &value)
ResolverRule & WithModificationTime(const char *value)
ResolverRule & WithDomainName(Aws::String &&value)
void SetModificationTime(Aws::String &&value)
void SetTargetIps(const Aws::Vector< TargetAddress > &value)
void SetCreationTime(const Aws::String &value)
ResolverRule & WithModificationTime(const Aws::String &value)
void SetStatusMessage(Aws::String &&value)
void SetRuleType(const RuleTypeOption &value)
ResolverRule & WithId(const Aws::String &value)
ResolverRule & WithRuleType(RuleTypeOption &&value)
void SetCreatorRequestId(const Aws::String &value)
void SetArn(const Aws::String &value)
ResolverRule & WithShareStatus(ShareStatus &&value)
void SetStatusMessage(const Aws::String &value)
const Aws::String & GetDomainName() const
void SetCreatorRequestId(Aws::String &&value)
void SetShareStatus(const ShareStatus &value)
const ResolverRuleStatus & GetStatus() const
void SetShareStatus(ShareStatus &&value)
ResolverRule & WithStatus(const ResolverRuleStatus &value)
ResolverRule & WithModificationTime(Aws::String &&value)
const Aws::String & GetCreatorRequestId() const
ResolverRule & WithArn(Aws::String &&value)
ResolverRule & WithCreationTime(const Aws::String &value)
void SetOwnerId(const Aws::String &value)
ResolverRule & WithResolverEndpointId(Aws::String &&value)
AWS_ROUTE53RESOLVER_API ResolverRule(Aws::Utils::Json::JsonView jsonValue)
ResolverRule & WithCreationTime(Aws::String &&value)
void SetTargetIps(Aws::Vector< TargetAddress > &&value)
ResolverRule & WithStatusMessage(const Aws::String &value)
ResolverRule & WithRuleType(const RuleTypeOption &value)
void SetModificationTime(const char *value)
ResolverRule & WithOwnerId(Aws::String &&value)
const Aws::String & GetArn() const
const Aws::String & GetId() const
void SetDomainName(Aws::String &&value)
const Aws::String & GetResolverEndpointId() const
ResolverRule & WithResolverEndpointId(const char *value)
AWS_ROUTE53RESOLVER_API ResolverRule & operator=(Aws::Utils::Json::JsonView jsonValue)
ResolverRule & WithArn(const char *value)
ResolverRule & WithName(Aws::String &&value)
ResolverRule & WithShareStatus(const ShareStatus &value)
ResolverRule & WithDomainName(const Aws::String &value)
void SetName(const Aws::String &value)
void SetModificationTime(const Aws::String &value)
ResolverRule & WithResolverEndpointId(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