AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateFirewallPolicyRequest.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/network-firewall/model/EncryptionConfiguration.h>
12#include <utility>
13
14namespace Aws
15{
16namespace NetworkFirewall
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_NETWORKFIREWALL_API UpdateFirewallPolicyRequest();
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "UpdateFirewallPolicy"; }
33
34 AWS_NETWORKFIREWALL_API Aws::String SerializePayload() const override;
35
36 AWS_NETWORKFIREWALL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
38
40
51 inline const Aws::String& GetUpdateToken() const{ return m_updateToken; }
52 inline bool UpdateTokenHasBeenSet() const { return m_updateTokenHasBeenSet; }
53 inline void SetUpdateToken(const Aws::String& value) { m_updateTokenHasBeenSet = true; m_updateToken = value; }
54 inline void SetUpdateToken(Aws::String&& value) { m_updateTokenHasBeenSet = true; m_updateToken = std::move(value); }
55 inline void SetUpdateToken(const char* value) { m_updateTokenHasBeenSet = true; m_updateToken.assign(value); }
56 inline UpdateFirewallPolicyRequest& WithUpdateToken(const Aws::String& value) { SetUpdateToken(value); return *this;}
57 inline UpdateFirewallPolicyRequest& WithUpdateToken(Aws::String&& value) { SetUpdateToken(std::move(value)); return *this;}
58 inline UpdateFirewallPolicyRequest& WithUpdateToken(const char* value) { SetUpdateToken(value); return *this;}
60
62
66 inline const Aws::String& GetFirewallPolicyArn() const{ return m_firewallPolicyArn; }
67 inline bool FirewallPolicyArnHasBeenSet() const { return m_firewallPolicyArnHasBeenSet; }
68 inline void SetFirewallPolicyArn(const Aws::String& value) { m_firewallPolicyArnHasBeenSet = true; m_firewallPolicyArn = value; }
69 inline void SetFirewallPolicyArn(Aws::String&& value) { m_firewallPolicyArnHasBeenSet = true; m_firewallPolicyArn = std::move(value); }
70 inline void SetFirewallPolicyArn(const char* value) { m_firewallPolicyArnHasBeenSet = true; m_firewallPolicyArn.assign(value); }
72 inline UpdateFirewallPolicyRequest& WithFirewallPolicyArn(Aws::String&& value) { SetFirewallPolicyArn(std::move(value)); return *this;}
73 inline UpdateFirewallPolicyRequest& WithFirewallPolicyArn(const char* value) { SetFirewallPolicyArn(value); return *this;}
75
77
82 inline const Aws::String& GetFirewallPolicyName() const{ return m_firewallPolicyName; }
83 inline bool FirewallPolicyNameHasBeenSet() const { return m_firewallPolicyNameHasBeenSet; }
84 inline void SetFirewallPolicyName(const Aws::String& value) { m_firewallPolicyNameHasBeenSet = true; m_firewallPolicyName = value; }
85 inline void SetFirewallPolicyName(Aws::String&& value) { m_firewallPolicyNameHasBeenSet = true; m_firewallPolicyName = std::move(value); }
86 inline void SetFirewallPolicyName(const char* value) { m_firewallPolicyNameHasBeenSet = true; m_firewallPolicyName.assign(value); }
88 inline UpdateFirewallPolicyRequest& WithFirewallPolicyName(Aws::String&& value) { SetFirewallPolicyName(std::move(value)); return *this;}
89 inline UpdateFirewallPolicyRequest& WithFirewallPolicyName(const char* value) { SetFirewallPolicyName(value); return *this;}
91
93
99 inline const FirewallPolicy& GetFirewallPolicy() const{ return m_firewallPolicy; }
100 inline bool FirewallPolicyHasBeenSet() const { return m_firewallPolicyHasBeenSet; }
101 inline void SetFirewallPolicy(const FirewallPolicy& value) { m_firewallPolicyHasBeenSet = true; m_firewallPolicy = value; }
102 inline void SetFirewallPolicy(FirewallPolicy&& value) { m_firewallPolicyHasBeenSet = true; m_firewallPolicy = std::move(value); }
104 inline UpdateFirewallPolicyRequest& WithFirewallPolicy(FirewallPolicy&& value) { SetFirewallPolicy(std::move(value)); return *this;}
106
108
111 inline const Aws::String& GetDescription() const{ return m_description; }
112 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
113 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
114 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
115 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
116 inline UpdateFirewallPolicyRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
117 inline UpdateFirewallPolicyRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
118 inline UpdateFirewallPolicyRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
120
122
133 inline bool GetDryRun() const{ return m_dryRun; }
134 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
135 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
136 inline UpdateFirewallPolicyRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
138
140
144 inline const EncryptionConfiguration& GetEncryptionConfiguration() const{ return m_encryptionConfiguration; }
145 inline bool EncryptionConfigurationHasBeenSet() const { return m_encryptionConfigurationHasBeenSet; }
146 inline void SetEncryptionConfiguration(const EncryptionConfiguration& value) { m_encryptionConfigurationHasBeenSet = true; m_encryptionConfiguration = value; }
147 inline void SetEncryptionConfiguration(EncryptionConfiguration&& value) { m_encryptionConfigurationHasBeenSet = true; m_encryptionConfiguration = std::move(value); }
151 private:
152
153 Aws::String m_updateToken;
154 bool m_updateTokenHasBeenSet = false;
155
156 Aws::String m_firewallPolicyArn;
157 bool m_firewallPolicyArnHasBeenSet = false;
158
159 Aws::String m_firewallPolicyName;
160 bool m_firewallPolicyNameHasBeenSet = false;
161
162 FirewallPolicy m_firewallPolicy;
163 bool m_firewallPolicyHasBeenSet = false;
164
165 Aws::String m_description;
166 bool m_descriptionHasBeenSet = false;
167
168 bool m_dryRun;
169 bool m_dryRunHasBeenSet = false;
170
171 EncryptionConfiguration m_encryptionConfiguration;
172 bool m_encryptionConfigurationHasBeenSet = false;
173 };
174
175} // namespace Model
176} // namespace NetworkFirewall
177} // namespace Aws
UpdateFirewallPolicyRequest & WithFirewallPolicyName(Aws::String &&value)
UpdateFirewallPolicyRequest & WithEncryptionConfiguration(const EncryptionConfiguration &value)
AWS_NETWORKFIREWALL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateFirewallPolicyRequest & WithUpdateToken(Aws::String &&value)
UpdateFirewallPolicyRequest & WithFirewallPolicyName(const char *value)
UpdateFirewallPolicyRequest & WithFirewallPolicyArn(Aws::String &&value)
UpdateFirewallPolicyRequest & WithFirewallPolicyName(const Aws::String &value)
UpdateFirewallPolicyRequest & WithDescription(const Aws::String &value)
UpdateFirewallPolicyRequest & WithFirewallPolicyArn(const Aws::String &value)
UpdateFirewallPolicyRequest & WithEncryptionConfiguration(EncryptionConfiguration &&value)
UpdateFirewallPolicyRequest & WithUpdateToken(const Aws::String &value)
UpdateFirewallPolicyRequest & WithDescription(const char *value)
void SetEncryptionConfiguration(const EncryptionConfiguration &value)
UpdateFirewallPolicyRequest & WithFirewallPolicy(const FirewallPolicy &value)
UpdateFirewallPolicyRequest & WithDescription(Aws::String &&value)
UpdateFirewallPolicyRequest & WithUpdateToken(const char *value)
AWS_NETWORKFIREWALL_API Aws::String SerializePayload() const override
UpdateFirewallPolicyRequest & WithFirewallPolicy(FirewallPolicy &&value)
UpdateFirewallPolicyRequest & WithFirewallPolicyArn(const char *value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String