AWS SDK for C++

AWS SDK for C++ Version 1.11.944

Loading...
Searching...
No Matches
VpcEndpoint.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
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Cbor {
18class CborValue;
19} // namespace Cbor
20} // namespace Utils
21namespace NetworkFirewall {
22namespace Model {
23
34 public:
35 AWS_NETWORKFIREWALL_API VpcEndpoint() = default;
36 AWS_NETWORKFIREWALL_API VpcEndpoint(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
37 AWS_NETWORKFIREWALL_API VpcEndpoint& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
38 AWS_NETWORKFIREWALL_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
39
41
45 inline const Aws::String& GetVpcId() const { return m_vpcId; }
46 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
47 template <typename VpcIdT = Aws::String>
48 void SetVpcId(VpcIdT&& value) {
49 m_vpcIdHasBeenSet = true;
50 m_vpcId = std::forward<VpcIdT>(value);
51 }
52 template <typename VpcIdT = Aws::String>
53 VpcEndpoint& WithVpcId(VpcIdT&& value) {
54 SetVpcId(std::forward<VpcIdT>(value));
55 return *this;
56 }
58
60
65 inline const Aws::Vector<SubnetMapping>& GetSubnetMappings() const { return m_subnetMappings; }
66 inline bool SubnetMappingsHasBeenSet() const { return m_subnetMappingsHasBeenSet; }
67 template <typename SubnetMappingsT = Aws::Vector<SubnetMapping>>
68 void SetSubnetMappings(SubnetMappingsT&& value) {
69 m_subnetMappingsHasBeenSet = true;
70 m_subnetMappings = std::forward<SubnetMappingsT>(value);
71 }
72 template <typename SubnetMappingsT = Aws::Vector<SubnetMapping>>
73 VpcEndpoint& WithSubnetMappings(SubnetMappingsT&& value) {
74 SetSubnetMappings(std::forward<SubnetMappingsT>(value));
75 return *this;
76 }
77 template <typename SubnetMappingsT = SubnetMapping>
78 VpcEndpoint& AddSubnetMappings(SubnetMappingsT&& value) {
79 m_subnetMappingsHasBeenSet = true;
80 m_subnetMappings.emplace_back(std::forward<SubnetMappingsT>(value));
81 return *this;
82 }
84 private:
85 Aws::String m_vpcId;
86
87 Aws::Vector<SubnetMapping> m_subnetMappings;
88 bool m_vpcIdHasBeenSet = false;
89 bool m_subnetMappingsHasBeenSet = false;
90};
91
92} // namespace Model
93} // namespace NetworkFirewall
94} // namespace Aws
AWS_NETWORKFIREWALL_API VpcEndpoint()=default
VpcEndpoint & WithVpcId(VpcIdT &&value)
Definition VpcEndpoint.h:53
VpcEndpoint & WithSubnetMappings(SubnetMappingsT &&value)
Definition VpcEndpoint.h:73
AWS_NETWORKFIREWALL_API VpcEndpoint(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
const Aws::String & GetVpcId() const
Definition VpcEndpoint.h:45
VpcEndpoint & AddSubnetMappings(SubnetMappingsT &&value)
Definition VpcEndpoint.h:78
AWS_NETWORKFIREWALL_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
AWS_NETWORKFIREWALL_API VpcEndpoint & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
void SetSubnetMappings(SubnetMappingsT &&value)
Definition VpcEndpoint.h:68
const Aws::Vector< SubnetMapping > & GetSubnetMappings() const
Definition VpcEndpoint.h:65
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector