AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AssociateFirewallRuleGroupRequest.h
1
6#pragma once
7#include <aws/route53resolver/Route53Resolver_EXPORTS.h>
8#include <aws/route53resolver/Route53ResolverRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/route53resolver/model/MutationProtectionStatus.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/route53resolver/model/Tag.h>
13#include <utility>
14#include <aws/core/utils/UUID.h>
15
16namespace Aws
17{
18namespace Route53Resolver
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_ROUTE53RESOLVER_API AssociateFirewallRuleGroupRequest();
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_ROUTE53RESOLVER_API Aws::String SerializePayload() const override;
37
38 AWS_ROUTE53RESOLVER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
39
40
42
48 inline const Aws::String& GetCreatorRequestId() const{ return m_creatorRequestId; }
49 inline bool CreatorRequestIdHasBeenSet() const { return m_creatorRequestIdHasBeenSet; }
50 inline void SetCreatorRequestId(const Aws::String& value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId = value; }
51 inline void SetCreatorRequestId(Aws::String&& value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId = std::move(value); }
52 inline void SetCreatorRequestId(const char* value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId.assign(value); }
55 inline AssociateFirewallRuleGroupRequest& WithCreatorRequestId(const char* value) { SetCreatorRequestId(value); return *this;}
57
59
62 inline const Aws::String& GetFirewallRuleGroupId() const{ return m_firewallRuleGroupId; }
63 inline bool FirewallRuleGroupIdHasBeenSet() const { return m_firewallRuleGroupIdHasBeenSet; }
64 inline void SetFirewallRuleGroupId(const Aws::String& value) { m_firewallRuleGroupIdHasBeenSet = true; m_firewallRuleGroupId = value; }
65 inline void SetFirewallRuleGroupId(Aws::String&& value) { m_firewallRuleGroupIdHasBeenSet = true; m_firewallRuleGroupId = std::move(value); }
66 inline void SetFirewallRuleGroupId(const char* value) { m_firewallRuleGroupIdHasBeenSet = true; m_firewallRuleGroupId.assign(value); }
69 inline AssociateFirewallRuleGroupRequest& WithFirewallRuleGroupId(const char* value) { SetFirewallRuleGroupId(value); return *this;}
71
73
77 inline const Aws::String& GetVpcId() const{ return m_vpcId; }
78 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
79 inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
80 inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); }
81 inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); }
82 inline AssociateFirewallRuleGroupRequest& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
83 inline AssociateFirewallRuleGroupRequest& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;}
84 inline AssociateFirewallRuleGroupRequest& WithVpcId(const char* value) { SetVpcId(value); return *this;}
86
88
99 inline int GetPriority() const{ return m_priority; }
100 inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
101 inline void SetPriority(int value) { m_priorityHasBeenSet = true; m_priority = value; }
102 inline AssociateFirewallRuleGroupRequest& WithPriority(int value) { SetPriority(value); return *this;}
104
106
109 inline const Aws::String& GetName() const{ return m_name; }
110 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
111 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
112 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
113 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
114 inline AssociateFirewallRuleGroupRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
115 inline AssociateFirewallRuleGroupRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
116 inline AssociateFirewallRuleGroupRequest& WithName(const char* value) { SetName(value); return *this;}
118
120
126 inline const MutationProtectionStatus& GetMutationProtection() const{ return m_mutationProtection; }
127 inline bool MutationProtectionHasBeenSet() const { return m_mutationProtectionHasBeenSet; }
128 inline void SetMutationProtection(const MutationProtectionStatus& value) { m_mutationProtectionHasBeenSet = true; m_mutationProtection = value; }
129 inline void SetMutationProtection(MutationProtectionStatus&& value) { m_mutationProtectionHasBeenSet = true; m_mutationProtection = std::move(value); }
133
135
139 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
140 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
141 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
142 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
143 inline AssociateFirewallRuleGroupRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
144 inline AssociateFirewallRuleGroupRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
145 inline AssociateFirewallRuleGroupRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
146 inline AssociateFirewallRuleGroupRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
148 private:
149
150 Aws::String m_creatorRequestId;
151 bool m_creatorRequestIdHasBeenSet = false;
152
153 Aws::String m_firewallRuleGroupId;
154 bool m_firewallRuleGroupIdHasBeenSet = false;
155
156 Aws::String m_vpcId;
157 bool m_vpcIdHasBeenSet = false;
158
159 int m_priority;
160 bool m_priorityHasBeenSet = false;
161
162 Aws::String m_name;
163 bool m_nameHasBeenSet = false;
164
165 MutationProtectionStatus m_mutationProtection;
166 bool m_mutationProtectionHasBeenSet = false;
167
168 Aws::Vector<Tag> m_tags;
169 bool m_tagsHasBeenSet = false;
170 };
171
172} // namespace Model
173} // namespace Route53Resolver
174} // namespace Aws
AssociateFirewallRuleGroupRequest & WithMutationProtection(const MutationProtectionStatus &value)
AssociateFirewallRuleGroupRequest & WithFirewallRuleGroupId(Aws::String &&value)
AssociateFirewallRuleGroupRequest & WithCreatorRequestId(const char *value)
AssociateFirewallRuleGroupRequest & WithVpcId(const Aws::String &value)
AWS_ROUTE53RESOLVER_API Aws::String SerializePayload() const override
AssociateFirewallRuleGroupRequest & WithMutationProtection(MutationProtectionStatus &&value)
AssociateFirewallRuleGroupRequest & WithTags(Aws::Vector< Tag > &&value)
AWS_ROUTE53RESOLVER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AssociateFirewallRuleGroupRequest & WithCreatorRequestId(const Aws::String &value)
AssociateFirewallRuleGroupRequest & WithTags(const Aws::Vector< Tag > &value)
AssociateFirewallRuleGroupRequest & WithFirewallRuleGroupId(const char *value)
AssociateFirewallRuleGroupRequest & WithName(const Aws::String &value)
AssociateFirewallRuleGroupRequest & WithVpcId(const char *value)
AssociateFirewallRuleGroupRequest & WithName(Aws::String &&value)
AssociateFirewallRuleGroupRequest & WithVpcId(Aws::String &&value)
AssociateFirewallRuleGroupRequest & WithCreatorRequestId(Aws::String &&value)
AssociateFirewallRuleGroupRequest & WithName(const char *value)
AssociateFirewallRuleGroupRequest & WithFirewallRuleGroupId(const Aws::String &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector