AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
UpdateSubnetChangeProtectionRequest.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 <utility>
11
12namespace Aws
13{
14namespace NetworkFirewall
15{
16namespace Model
17{
18
22 {
23 public:
24 AWS_NETWORKFIREWALL_API UpdateSubnetChangeProtectionRequest() = default;
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 "UpdateSubnetChangeProtection"; }
31
32 AWS_NETWORKFIREWALL_API Aws::String SerializePayload() const override;
33
34 AWS_NETWORKFIREWALL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
35
36
38
52 inline const Aws::String& GetUpdateToken() const { return m_updateToken; }
53 inline bool UpdateTokenHasBeenSet() const { return m_updateTokenHasBeenSet; }
54 template<typename UpdateTokenT = Aws::String>
55 void SetUpdateToken(UpdateTokenT&& value) { m_updateTokenHasBeenSet = true; m_updateToken = std::forward<UpdateTokenT>(value); }
56 template<typename UpdateTokenT = Aws::String>
57 UpdateSubnetChangeProtectionRequest& WithUpdateToken(UpdateTokenT&& value) { SetUpdateToken(std::forward<UpdateTokenT>(value)); return *this;}
59
61
65 inline const Aws::String& GetFirewallArn() const { return m_firewallArn; }
66 inline bool FirewallArnHasBeenSet() const { return m_firewallArnHasBeenSet; }
67 template<typename FirewallArnT = Aws::String>
68 void SetFirewallArn(FirewallArnT&& value) { m_firewallArnHasBeenSet = true; m_firewallArn = std::forward<FirewallArnT>(value); }
69 template<typename FirewallArnT = Aws::String>
70 UpdateSubnetChangeProtectionRequest& WithFirewallArn(FirewallArnT&& value) { SetFirewallArn(std::forward<FirewallArnT>(value)); return *this;}
72
74
79 inline const Aws::String& GetFirewallName() const { return m_firewallName; }
80 inline bool FirewallNameHasBeenSet() const { return m_firewallNameHasBeenSet; }
81 template<typename FirewallNameT = Aws::String>
82 void SetFirewallName(FirewallNameT&& value) { m_firewallNameHasBeenSet = true; m_firewallName = std::forward<FirewallNameT>(value); }
83 template<typename FirewallNameT = Aws::String>
84 UpdateSubnetChangeProtectionRequest& WithFirewallName(FirewallNameT&& value) { SetFirewallName(std::forward<FirewallNameT>(value)); return *this;}
86
88
94 inline bool GetSubnetChangeProtection() const { return m_subnetChangeProtection; }
95 inline bool SubnetChangeProtectionHasBeenSet() const { return m_subnetChangeProtectionHasBeenSet; }
96 inline void SetSubnetChangeProtection(bool value) { m_subnetChangeProtectionHasBeenSet = true; m_subnetChangeProtection = value; }
99 private:
100
101 Aws::String m_updateToken;
102 bool m_updateTokenHasBeenSet = false;
103
104 Aws::String m_firewallArn;
105 bool m_firewallArnHasBeenSet = false;
106
107 Aws::String m_firewallName;
108 bool m_firewallNameHasBeenSet = false;
109
110 bool m_subnetChangeProtection{false};
111 bool m_subnetChangeProtectionHasBeenSet = false;
112 };
113
114} // namespace Model
115} // namespace NetworkFirewall
116} // namespace Aws
AWS_NETWORKFIREWALL_API Aws::String SerializePayload() const override
UpdateSubnetChangeProtectionRequest & WithFirewallArn(FirewallArnT &&value)
AWS_NETWORKFIREWALL_API UpdateSubnetChangeProtectionRequest()=default
UpdateSubnetChangeProtectionRequest & WithUpdateToken(UpdateTokenT &&value)
AWS_NETWORKFIREWALL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateSubnetChangeProtectionRequest & WithFirewallName(FirewallNameT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String