AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename CreatorRequestIdT = Aws::String>
51 void SetCreatorRequestId(CreatorRequestIdT&& value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId = std::forward<CreatorRequestIdT>(value); }
52 template<typename CreatorRequestIdT = Aws::String>
53 AssociateFirewallRuleGroupRequest& WithCreatorRequestId(CreatorRequestIdT&& value) { SetCreatorRequestId(std::forward<CreatorRequestIdT>(value)); return *this;}
55
57
60 inline const Aws::String& GetFirewallRuleGroupId() const { return m_firewallRuleGroupId; }
61 inline bool FirewallRuleGroupIdHasBeenSet() const { return m_firewallRuleGroupIdHasBeenSet; }
62 template<typename FirewallRuleGroupIdT = Aws::String>
63 void SetFirewallRuleGroupId(FirewallRuleGroupIdT&& value) { m_firewallRuleGroupIdHasBeenSet = true; m_firewallRuleGroupId = std::forward<FirewallRuleGroupIdT>(value); }
64 template<typename FirewallRuleGroupIdT = Aws::String>
65 AssociateFirewallRuleGroupRequest& WithFirewallRuleGroupId(FirewallRuleGroupIdT&& value) { SetFirewallRuleGroupId(std::forward<FirewallRuleGroupIdT>(value)); return *this;}
67
69
73 inline const Aws::String& GetVpcId() const { return m_vpcId; }
74 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
75 template<typename VpcIdT = Aws::String>
76 void SetVpcId(VpcIdT&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::forward<VpcIdT>(value); }
77 template<typename VpcIdT = Aws::String>
78 AssociateFirewallRuleGroupRequest& WithVpcId(VpcIdT&& value) { SetVpcId(std::forward<VpcIdT>(value)); return *this;}
80
82
93 inline int GetPriority() const { return m_priority; }
94 inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
95 inline void SetPriority(int value) { m_priorityHasBeenSet = true; m_priority = value; }
96 inline AssociateFirewallRuleGroupRequest& WithPriority(int value) { SetPriority(value); return *this;}
98
100
103 inline const Aws::String& GetName() const { return m_name; }
104 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
105 template<typename NameT = Aws::String>
106 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
107 template<typename NameT = Aws::String>
108 AssociateFirewallRuleGroupRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
110
112
118 inline MutationProtectionStatus GetMutationProtection() const { return m_mutationProtection; }
119 inline bool MutationProtectionHasBeenSet() const { return m_mutationProtectionHasBeenSet; }
120 inline void SetMutationProtection(MutationProtectionStatus value) { m_mutationProtectionHasBeenSet = true; m_mutationProtection = value; }
123
125
129 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
130 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
131 template<typename TagsT = Aws::Vector<Tag>>
132 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
133 template<typename TagsT = Aws::Vector<Tag>>
134 AssociateFirewallRuleGroupRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
135 template<typename TagsT = Tag>
136 AssociateFirewallRuleGroupRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
138 private:
139
141 bool m_creatorRequestIdHasBeenSet = true;
142
143 Aws::String m_firewallRuleGroupId;
144 bool m_firewallRuleGroupIdHasBeenSet = false;
145
146 Aws::String m_vpcId;
147 bool m_vpcIdHasBeenSet = false;
148
149 int m_priority{0};
150 bool m_priorityHasBeenSet = false;
151
152 Aws::String m_name;
153 bool m_nameHasBeenSet = false;
154
156 bool m_mutationProtectionHasBeenSet = false;
157
158 Aws::Vector<Tag> m_tags;
159 bool m_tagsHasBeenSet = false;
160 };
161
162} // namespace Model
163} // namespace Route53Resolver
164} // 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