AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AssociateSubnetsRequest.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/core/utils/memory/stl/AWSVector.h>
11#include <aws/network-firewall/model/SubnetMapping.h>
12#include <utility>
13
14namespace Aws
15{
16namespace NetworkFirewall
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_NETWORKFIREWALL_API AssociateSubnetsRequest() = default;
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 "AssociateSubnets"; }
33
34 AWS_NETWORKFIREWALL_API Aws::String SerializePayload() const override;
35
36 AWS_NETWORKFIREWALL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
38
40
54 inline const Aws::String& GetUpdateToken() const { return m_updateToken; }
55 inline bool UpdateTokenHasBeenSet() const { return m_updateTokenHasBeenSet; }
56 template<typename UpdateTokenT = Aws::String>
57 void SetUpdateToken(UpdateTokenT&& value) { m_updateTokenHasBeenSet = true; m_updateToken = std::forward<UpdateTokenT>(value); }
58 template<typename UpdateTokenT = Aws::String>
59 AssociateSubnetsRequest& WithUpdateToken(UpdateTokenT&& value) { SetUpdateToken(std::forward<UpdateTokenT>(value)); return *this;}
61
63
67 inline const Aws::String& GetFirewallArn() const { return m_firewallArn; }
68 inline bool FirewallArnHasBeenSet() const { return m_firewallArnHasBeenSet; }
69 template<typename FirewallArnT = Aws::String>
70 void SetFirewallArn(FirewallArnT&& value) { m_firewallArnHasBeenSet = true; m_firewallArn = std::forward<FirewallArnT>(value); }
71 template<typename FirewallArnT = Aws::String>
72 AssociateSubnetsRequest& WithFirewallArn(FirewallArnT&& value) { SetFirewallArn(std::forward<FirewallArnT>(value)); return *this;}
74
76
81 inline const Aws::String& GetFirewallName() const { return m_firewallName; }
82 inline bool FirewallNameHasBeenSet() const { return m_firewallNameHasBeenSet; }
83 template<typename FirewallNameT = Aws::String>
84 void SetFirewallName(FirewallNameT&& value) { m_firewallNameHasBeenSet = true; m_firewallName = std::forward<FirewallNameT>(value); }
85 template<typename FirewallNameT = Aws::String>
86 AssociateSubnetsRequest& WithFirewallName(FirewallNameT&& value) { SetFirewallName(std::forward<FirewallNameT>(value)); return *this;}
88
90
93 inline const Aws::Vector<SubnetMapping>& GetSubnetMappings() const { return m_subnetMappings; }
94 inline bool SubnetMappingsHasBeenSet() const { return m_subnetMappingsHasBeenSet; }
95 template<typename SubnetMappingsT = Aws::Vector<SubnetMapping>>
96 void SetSubnetMappings(SubnetMappingsT&& value) { m_subnetMappingsHasBeenSet = true; m_subnetMappings = std::forward<SubnetMappingsT>(value); }
97 template<typename SubnetMappingsT = Aws::Vector<SubnetMapping>>
98 AssociateSubnetsRequest& WithSubnetMappings(SubnetMappingsT&& value) { SetSubnetMappings(std::forward<SubnetMappingsT>(value)); return *this;}
99 template<typename SubnetMappingsT = SubnetMapping>
100 AssociateSubnetsRequest& AddSubnetMappings(SubnetMappingsT&& value) { m_subnetMappingsHasBeenSet = true; m_subnetMappings.emplace_back(std::forward<SubnetMappingsT>(value)); return *this; }
102 private:
103
104 Aws::String m_updateToken;
105 bool m_updateTokenHasBeenSet = false;
106
107 Aws::String m_firewallArn;
108 bool m_firewallArnHasBeenSet = false;
109
110 Aws::String m_firewallName;
111 bool m_firewallNameHasBeenSet = false;
112
113 Aws::Vector<SubnetMapping> m_subnetMappings;
114 bool m_subnetMappingsHasBeenSet = false;
115 };
116
117} // namespace Model
118} // namespace NetworkFirewall
119} // namespace Aws
virtual const char * GetServiceRequestName() const override
AssociateSubnetsRequest & AddSubnetMappings(SubnetMappingsT &&value)
AWS_NETWORKFIREWALL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::Vector< SubnetMapping > & GetSubnetMappings() const
AssociateSubnetsRequest & WithFirewallName(FirewallNameT &&value)
AssociateSubnetsRequest & WithUpdateToken(UpdateTokenT &&value)
AssociateSubnetsRequest & WithFirewallArn(FirewallArnT &&value)
AWS_NETWORKFIREWALL_API Aws::String SerializePayload() const override
AssociateSubnetsRequest & WithSubnetMappings(SubnetMappingsT &&value)
AWS_NETWORKFIREWALL_API AssociateSubnetsRequest()=default
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