AWS SDK for C++  1.9.104
AWS SDK for C++
AssociateFirewallRuleGroupRequest.h
Go to the documentation of this file.
1 
6 #pragma once
13 #include <utility>
14 #include <aws/core/utils/UUID.h>
15 
16 namespace Aws
17 {
18 namespace Route53Resolver
19 {
20 namespace Model
21 {
22 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "AssociateFirewallRuleGroup"; }
35 
36  Aws::String SerializePayload() const override;
37 
39 
40 
47  inline const Aws::String& GetCreatorRequestId() const{ return m_creatorRequestId; }
48 
55  inline bool CreatorRequestIdHasBeenSet() const { return m_creatorRequestIdHasBeenSet; }
56 
63  inline void SetCreatorRequestId(const Aws::String& value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId = value; }
64 
71  inline void SetCreatorRequestId(Aws::String&& value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId = std::move(value); }
72 
79  inline void SetCreatorRequestId(const char* value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId.assign(value); }
80 
87  inline AssociateFirewallRuleGroupRequest& WithCreatorRequestId(const Aws::String& value) { SetCreatorRequestId(value); return *this;}
88 
95  inline AssociateFirewallRuleGroupRequest& WithCreatorRequestId(Aws::String&& value) { SetCreatorRequestId(std::move(value)); return *this;}
96 
103  inline AssociateFirewallRuleGroupRequest& WithCreatorRequestId(const char* value) { SetCreatorRequestId(value); return *this;}
104 
105 
109  inline const Aws::String& GetFirewallRuleGroupId() const{ return m_firewallRuleGroupId; }
110 
114  inline bool FirewallRuleGroupIdHasBeenSet() const { return m_firewallRuleGroupIdHasBeenSet; }
115 
119  inline void SetFirewallRuleGroupId(const Aws::String& value) { m_firewallRuleGroupIdHasBeenSet = true; m_firewallRuleGroupId = value; }
120 
124  inline void SetFirewallRuleGroupId(Aws::String&& value) { m_firewallRuleGroupIdHasBeenSet = true; m_firewallRuleGroupId = std::move(value); }
125 
129  inline void SetFirewallRuleGroupId(const char* value) { m_firewallRuleGroupIdHasBeenSet = true; m_firewallRuleGroupId.assign(value); }
130 
134  inline AssociateFirewallRuleGroupRequest& WithFirewallRuleGroupId(const Aws::String& value) { SetFirewallRuleGroupId(value); return *this;}
135 
139  inline AssociateFirewallRuleGroupRequest& WithFirewallRuleGroupId(Aws::String&& value) { SetFirewallRuleGroupId(std::move(value)); return *this;}
140 
144  inline AssociateFirewallRuleGroupRequest& WithFirewallRuleGroupId(const char* value) { SetFirewallRuleGroupId(value); return *this;}
145 
146 
151  inline const Aws::String& GetVpcId() const{ return m_vpcId; }
152 
157  inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
158 
163  inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
164 
169  inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); }
170 
175  inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); }
176 
181  inline AssociateFirewallRuleGroupRequest& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
182 
187  inline AssociateFirewallRuleGroupRequest& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;}
188 
193  inline AssociateFirewallRuleGroupRequest& WithVpcId(const char* value) { SetVpcId(value); return *this;}
194 
195 
207  inline int GetPriority() const{ return m_priority; }
208 
220  inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
221 
233  inline void SetPriority(int value) { m_priorityHasBeenSet = true; m_priority = value; }
234 
246  inline AssociateFirewallRuleGroupRequest& WithPriority(int value) { SetPriority(value); return *this;}
247 
248 
252  inline const Aws::String& GetName() const{ return m_name; }
253 
257  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
258 
262  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
263 
267  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
268 
272  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
273 
277  inline AssociateFirewallRuleGroupRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
278 
282  inline AssociateFirewallRuleGroupRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
283 
287  inline AssociateFirewallRuleGroupRequest& WithName(const char* value) { SetName(value); return *this;}
288 
289 
296  inline const MutationProtectionStatus& GetMutationProtection() const{ return m_mutationProtection; }
297 
304  inline bool MutationProtectionHasBeenSet() const { return m_mutationProtectionHasBeenSet; }
305 
312  inline void SetMutationProtection(const MutationProtectionStatus& value) { m_mutationProtectionHasBeenSet = true; m_mutationProtection = value; }
313 
320  inline void SetMutationProtection(MutationProtectionStatus&& value) { m_mutationProtectionHasBeenSet = true; m_mutationProtection = std::move(value); }
321 
328  inline AssociateFirewallRuleGroupRequest& WithMutationProtection(const MutationProtectionStatus& value) { SetMutationProtection(value); return *this;}
329 
336  inline AssociateFirewallRuleGroupRequest& WithMutationProtection(MutationProtectionStatus&& value) { SetMutationProtection(std::move(value)); return *this;}
337 
338 
343  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
344 
349  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
350 
355  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
356 
361  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
362 
367  inline AssociateFirewallRuleGroupRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
368 
373  inline AssociateFirewallRuleGroupRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
374 
379  inline AssociateFirewallRuleGroupRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
380 
385  inline AssociateFirewallRuleGroupRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
386 
387  private:
388 
389  Aws::String m_creatorRequestId;
390  bool m_creatorRequestIdHasBeenSet;
391 
392  Aws::String m_firewallRuleGroupId;
393  bool m_firewallRuleGroupIdHasBeenSet;
394 
395  Aws::String m_vpcId;
396  bool m_vpcIdHasBeenSet;
397 
398  int m_priority;
399  bool m_priorityHasBeenSet;
400 
401  Aws::String m_name;
402  bool m_nameHasBeenSet;
403 
404  MutationProtectionStatus m_mutationProtection;
405  bool m_mutationProtectionHasBeenSet;
406 
407  Aws::Vector<Tag> m_tags;
408  bool m_tagsHasBeenSet;
409  };
410 
411 } // namespace Model
412 } // namespace Route53Resolver
413 } // namespace Aws
Aws::Route53Resolver::Model::AssociateFirewallRuleGroupRequest::SetFirewallRuleGroupId
void SetFirewallRuleGroupId(Aws::String &&value)
Definition: AssociateFirewallRuleGroupRequest.h:124
Aws::Route53Resolver::Model::AssociateFirewallRuleGroupRequest::SetCreatorRequestId
void SetCreatorRequestId(Aws::String &&value)
Definition: AssociateFirewallRuleGroupRequest.h:71
Aws::Route53Resolver::Model::AssociateFirewallRuleGroupRequest::FirewallRuleGroupIdHasBeenSet
bool FirewallRuleGroupIdHasBeenSet() const
Definition: AssociateFirewallRuleGroupRequest.h:114
Aws::Route53Resolver::Model::AssociateFirewallRuleGroupRequest::SetCreatorRequestId
void SetCreatorRequestId(const char *value)
Definition: AssociateFirewallRuleGroupRequest.h:79
Aws::Route53Resolver::Model::AssociateFirewallRuleGroupRequest::WithVpcId
AssociateFirewallRuleGroupRequest & WithVpcId(const Aws::String &value)
Definition: AssociateFirewallRuleGroupRequest.h:181
Aws::Route53Resolver::Model::AssociateFirewallRuleGroupRequest::WithName
AssociateFirewallRuleGroupRequest & WithName(Aws::String &&value)
Definition: AssociateFirewallRuleGroupRequest.h:282
Aws::Route53Resolver::Model::AssociateFirewallRuleGroupRequest::WithMutationProtection
AssociateFirewallRuleGroupRequest & WithMutationProtection(const MutationProtectionStatus &value)
Definition: AssociateFirewallRuleGroupRequest.h:328
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Route53Resolver::Model::AssociateFirewallRuleGroupRequest::PriorityHasBeenSet
bool PriorityHasBeenSet() const
Definition: AssociateFirewallRuleGroupRequest.h:220
Aws::Route53Resolver::Model::AssociateFirewallRuleGroupRequest::SetFirewallRuleGroupId
void SetFirewallRuleGroupId(const char *value)
Definition: AssociateFirewallRuleGroupRequest.h:129
Aws::Route53Resolver::Model::AssociateFirewallRuleGroupRequest::WithMutationProtection
AssociateFirewallRuleGroupRequest & WithMutationProtection(MutationProtectionStatus &&value)
Definition: AssociateFirewallRuleGroupRequest.h:336
Route53Resolver_EXPORTS.h
Aws::Route53Resolver::Model::AssociateFirewallRuleGroupRequest::WithCreatorRequestId
AssociateFirewallRuleGroupRequest & WithCreatorRequestId(const char *value)
Definition: AssociateFirewallRuleGroupRequest.h:103
Aws::Route53Resolver::Model::AssociateFirewallRuleGroupRequest::SetPriority
void SetPriority(int value)
Definition: AssociateFirewallRuleGroupRequest.h:233
Aws::Route53Resolver::Model::MutationProtectionStatus
MutationProtectionStatus
Definition: MutationProtectionStatus.h:17
Aws::Route53Resolver::Model::AssociateFirewallRuleGroupRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: AssociateFirewallRuleGroupRequest.h:343
Aws::Route53Resolver::Model::AssociateFirewallRuleGroupRequest::WithName
AssociateFirewallRuleGroupRequest & WithName(const char *value)
Definition: AssociateFirewallRuleGroupRequest.h:287
MutationProtectionStatus.h
Aws::Route53Resolver::Model::AssociateFirewallRuleGroupRequest::SetName
void SetName(const char *value)
Definition: AssociateFirewallRuleGroupRequest.h:272
Aws::Route53Resolver::Model::AssociateFirewallRuleGroupRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: AssociateFirewallRuleGroupRequest.h:355
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Route53Resolver::Model::AssociateFirewallRuleGroupRequest::SetName
void SetName(Aws::String &&value)
Definition: AssociateFirewallRuleGroupRequest.h:267
Aws::Route53Resolver::Model::AssociateFirewallRuleGroupRequest::WithCreatorRequestId
AssociateFirewallRuleGroupRequest & WithCreatorRequestId(const Aws::String &value)
Definition: AssociateFirewallRuleGroupRequest.h:87
AWSVector.h
Aws::Route53Resolver::Model::AssociateFirewallRuleGroupRequest::WithTags
AssociateFirewallRuleGroupRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: AssociateFirewallRuleGroupRequest.h:367
Aws::Route53Resolver::Model::AssociateFirewallRuleGroupRequest::CreatorRequestIdHasBeenSet
bool CreatorRequestIdHasBeenSet() const
Definition: AssociateFirewallRuleGroupRequest.h:55
Aws::Route53Resolver::Model::AssociateFirewallRuleGroupRequest::WithPriority
AssociateFirewallRuleGroupRequest & WithPriority(int value)
Definition: AssociateFirewallRuleGroupRequest.h:246
Aws::Route53Resolver::Model::Tag
Definition: Tag.h:34
Aws::Route53Resolver::Route53ResolverRequest
Definition: Route53ResolverRequest.h:17
Aws::Route53Resolver::Model::AssociateFirewallRuleGroupRequest::WithFirewallRuleGroupId
AssociateFirewallRuleGroupRequest & WithFirewallRuleGroupId(Aws::String &&value)
Definition: AssociateFirewallRuleGroupRequest.h:139
Aws::Route53Resolver::Model::AssociateFirewallRuleGroupRequest::WithFirewallRuleGroupId
AssociateFirewallRuleGroupRequest & WithFirewallRuleGroupId(const Aws::String &value)
Definition: AssociateFirewallRuleGroupRequest.h:134
Aws::Route53Resolver::Model::AssociateFirewallRuleGroupRequest::SetFirewallRuleGroupId
void SetFirewallRuleGroupId(const Aws::String &value)
Definition: AssociateFirewallRuleGroupRequest.h:119
Aws::Route53Resolver::Model::AssociateFirewallRuleGroupRequest::WithTags
AssociateFirewallRuleGroupRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: AssociateFirewallRuleGroupRequest.h:373
Aws::Route53Resolver::Model::AssociateFirewallRuleGroupRequest::GetFirewallRuleGroupId
const Aws::String & GetFirewallRuleGroupId() const
Definition: AssociateFirewallRuleGroupRequest.h:109
Aws::Route53Resolver::Model::AssociateFirewallRuleGroupRequest::SetMutationProtection
void SetMutationProtection(MutationProtectionStatus &&value)
Definition: AssociateFirewallRuleGroupRequest.h:320
AWS_ROUTE53RESOLVER_API
#define AWS_ROUTE53RESOLVER_API
Definition: Route53Resolver_EXPORTS.h:28
Aws::Route53Resolver::Model::AssociateFirewallRuleGroupRequest::WithVpcId
AssociateFirewallRuleGroupRequest & WithVpcId(const char *value)
Definition: AssociateFirewallRuleGroupRequest.h:193
Route53ResolverRequest.h
Aws::Route53Resolver::Model::AssociateFirewallRuleGroupRequest::SerializePayload
Aws::String SerializePayload() const override
AWSString.h
Aws::Route53Resolver::Model::AssociateFirewallRuleGroupRequest::VpcIdHasBeenSet
bool VpcIdHasBeenSet() const
Definition: AssociateFirewallRuleGroupRequest.h:157
Aws::Route53Resolver::Model::AssociateFirewallRuleGroupRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Route53Resolver::Model::AssociateFirewallRuleGroupRequest::AddTags
AssociateFirewallRuleGroupRequest & AddTags(Tag &&value)
Definition: AssociateFirewallRuleGroupRequest.h:385
Aws::Route53Resolver::Model::AssociateFirewallRuleGroupRequest::SetMutationProtection
void SetMutationProtection(const MutationProtectionStatus &value)
Definition: AssociateFirewallRuleGroupRequest.h:312
Aws::Route53Resolver::Model::AssociateFirewallRuleGroupRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: AssociateFirewallRuleGroupRequest.h:361
Aws::Route53Resolver::Model::AssociateFirewallRuleGroupRequest::SetVpcId
void SetVpcId(const char *value)
Definition: AssociateFirewallRuleGroupRequest.h:175
Aws::Route53Resolver::Model::AssociateFirewallRuleGroupRequest::WithVpcId
AssociateFirewallRuleGroupRequest & WithVpcId(Aws::String &&value)
Definition: AssociateFirewallRuleGroupRequest.h:187
Aws::Route53Resolver::Model::AssociateFirewallRuleGroupRequest::GetCreatorRequestId
const Aws::String & GetCreatorRequestId() const
Definition: AssociateFirewallRuleGroupRequest.h:47
Aws::Route53Resolver::Model::AssociateFirewallRuleGroupRequest::GetMutationProtection
const MutationProtectionStatus & GetMutationProtection() const
Definition: AssociateFirewallRuleGroupRequest.h:296
Aws::Route53Resolver::Model::AssociateFirewallRuleGroupRequest::SetVpcId
void SetVpcId(Aws::String &&value)
Definition: AssociateFirewallRuleGroupRequest.h:169
Aws::Route53Resolver::Model::AssociateFirewallRuleGroupRequest::AddTags
AssociateFirewallRuleGroupRequest & AddTags(const Tag &value)
Definition: AssociateFirewallRuleGroupRequest.h:379
Aws::Route53Resolver::Model::AssociateFirewallRuleGroupRequest::GetName
const Aws::String & GetName() const
Definition: AssociateFirewallRuleGroupRequest.h:252
Aws
Definition: AccessManagementClient.h:15
Aws::Route53Resolver::Model::AssociateFirewallRuleGroupRequest::WithName
AssociateFirewallRuleGroupRequest & WithName(const Aws::String &value)
Definition: AssociateFirewallRuleGroupRequest.h:277
Aws::Route53Resolver::Model::AssociateFirewallRuleGroupRequest::WithCreatorRequestId
AssociateFirewallRuleGroupRequest & WithCreatorRequestId(Aws::String &&value)
Definition: AssociateFirewallRuleGroupRequest.h:95
Aws::Route53Resolver::Model::AssociateFirewallRuleGroupRequest::SetCreatorRequestId
void SetCreatorRequestId(const Aws::String &value)
Definition: AssociateFirewallRuleGroupRequest.h:63
Aws::Route53Resolver::Model::AssociateFirewallRuleGroupRequest::SetVpcId
void SetVpcId(const Aws::String &value)
Definition: AssociateFirewallRuleGroupRequest.h:163
Aws::Route53Resolver::Model::AssociateFirewallRuleGroupRequest::SetName
void SetName(const Aws::String &value)
Definition: AssociateFirewallRuleGroupRequest.h:262
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Route53Resolver::Model::AssociateFirewallRuleGroupRequest::AssociateFirewallRuleGroupRequest
AssociateFirewallRuleGroupRequest()
Aws::Route53Resolver::Model::AssociateFirewallRuleGroupRequest::MutationProtectionHasBeenSet
bool MutationProtectionHasBeenSet() const
Definition: AssociateFirewallRuleGroupRequest.h:304
Aws::Route53Resolver::Model::AssociateFirewallRuleGroupRequest::GetVpcId
const Aws::String & GetVpcId() const
Definition: AssociateFirewallRuleGroupRequest.h:151
Aws::Route53Resolver::Model::AssociateFirewallRuleGroupRequest
Definition: AssociateFirewallRuleGroupRequest.h:26
Aws::Route53Resolver::Model::AssociateFirewallRuleGroupRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: AssociateFirewallRuleGroupRequest.h:34
Aws::Route53Resolver::Model::AssociateFirewallRuleGroupRequest::WithFirewallRuleGroupId
AssociateFirewallRuleGroupRequest & WithFirewallRuleGroupId(const char *value)
Definition: AssociateFirewallRuleGroupRequest.h:144
Aws::Route53Resolver::Model::AssociateFirewallRuleGroupRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: AssociateFirewallRuleGroupRequest.h:349
UUID.h
Aws::Route53Resolver::Model::AssociateFirewallRuleGroupRequest::GetPriority
int GetPriority() const
Definition: AssociateFirewallRuleGroupRequest.h:207
Aws::Route53Resolver::Model::AssociateFirewallRuleGroupRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: AssociateFirewallRuleGroupRequest.h:257
Tag.h