AWS SDK for C++  1.9.109
AWS SDK for C++
UpdateFirewallPolicyChangeProtectionRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace NetworkFirewall
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "UpdateFirewallPolicyChangeProtection"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
51  inline const Aws::String& GetUpdateToken() const{ return m_updateToken; }
52 
67  inline bool UpdateTokenHasBeenSet() const { return m_updateTokenHasBeenSet; }
68 
83  inline void SetUpdateToken(const Aws::String& value) { m_updateTokenHasBeenSet = true; m_updateToken = value; }
84 
99  inline void SetUpdateToken(Aws::String&& value) { m_updateTokenHasBeenSet = true; m_updateToken = std::move(value); }
100 
115  inline void SetUpdateToken(const char* value) { m_updateTokenHasBeenSet = true; m_updateToken.assign(value); }
116 
131  inline UpdateFirewallPolicyChangeProtectionRequest& WithUpdateToken(const Aws::String& value) { SetUpdateToken(value); return *this;}
132 
147  inline UpdateFirewallPolicyChangeProtectionRequest& WithUpdateToken(Aws::String&& value) { SetUpdateToken(std::move(value)); return *this;}
148 
163  inline UpdateFirewallPolicyChangeProtectionRequest& WithUpdateToken(const char* value) { SetUpdateToken(value); return *this;}
164 
165 
170  inline const Aws::String& GetFirewallArn() const{ return m_firewallArn; }
171 
176  inline bool FirewallArnHasBeenSet() const { return m_firewallArnHasBeenSet; }
177 
182  inline void SetFirewallArn(const Aws::String& value) { m_firewallArnHasBeenSet = true; m_firewallArn = value; }
183 
188  inline void SetFirewallArn(Aws::String&& value) { m_firewallArnHasBeenSet = true; m_firewallArn = std::move(value); }
189 
194  inline void SetFirewallArn(const char* value) { m_firewallArnHasBeenSet = true; m_firewallArn.assign(value); }
195 
200  inline UpdateFirewallPolicyChangeProtectionRequest& WithFirewallArn(const Aws::String& value) { SetFirewallArn(value); return *this;}
201 
206  inline UpdateFirewallPolicyChangeProtectionRequest& WithFirewallArn(Aws::String&& value) { SetFirewallArn(std::move(value)); return *this;}
207 
212  inline UpdateFirewallPolicyChangeProtectionRequest& WithFirewallArn(const char* value) { SetFirewallArn(value); return *this;}
213 
214 
220  inline const Aws::String& GetFirewallName() const{ return m_firewallName; }
221 
227  inline bool FirewallNameHasBeenSet() const { return m_firewallNameHasBeenSet; }
228 
234  inline void SetFirewallName(const Aws::String& value) { m_firewallNameHasBeenSet = true; m_firewallName = value; }
235 
241  inline void SetFirewallName(Aws::String&& value) { m_firewallNameHasBeenSet = true; m_firewallName = std::move(value); }
242 
248  inline void SetFirewallName(const char* value) { m_firewallNameHasBeenSet = true; m_firewallName.assign(value); }
249 
255  inline UpdateFirewallPolicyChangeProtectionRequest& WithFirewallName(const Aws::String& value) { SetFirewallName(value); return *this;}
256 
262  inline UpdateFirewallPolicyChangeProtectionRequest& WithFirewallName(Aws::String&& value) { SetFirewallName(std::move(value)); return *this;}
263 
269  inline UpdateFirewallPolicyChangeProtectionRequest& WithFirewallName(const char* value) { SetFirewallName(value); return *this;}
270 
271 
279  inline bool GetFirewallPolicyChangeProtection() const{ return m_firewallPolicyChangeProtection; }
280 
288  inline bool FirewallPolicyChangeProtectionHasBeenSet() const { return m_firewallPolicyChangeProtectionHasBeenSet; }
289 
297  inline void SetFirewallPolicyChangeProtection(bool value) { m_firewallPolicyChangeProtectionHasBeenSet = true; m_firewallPolicyChangeProtection = value; }
298 
306  inline UpdateFirewallPolicyChangeProtectionRequest& WithFirewallPolicyChangeProtection(bool value) { SetFirewallPolicyChangeProtection(value); return *this;}
307 
308  private:
309 
310  Aws::String m_updateToken;
311  bool m_updateTokenHasBeenSet;
312 
313  Aws::String m_firewallArn;
314  bool m_firewallArnHasBeenSet;
315 
316  Aws::String m_firewallName;
317  bool m_firewallNameHasBeenSet;
318 
319  bool m_firewallPolicyChangeProtection;
320  bool m_firewallPolicyChangeProtectionHasBeenSet;
321  };
322 
323 } // namespace Model
324 } // namespace NetworkFirewall
325 } // namespace Aws
Aws::NetworkFirewall::Model::UpdateFirewallPolicyChangeProtectionRequest::SetUpdateToken
void SetUpdateToken(const char *value)
Definition: UpdateFirewallPolicyChangeProtectionRequest.h:115
Aws::NetworkFirewall::Model::UpdateFirewallPolicyChangeProtectionRequest::SetUpdateToken
void SetUpdateToken(const Aws::String &value)
Definition: UpdateFirewallPolicyChangeProtectionRequest.h:83
Aws::NetworkFirewall::Model::UpdateFirewallPolicyChangeProtectionRequest::WithFirewallName
UpdateFirewallPolicyChangeProtectionRequest & WithFirewallName(const Aws::String &value)
Definition: UpdateFirewallPolicyChangeProtectionRequest.h:255
Aws::NetworkFirewall::Model::UpdateFirewallPolicyChangeProtectionRequest::GetFirewallName
const Aws::String & GetFirewallName() const
Definition: UpdateFirewallPolicyChangeProtectionRequest.h:220
Aws::NetworkFirewall::Model::UpdateFirewallPolicyChangeProtectionRequest::GetFirewallPolicyChangeProtection
bool GetFirewallPolicyChangeProtection() const
Definition: UpdateFirewallPolicyChangeProtectionRequest.h:279
Aws::NetworkFirewall::NetworkFirewallRequest
Definition: NetworkFirewallRequest.h:17
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
NetworkFirewallRequest.h
Aws::NetworkFirewall::Model::UpdateFirewallPolicyChangeProtectionRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::NetworkFirewall::Model::UpdateFirewallPolicyChangeProtectionRequest::SetFirewallArn
void SetFirewallArn(const Aws::String &value)
Definition: UpdateFirewallPolicyChangeProtectionRequest.h:182
Aws::NetworkFirewall::Model::UpdateFirewallPolicyChangeProtectionRequest::GetUpdateToken
const Aws::String & GetUpdateToken() const
Definition: UpdateFirewallPolicyChangeProtectionRequest.h:51
Aws::NetworkFirewall::Model::UpdateFirewallPolicyChangeProtectionRequest::WithFirewallName
UpdateFirewallPolicyChangeProtectionRequest & WithFirewallName(Aws::String &&value)
Definition: UpdateFirewallPolicyChangeProtectionRequest.h:262
Aws::NetworkFirewall::Model::UpdateFirewallPolicyChangeProtectionRequest::GetFirewallArn
const Aws::String & GetFirewallArn() const
Definition: UpdateFirewallPolicyChangeProtectionRequest.h:170
Aws::NetworkFirewall::Model::UpdateFirewallPolicyChangeProtectionRequest::FirewallArnHasBeenSet
bool FirewallArnHasBeenSet() const
Definition: UpdateFirewallPolicyChangeProtectionRequest.h:176
Aws::NetworkFirewall::Model::UpdateFirewallPolicyChangeProtectionRequest::WithUpdateToken
UpdateFirewallPolicyChangeProtectionRequest & WithUpdateToken(Aws::String &&value)
Definition: UpdateFirewallPolicyChangeProtectionRequest.h:147
Aws::NetworkFirewall::Model::UpdateFirewallPolicyChangeProtectionRequest::SetFirewallArn
void SetFirewallArn(Aws::String &&value)
Definition: UpdateFirewallPolicyChangeProtectionRequest.h:188
Aws::NetworkFirewall::Model::UpdateFirewallPolicyChangeProtectionRequest::SetFirewallName
void SetFirewallName(Aws::String &&value)
Definition: UpdateFirewallPolicyChangeProtectionRequest.h:241
Aws::NetworkFirewall::Model::UpdateFirewallPolicyChangeProtectionRequest::SetFirewallPolicyChangeProtection
void SetFirewallPolicyChangeProtection(bool value)
Definition: UpdateFirewallPolicyChangeProtectionRequest.h:297
Aws::NetworkFirewall::Model::UpdateFirewallPolicyChangeProtectionRequest::WithFirewallArn
UpdateFirewallPolicyChangeProtectionRequest & WithFirewallArn(const char *value)
Definition: UpdateFirewallPolicyChangeProtectionRequest.h:212
Aws::NetworkFirewall::Model::UpdateFirewallPolicyChangeProtectionRequest::WithUpdateToken
UpdateFirewallPolicyChangeProtectionRequest & WithUpdateToken(const Aws::String &value)
Definition: UpdateFirewallPolicyChangeProtectionRequest.h:131
Aws::NetworkFirewall::Model::UpdateFirewallPolicyChangeProtectionRequest::UpdateTokenHasBeenSet
bool UpdateTokenHasBeenSet() const
Definition: UpdateFirewallPolicyChangeProtectionRequest.h:67
Aws::NetworkFirewall::Model::UpdateFirewallPolicyChangeProtectionRequest::WithFirewallName
UpdateFirewallPolicyChangeProtectionRequest & WithFirewallName(const char *value)
Definition: UpdateFirewallPolicyChangeProtectionRequest.h:269
AWSString.h
Aws::NetworkFirewall::Model::UpdateFirewallPolicyChangeProtectionRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::NetworkFirewall::Model::UpdateFirewallPolicyChangeProtectionRequest::WithFirewallPolicyChangeProtection
UpdateFirewallPolicyChangeProtectionRequest & WithFirewallPolicyChangeProtection(bool value)
Definition: UpdateFirewallPolicyChangeProtectionRequest.h:306
Aws::NetworkFirewall::Model::UpdateFirewallPolicyChangeProtectionRequest::FirewallNameHasBeenSet
bool FirewallNameHasBeenSet() const
Definition: UpdateFirewallPolicyChangeProtectionRequest.h:227
AWS_NETWORKFIREWALL_API
#define AWS_NETWORKFIREWALL_API
Definition: NetworkFirewall_EXPORTS.h:28
Aws::NetworkFirewall::Model::UpdateFirewallPolicyChangeProtectionRequest::WithUpdateToken
UpdateFirewallPolicyChangeProtectionRequest & WithUpdateToken(const char *value)
Definition: UpdateFirewallPolicyChangeProtectionRequest.h:163
Aws::NetworkFirewall::Model::UpdateFirewallPolicyChangeProtectionRequest::WithFirewallArn
UpdateFirewallPolicyChangeProtectionRequest & WithFirewallArn(const Aws::String &value)
Definition: UpdateFirewallPolicyChangeProtectionRequest.h:200
Aws::NetworkFirewall::Model::UpdateFirewallPolicyChangeProtectionRequest::WithFirewallArn
UpdateFirewallPolicyChangeProtectionRequest & WithFirewallArn(Aws::String &&value)
Definition: UpdateFirewallPolicyChangeProtectionRequest.h:206
Aws::NetworkFirewall::Model::UpdateFirewallPolicyChangeProtectionRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateFirewallPolicyChangeProtectionRequest.h:30
Aws::NetworkFirewall::Model::UpdateFirewallPolicyChangeProtectionRequest::SetFirewallArn
void SetFirewallArn(const char *value)
Definition: UpdateFirewallPolicyChangeProtectionRequest.h:194
Aws::NetworkFirewall::Model::UpdateFirewallPolicyChangeProtectionRequest
Definition: UpdateFirewallPolicyChangeProtectionRequest.h:22
Aws
Definition: AccessManagementClient.h:15
Aws::NetworkFirewall::Model::UpdateFirewallPolicyChangeProtectionRequest::SetUpdateToken
void SetUpdateToken(Aws::String &&value)
Definition: UpdateFirewallPolicyChangeProtectionRequest.h:99
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::NetworkFirewall::Model::UpdateFirewallPolicyChangeProtectionRequest::FirewallPolicyChangeProtectionHasBeenSet
bool FirewallPolicyChangeProtectionHasBeenSet() const
Definition: UpdateFirewallPolicyChangeProtectionRequest.h:288
Aws::NetworkFirewall::Model::UpdateFirewallPolicyChangeProtectionRequest::SetFirewallName
void SetFirewallName(const Aws::String &value)
Definition: UpdateFirewallPolicyChangeProtectionRequest.h:234
Aws::NetworkFirewall::Model::UpdateFirewallPolicyChangeProtectionRequest::SetFirewallName
void SetFirewallName(const char *value)
Definition: UpdateFirewallPolicyChangeProtectionRequest.h:248
NetworkFirewall_EXPORTS.h
Aws::NetworkFirewall::Model::UpdateFirewallPolicyChangeProtectionRequest::UpdateFirewallPolicyChangeProtectionRequest
UpdateFirewallPolicyChangeProtectionRequest()