AWS SDK for C++

AWS SDK for C++ Version 1.11.680

Loading...
Searching...
No Matches
AssociateFirewallRuleGroupRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/route53resolver/Route53ResolverRequest.h>
11#include <aws/route53resolver/Route53Resolver_EXPORTS.h>
12#include <aws/route53resolver/model/MutationProtectionStatus.h>
13#include <aws/route53resolver/model/Tag.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Route53Resolver {
19namespace Model {
20
24 public:
25 AWS_ROUTE53RESOLVER_API AssociateFirewallRuleGroupRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "AssociateFirewallRuleGroup"; }
32
33 AWS_ROUTE53RESOLVER_API Aws::String SerializePayload() const override;
34
35 AWS_ROUTE53RESOLVER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36
38
44 inline const Aws::String& GetCreatorRequestId() const { return m_creatorRequestId; }
45 inline bool CreatorRequestIdHasBeenSet() const { return m_creatorRequestIdHasBeenSet; }
46 template <typename CreatorRequestIdT = Aws::String>
47 void SetCreatorRequestId(CreatorRequestIdT&& value) {
48 m_creatorRequestIdHasBeenSet = true;
49 m_creatorRequestId = std::forward<CreatorRequestIdT>(value);
50 }
51 template <typename CreatorRequestIdT = Aws::String>
53 SetCreatorRequestId(std::forward<CreatorRequestIdT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetFirewallRuleGroupId() const { return m_firewallRuleGroupId; }
63 inline bool FirewallRuleGroupIdHasBeenSet() const { return m_firewallRuleGroupIdHasBeenSet; }
64 template <typename FirewallRuleGroupIdT = Aws::String>
65 void SetFirewallRuleGroupId(FirewallRuleGroupIdT&& value) {
66 m_firewallRuleGroupIdHasBeenSet = true;
67 m_firewallRuleGroupId = std::forward<FirewallRuleGroupIdT>(value);
68 }
69 template <typename FirewallRuleGroupIdT = Aws::String>
71 SetFirewallRuleGroupId(std::forward<FirewallRuleGroupIdT>(value));
72 return *this;
73 }
75
77
81 inline const Aws::String& GetVpcId() const { return m_vpcId; }
82 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
83 template <typename VpcIdT = Aws::String>
84 void SetVpcId(VpcIdT&& value) {
85 m_vpcIdHasBeenSet = true;
86 m_vpcId = std::forward<VpcIdT>(value);
87 }
88 template <typename VpcIdT = Aws::String>
90 SetVpcId(std::forward<VpcIdT>(value));
91 return *this;
92 }
94
96
107 inline int GetPriority() const { return m_priority; }
108 inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
109 inline void SetPriority(int value) {
110 m_priorityHasBeenSet = true;
111 m_priority = value;
112 }
114 SetPriority(value);
115 return *this;
116 }
118
120
123 inline const Aws::String& GetName() const { return m_name; }
124 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
125 template <typename NameT = Aws::String>
126 void SetName(NameT&& value) {
127 m_nameHasBeenSet = true;
128 m_name = std::forward<NameT>(value);
129 }
130 template <typename NameT = Aws::String>
132 SetName(std::forward<NameT>(value));
133 return *this;
134 }
136
138
144 inline MutationProtectionStatus GetMutationProtection() const { return m_mutationProtection; }
145 inline bool MutationProtectionHasBeenSet() const { return m_mutationProtectionHasBeenSet; }
147 m_mutationProtectionHasBeenSet = true;
148 m_mutationProtection = value;
149 }
152 return *this;
153 }
155
157
161 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
162 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
163 template <typename TagsT = Aws::Vector<Tag>>
164 void SetTags(TagsT&& value) {
165 m_tagsHasBeenSet = true;
166 m_tags = std::forward<TagsT>(value);
167 }
168 template <typename TagsT = Aws::Vector<Tag>>
170 SetTags(std::forward<TagsT>(value));
171 return *this;
172 }
173 template <typename TagsT = Tag>
175 m_tagsHasBeenSet = true;
176 m_tags.emplace_back(std::forward<TagsT>(value));
177 return *this;
178 }
180 private:
182 bool m_creatorRequestIdHasBeenSet = true;
183
184 Aws::String m_firewallRuleGroupId;
185 bool m_firewallRuleGroupIdHasBeenSet = false;
186
187 Aws::String m_vpcId;
188 bool m_vpcIdHasBeenSet = false;
189
190 int m_priority{0};
191 bool m_priorityHasBeenSet = false;
192
193 Aws::String m_name;
194 bool m_nameHasBeenSet = false;
195
197 bool m_mutationProtectionHasBeenSet = false;
198
199 Aws::Vector<Tag> m_tags;
200 bool m_tagsHasBeenSet = false;
201};
202
203} // namespace Model
204} // namespace Route53Resolver
205} // namespace Aws
AWS_ROUTE53RESOLVER_API Aws::String SerializePayload() const override
AssociateFirewallRuleGroupRequest & WithMutationProtection(MutationProtectionStatus value)
AWS_ROUTE53RESOLVER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_ROUTE53RESOLVER_API AssociateFirewallRuleGroupRequest()=default
AssociateFirewallRuleGroupRequest & WithFirewallRuleGroupId(FirewallRuleGroupIdT &&value)
AssociateFirewallRuleGroupRequest & WithCreatorRequestId(CreatorRequestIdT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
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