AWS SDK for C++

AWS SDK for C++ Version 1.11.944

Loading...
Searching...
No Matches
AssociateSubnetsResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/crt/cbor/Cbor.h>
11#include <aws/network-firewall/NetworkFirewall_EXPORTS.h>
12#include <aws/network-firewall/model/SubnetMapping.h>
13
14#include <utility>
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Cbor {
21class CborValue;
22} // namespace Cbor
23} // namespace Utils
24namespace NetworkFirewall {
25namespace Model {
27 public:
28 AWS_NETWORKFIREWALL_API AssociateSubnetsResult() = default;
31
33
36 inline const Aws::String& GetFirewallArn() const { return m_firewallArn; }
37 template <typename FirewallArnT = Aws::String>
38 void SetFirewallArn(FirewallArnT&& value) {
39 m_firewallArnHasBeenSet = true;
40 m_firewallArn = std::forward<FirewallArnT>(value);
41 }
42 template <typename FirewallArnT = Aws::String>
43 AssociateSubnetsResult& WithFirewallArn(FirewallArnT&& value) {
44 SetFirewallArn(std::forward<FirewallArnT>(value));
45 return *this;
46 }
48
50
54 inline const Aws::String& GetFirewallName() const { return m_firewallName; }
55 template <typename FirewallNameT = Aws::String>
56 void SetFirewallName(FirewallNameT&& value) {
57 m_firewallNameHasBeenSet = true;
58 m_firewallName = std::forward<FirewallNameT>(value);
59 }
60 template <typename FirewallNameT = Aws::String>
61 AssociateSubnetsResult& WithFirewallName(FirewallNameT&& value) {
62 SetFirewallName(std::forward<FirewallNameT>(value));
63 return *this;
64 }
66
68
71 inline const Aws::Vector<SubnetMapping>& GetSubnetMappings() const { return m_subnetMappings; }
72 template <typename SubnetMappingsT = Aws::Vector<SubnetMapping>>
73 void SetSubnetMappings(SubnetMappingsT&& value) {
74 m_subnetMappingsHasBeenSet = true;
75 m_subnetMappings = std::forward<SubnetMappingsT>(value);
76 }
77 template <typename SubnetMappingsT = Aws::Vector<SubnetMapping>>
78 AssociateSubnetsResult& WithSubnetMappings(SubnetMappingsT&& value) {
79 SetSubnetMappings(std::forward<SubnetMappingsT>(value));
80 return *this;
81 }
82 template <typename SubnetMappingsT = SubnetMapping>
83 AssociateSubnetsResult& AddSubnetMappings(SubnetMappingsT&& value) {
84 m_subnetMappingsHasBeenSet = true;
85 m_subnetMappings.emplace_back(std::forward<SubnetMappingsT>(value));
86 return *this;
87 }
89
91
105 inline const Aws::String& GetUpdateToken() const { return m_updateToken; }
106 template <typename UpdateTokenT = Aws::String>
107 void SetUpdateToken(UpdateTokenT&& value) {
108 m_updateTokenHasBeenSet = true;
109 m_updateToken = std::forward<UpdateTokenT>(value);
110 }
111 template <typename UpdateTokenT = Aws::String>
113 SetUpdateToken(std::forward<UpdateTokenT>(value));
114 return *this;
115 }
117
119
120 inline const Aws::String& GetRequestId() const { return m_requestId; }
121 template <typename RequestIdT = Aws::String>
122 void SetRequestId(RequestIdT&& value) {
123 m_requestIdHasBeenSet = true;
124 m_requestId = std::forward<RequestIdT>(value);
125 }
126 template <typename RequestIdT = Aws::String>
128 SetRequestId(std::forward<RequestIdT>(value));
129 return *this;
130 }
132 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
133
134 private:
135 Aws::String m_firewallArn;
136
137 Aws::String m_firewallName;
138
139 Aws::Vector<SubnetMapping> m_subnetMappings;
140
141 Aws::String m_updateToken;
142
143 Aws::String m_requestId;
144 Aws::Http::HttpResponseCode m_HttpResponseCode;
145 bool m_firewallArnHasBeenSet = false;
146 bool m_firewallNameHasBeenSet = false;
147 bool m_subnetMappingsHasBeenSet = false;
148 bool m_updateTokenHasBeenSet = false;
149 bool m_requestIdHasBeenSet = false;
150};
151
152} // namespace Model
153} // namespace NetworkFirewall
154} // namespace Aws
AWS_NETWORKFIREWALL_API AssociateSubnetsResult()=default
AssociateSubnetsResult & WithSubnetMappings(SubnetMappingsT &&value)
const Aws::Vector< SubnetMapping > & GetSubnetMappings() const
AssociateSubnetsResult & WithFirewallArn(FirewallArnT &&value)
AWS_NETWORKFIREWALL_API AssociateSubnetsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Cbor::CborValue > &result)
AssociateSubnetsResult & WithRequestId(RequestIdT &&value)
AWS_NETWORKFIREWALL_API AssociateSubnetsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Cbor::CborValue > &result)
AssociateSubnetsResult & WithFirewallName(FirewallNameT &&value)
AssociateSubnetsResult & WithUpdateToken(UpdateTokenT &&value)
AssociateSubnetsResult & AddSubnetMappings(SubnetMappingsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector