AWS SDK for C++

AWS SDK for C++ Version 1.11.944

Loading...
Searching...
No Matches
VpcEndpointAssociation.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/crt/cbor/Cbor.h>
10#include <aws/network-firewall/NetworkFirewall_EXPORTS.h>
11#include <aws/network-firewall/model/SubnetMapping.h>
12#include <aws/network-firewall/model/Tag.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Cbor {
19class CborValue;
20} // namespace Cbor
21} // namespace Utils
22namespace NetworkFirewall {
23namespace Model {
24
61 public:
62 AWS_NETWORKFIREWALL_API VpcEndpointAssociation() = default;
63 AWS_NETWORKFIREWALL_API VpcEndpointAssociation(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
64 AWS_NETWORKFIREWALL_API VpcEndpointAssociation& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
65 AWS_NETWORKFIREWALL_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
66
68
71 inline const Aws::String& GetVpcEndpointAssociationId() const { return m_vpcEndpointAssociationId; }
72 inline bool VpcEndpointAssociationIdHasBeenSet() const { return m_vpcEndpointAssociationIdHasBeenSet; }
73 template <typename VpcEndpointAssociationIdT = Aws::String>
74 void SetVpcEndpointAssociationId(VpcEndpointAssociationIdT&& value) {
75 m_vpcEndpointAssociationIdHasBeenSet = true;
76 m_vpcEndpointAssociationId = std::forward<VpcEndpointAssociationIdT>(value);
77 }
78 template <typename VpcEndpointAssociationIdT = Aws::String>
79 VpcEndpointAssociation& WithVpcEndpointAssociationId(VpcEndpointAssociationIdT&& value) {
80 SetVpcEndpointAssociationId(std::forward<VpcEndpointAssociationIdT>(value));
81 return *this;
82 }
84
86
89 inline const Aws::String& GetVpcEndpointAssociationArn() const { return m_vpcEndpointAssociationArn; }
90 inline bool VpcEndpointAssociationArnHasBeenSet() const { return m_vpcEndpointAssociationArnHasBeenSet; }
91 template <typename VpcEndpointAssociationArnT = Aws::String>
92 void SetVpcEndpointAssociationArn(VpcEndpointAssociationArnT&& value) {
93 m_vpcEndpointAssociationArnHasBeenSet = true;
94 m_vpcEndpointAssociationArn = std::forward<VpcEndpointAssociationArnT>(value);
95 }
96 template <typename VpcEndpointAssociationArnT = Aws::String>
97 VpcEndpointAssociation& WithVpcEndpointAssociationArn(VpcEndpointAssociationArnT&& value) {
98 SetVpcEndpointAssociationArn(std::forward<VpcEndpointAssociationArnT>(value));
99 return *this;
100 }
102
104
107 inline const Aws::String& GetFirewallArn() const { return m_firewallArn; }
108 inline bool FirewallArnHasBeenSet() const { return m_firewallArnHasBeenSet; }
109 template <typename FirewallArnT = Aws::String>
110 void SetFirewallArn(FirewallArnT&& value) {
111 m_firewallArnHasBeenSet = true;
112 m_firewallArn = std::forward<FirewallArnT>(value);
113 }
114 template <typename FirewallArnT = Aws::String>
116 SetFirewallArn(std::forward<FirewallArnT>(value));
117 return *this;
118 }
120
122
125 inline const Aws::String& GetVpcId() const { return m_vpcId; }
126 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
127 template <typename VpcIdT = Aws::String>
128 void SetVpcId(VpcIdT&& value) {
129 m_vpcIdHasBeenSet = true;
130 m_vpcId = std::forward<VpcIdT>(value);
131 }
132 template <typename VpcIdT = Aws::String>
134 SetVpcId(std::forward<VpcIdT>(value));
135 return *this;
136 }
138
140
141 inline const SubnetMapping& GetSubnetMapping() const { return m_subnetMapping; }
142 inline bool SubnetMappingHasBeenSet() const { return m_subnetMappingHasBeenSet; }
143 template <typename SubnetMappingT = SubnetMapping>
144 void SetSubnetMapping(SubnetMappingT&& value) {
145 m_subnetMappingHasBeenSet = true;
146 m_subnetMapping = std::forward<SubnetMappingT>(value);
147 }
148 template <typename SubnetMappingT = SubnetMapping>
149 VpcEndpointAssociation& WithSubnetMapping(SubnetMappingT&& value) {
150 SetSubnetMapping(std::forward<SubnetMappingT>(value));
151 return *this;
152 }
154
156
159 inline const Aws::String& GetDescription() const { return m_description; }
160 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
161 template <typename DescriptionT = Aws::String>
162 void SetDescription(DescriptionT&& value) {
163 m_descriptionHasBeenSet = true;
164 m_description = std::forward<DescriptionT>(value);
165 }
166 template <typename DescriptionT = Aws::String>
168 SetDescription(std::forward<DescriptionT>(value));
169 return *this;
170 }
172
174
177 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
178 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
179 template <typename TagsT = Aws::Vector<Tag>>
180 void SetTags(TagsT&& value) {
181 m_tagsHasBeenSet = true;
182 m_tags = std::forward<TagsT>(value);
183 }
184 template <typename TagsT = Aws::Vector<Tag>>
186 SetTags(std::forward<TagsT>(value));
187 return *this;
188 }
189 template <typename TagsT = Tag>
191 m_tagsHasBeenSet = true;
192 m_tags.emplace_back(std::forward<TagsT>(value));
193 return *this;
194 }
196 private:
197 Aws::String m_vpcEndpointAssociationId;
198
199 Aws::String m_vpcEndpointAssociationArn;
200
201 Aws::String m_firewallArn;
202
203 Aws::String m_vpcId;
204
205 SubnetMapping m_subnetMapping;
206
207 Aws::String m_description;
208
209 Aws::Vector<Tag> m_tags;
210 bool m_vpcEndpointAssociationIdHasBeenSet = false;
211 bool m_vpcEndpointAssociationArnHasBeenSet = false;
212 bool m_firewallArnHasBeenSet = false;
213 bool m_vpcIdHasBeenSet = false;
214 bool m_subnetMappingHasBeenSet = false;
215 bool m_descriptionHasBeenSet = false;
216 bool m_tagsHasBeenSet = false;
217};
218
219} // namespace Model
220} // namespace NetworkFirewall
221} // namespace Aws
VpcEndpointAssociation & WithVpcEndpointAssociationArn(VpcEndpointAssociationArnT &&value)
void SetVpcEndpointAssociationArn(VpcEndpointAssociationArnT &&value)
VpcEndpointAssociation & WithFirewallArn(FirewallArnT &&value)
void SetVpcEndpointAssociationId(VpcEndpointAssociationIdT &&value)
AWS_NETWORKFIREWALL_API VpcEndpointAssociation()=default
AWS_NETWORKFIREWALL_API VpcEndpointAssociation & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_NETWORKFIREWALL_API VpcEndpointAssociation(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
VpcEndpointAssociation & WithVpcEndpointAssociationId(VpcEndpointAssociationIdT &&value)
VpcEndpointAssociation & WithSubnetMapping(SubnetMappingT &&value)
AWS_NETWORKFIREWALL_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
VpcEndpointAssociation & WithDescription(DescriptionT &&value)
VpcEndpointAssociation & WithVpcId(VpcIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector