AWS SDK for C++

AWS SDK for C++ Version 1.11.944

Loading...
Searching...
No Matches
NatGatewayCreateMapping.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
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Cbor {
17class CborValue;
18} // namespace Cbor
19} // namespace Utils
20namespace NetworkFirewall {
21namespace Model {
22
37 public:
38 AWS_NETWORKFIREWALL_API NatGatewayCreateMapping() = default;
39 AWS_NETWORKFIREWALL_API NatGatewayCreateMapping(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
40 AWS_NETWORKFIREWALL_API NatGatewayCreateMapping& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
41 AWS_NETWORKFIREWALL_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
42
44
49 inline const Aws::String& GetSubnetId() const { return m_subnetId; }
50 inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; }
51 template <typename SubnetIdT = Aws::String>
52 void SetSubnetId(SubnetIdT&& value) {
53 m_subnetIdHasBeenSet = true;
54 m_subnetId = std::forward<SubnetIdT>(value);
55 }
56 template <typename SubnetIdT = Aws::String>
58 SetSubnetId(std::forward<SubnetIdT>(value));
59 return *this;
60 }
62
64
69 inline const Aws::Vector<Aws::String>& GetAllocationIds() const { return m_allocationIds; }
70 inline bool AllocationIdsHasBeenSet() const { return m_allocationIdsHasBeenSet; }
71 template <typename AllocationIdsT = Aws::Vector<Aws::String>>
72 void SetAllocationIds(AllocationIdsT&& value) {
73 m_allocationIdsHasBeenSet = true;
74 m_allocationIds = std::forward<AllocationIdsT>(value);
75 }
76 template <typename AllocationIdsT = Aws::Vector<Aws::String>>
77 NatGatewayCreateMapping& WithAllocationIds(AllocationIdsT&& value) {
78 SetAllocationIds(std::forward<AllocationIdsT>(value));
79 return *this;
80 }
81 template <typename AllocationIdsT = Aws::String>
82 NatGatewayCreateMapping& AddAllocationIds(AllocationIdsT&& value) {
83 m_allocationIdsHasBeenSet = true;
84 m_allocationIds.emplace_back(std::forward<AllocationIdsT>(value));
85 return *this;
86 }
88
90
98 inline const Aws::Vector<Aws::String>& GetPrivateIps() const { return m_privateIps; }
99 inline bool PrivateIpsHasBeenSet() const { return m_privateIpsHasBeenSet; }
100 template <typename PrivateIpsT = Aws::Vector<Aws::String>>
101 void SetPrivateIps(PrivateIpsT&& value) {
102 m_privateIpsHasBeenSet = true;
103 m_privateIps = std::forward<PrivateIpsT>(value);
104 }
105 template <typename PrivateIpsT = Aws::Vector<Aws::String>>
107 SetPrivateIps(std::forward<PrivateIpsT>(value));
108 return *this;
109 }
110 template <typename PrivateIpsT = Aws::String>
112 m_privateIpsHasBeenSet = true;
113 m_privateIps.emplace_back(std::forward<PrivateIpsT>(value));
114 return *this;
115 }
117 private:
118 Aws::String m_subnetId;
119
120 Aws::Vector<Aws::String> m_allocationIds;
121
122 Aws::Vector<Aws::String> m_privateIps;
123 bool m_subnetIdHasBeenSet = false;
124 bool m_allocationIdsHasBeenSet = false;
125 bool m_privateIpsHasBeenSet = false;
126};
127
128} // namespace Model
129} // namespace NetworkFirewall
130} // namespace Aws
NatGatewayCreateMapping & AddPrivateIps(PrivateIpsT &&value)
AWS_NETWORKFIREWALL_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
AWS_NETWORKFIREWALL_API NatGatewayCreateMapping()=default
const Aws::Vector< Aws::String > & GetPrivateIps() const
NatGatewayCreateMapping & WithPrivateIps(PrivateIpsT &&value)
NatGatewayCreateMapping & WithSubnetId(SubnetIdT &&value)
AWS_NETWORKFIREWALL_API NatGatewayCreateMapping(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
NatGatewayCreateMapping & AddAllocationIds(AllocationIdsT &&value)
NatGatewayCreateMapping & WithAllocationIds(AllocationIdsT &&value)
const Aws::Vector< Aws::String > & GetAllocationIds() const
AWS_NETWORKFIREWALL_API NatGatewayCreateMapping & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector