AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateFirewallPolicyRequest.h
1
6#pragma once
7#include <aws/network-firewall/NetworkFirewall_EXPORTS.h>
8#include <aws/network-firewall/NetworkFirewallRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/network-firewall/model/FirewallPolicy.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/network-firewall/model/EncryptionConfiguration.h>
13#include <aws/network-firewall/model/Tag.h>
14#include <utility>
15
16namespace Aws
17{
18namespace NetworkFirewall
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_NETWORKFIREWALL_API CreateFirewallPolicyRequest();
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 "CreateFirewallPolicy"; }
35
36 AWS_NETWORKFIREWALL_API Aws::String SerializePayload() const override;
37
38 AWS_NETWORKFIREWALL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
39
40
42
46 inline const Aws::String& GetFirewallPolicyName() const{ return m_firewallPolicyName; }
47 inline bool FirewallPolicyNameHasBeenSet() const { return m_firewallPolicyNameHasBeenSet; }
48 inline void SetFirewallPolicyName(const Aws::String& value) { m_firewallPolicyNameHasBeenSet = true; m_firewallPolicyName = value; }
49 inline void SetFirewallPolicyName(Aws::String&& value) { m_firewallPolicyNameHasBeenSet = true; m_firewallPolicyName = std::move(value); }
50 inline void SetFirewallPolicyName(const char* value) { m_firewallPolicyNameHasBeenSet = true; m_firewallPolicyName.assign(value); }
52 inline CreateFirewallPolicyRequest& WithFirewallPolicyName(Aws::String&& value) { SetFirewallPolicyName(std::move(value)); return *this;}
53 inline CreateFirewallPolicyRequest& WithFirewallPolicyName(const char* value) { SetFirewallPolicyName(value); return *this;}
55
57
60 inline const FirewallPolicy& GetFirewallPolicy() const{ return m_firewallPolicy; }
61 inline bool FirewallPolicyHasBeenSet() const { return m_firewallPolicyHasBeenSet; }
62 inline void SetFirewallPolicy(const FirewallPolicy& value) { m_firewallPolicyHasBeenSet = true; m_firewallPolicy = value; }
63 inline void SetFirewallPolicy(FirewallPolicy&& value) { m_firewallPolicyHasBeenSet = true; m_firewallPolicy = std::move(value); }
65 inline CreateFirewallPolicyRequest& WithFirewallPolicy(FirewallPolicy&& value) { SetFirewallPolicy(std::move(value)); return *this;}
67
69
72 inline const Aws::String& GetDescription() const{ return m_description; }
73 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
74 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
75 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
76 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
77 inline CreateFirewallPolicyRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
78 inline CreateFirewallPolicyRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
79 inline CreateFirewallPolicyRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
81
83
86 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
87 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
88 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
89 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
90 inline CreateFirewallPolicyRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
91 inline CreateFirewallPolicyRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
92 inline CreateFirewallPolicyRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
93 inline CreateFirewallPolicyRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
95
97
108 inline bool GetDryRun() const{ return m_dryRun; }
109 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
110 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
111 inline CreateFirewallPolicyRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
113
115
119 inline const EncryptionConfiguration& GetEncryptionConfiguration() const{ return m_encryptionConfiguration; }
120 inline bool EncryptionConfigurationHasBeenSet() const { return m_encryptionConfigurationHasBeenSet; }
121 inline void SetEncryptionConfiguration(const EncryptionConfiguration& value) { m_encryptionConfigurationHasBeenSet = true; m_encryptionConfiguration = value; }
122 inline void SetEncryptionConfiguration(EncryptionConfiguration&& value) { m_encryptionConfigurationHasBeenSet = true; m_encryptionConfiguration = std::move(value); }
126 private:
127
128 Aws::String m_firewallPolicyName;
129 bool m_firewallPolicyNameHasBeenSet = false;
130
131 FirewallPolicy m_firewallPolicy;
132 bool m_firewallPolicyHasBeenSet = false;
133
134 Aws::String m_description;
135 bool m_descriptionHasBeenSet = false;
136
137 Aws::Vector<Tag> m_tags;
138 bool m_tagsHasBeenSet = false;
139
140 bool m_dryRun;
141 bool m_dryRunHasBeenSet = false;
142
143 EncryptionConfiguration m_encryptionConfiguration;
144 bool m_encryptionConfigurationHasBeenSet = false;
145 };
146
147} // namespace Model
148} // namespace NetworkFirewall
149} // namespace Aws
CreateFirewallPolicyRequest & WithFirewallPolicy(FirewallPolicy &&value)
CreateFirewallPolicyRequest & AddTags(const Tag &value)
CreateFirewallPolicyRequest & WithFirewallPolicyName(const Aws::String &value)
CreateFirewallPolicyRequest & WithDescription(const Aws::String &value)
void SetEncryptionConfiguration(const EncryptionConfiguration &value)
CreateFirewallPolicyRequest & WithTags(const Aws::Vector< Tag > &value)
AWS_NETWORKFIREWALL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateFirewallPolicyRequest & WithFirewallPolicy(const FirewallPolicy &value)
CreateFirewallPolicyRequest & WithEncryptionConfiguration(const EncryptionConfiguration &value)
AWS_NETWORKFIREWALL_API Aws::String SerializePayload() const override
CreateFirewallPolicyRequest & WithFirewallPolicyName(const char *value)
CreateFirewallPolicyRequest & WithTags(Aws::Vector< Tag > &&value)
CreateFirewallPolicyRequest & WithDescription(Aws::String &&value)
CreateFirewallPolicyRequest & WithEncryptionConfiguration(EncryptionConfiguration &&value)
CreateFirewallPolicyRequest & WithDescription(const char *value)
CreateFirewallPolicyRequest & WithFirewallPolicyName(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