AWS SDK for C++

AWS SDK for C++ Version 1.11.933

Loading...
Searching...
No Matches
ConnectPeerConfiguration.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/networkmanager/NetworkManager_EXPORTS.h>
10#include <aws/networkmanager/model/ConnectPeerBgpConfiguration.h>
11#include <aws/networkmanager/model/TunnelProtocol.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace NetworkManager {
23namespace Model {
24
32 public:
33 AWS_NETWORKMANAGER_API ConnectPeerConfiguration() = default;
34 AWS_NETWORKMANAGER_API ConnectPeerConfiguration(Aws::Utils::Json::JsonView jsonValue);
36 AWS_NETWORKMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetCoreNetworkAddress() const { return m_coreNetworkAddress; }
43 inline bool CoreNetworkAddressHasBeenSet() const { return m_coreNetworkAddressHasBeenSet; }
44 template <typename CoreNetworkAddressT = Aws::String>
45 void SetCoreNetworkAddress(CoreNetworkAddressT&& value) {
46 m_coreNetworkAddressHasBeenSet = true;
47 m_coreNetworkAddress = std::forward<CoreNetworkAddressT>(value);
48 }
49 template <typename CoreNetworkAddressT = Aws::String>
50 ConnectPeerConfiguration& WithCoreNetworkAddress(CoreNetworkAddressT&& value) {
51 SetCoreNetworkAddress(std::forward<CoreNetworkAddressT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetPeerAddress() const { return m_peerAddress; }
61 inline bool PeerAddressHasBeenSet() const { return m_peerAddressHasBeenSet; }
62 template <typename PeerAddressT = Aws::String>
63 void SetPeerAddress(PeerAddressT&& value) {
64 m_peerAddressHasBeenSet = true;
65 m_peerAddress = std::forward<PeerAddressT>(value);
66 }
67 template <typename PeerAddressT = Aws::String>
69 SetPeerAddress(std::forward<PeerAddressT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::Vector<Aws::String>& GetInsideCidrBlocks() const { return m_insideCidrBlocks; }
79 inline bool InsideCidrBlocksHasBeenSet() const { return m_insideCidrBlocksHasBeenSet; }
80 template <typename InsideCidrBlocksT = Aws::Vector<Aws::String>>
81 void SetInsideCidrBlocks(InsideCidrBlocksT&& value) {
82 m_insideCidrBlocksHasBeenSet = true;
83 m_insideCidrBlocks = std::forward<InsideCidrBlocksT>(value);
84 }
85 template <typename InsideCidrBlocksT = Aws::Vector<Aws::String>>
86 ConnectPeerConfiguration& WithInsideCidrBlocks(InsideCidrBlocksT&& value) {
87 SetInsideCidrBlocks(std::forward<InsideCidrBlocksT>(value));
88 return *this;
89 }
90 template <typename InsideCidrBlocksT = Aws::String>
91 ConnectPeerConfiguration& AddInsideCidrBlocks(InsideCidrBlocksT&& value) {
92 m_insideCidrBlocksHasBeenSet = true;
93 m_insideCidrBlocks.emplace_back(std::forward<InsideCidrBlocksT>(value));
94 return *this;
95 }
97
99
102 inline TunnelProtocol GetProtocol() const { return m_protocol; }
103 inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
104 inline void SetProtocol(TunnelProtocol value) {
105 m_protocolHasBeenSet = true;
106 m_protocol = value;
107 }
109 SetProtocol(value);
110 return *this;
111 }
113
115
118 inline const Aws::Vector<ConnectPeerBgpConfiguration>& GetBgpConfigurations() const { return m_bgpConfigurations; }
119 inline bool BgpConfigurationsHasBeenSet() const { return m_bgpConfigurationsHasBeenSet; }
120 template <typename BgpConfigurationsT = Aws::Vector<ConnectPeerBgpConfiguration>>
121 void SetBgpConfigurations(BgpConfigurationsT&& value) {
122 m_bgpConfigurationsHasBeenSet = true;
123 m_bgpConfigurations = std::forward<BgpConfigurationsT>(value);
124 }
125 template <typename BgpConfigurationsT = Aws::Vector<ConnectPeerBgpConfiguration>>
126 ConnectPeerConfiguration& WithBgpConfigurations(BgpConfigurationsT&& value) {
127 SetBgpConfigurations(std::forward<BgpConfigurationsT>(value));
128 return *this;
129 }
130 template <typename BgpConfigurationsT = ConnectPeerBgpConfiguration>
131 ConnectPeerConfiguration& AddBgpConfigurations(BgpConfigurationsT&& value) {
132 m_bgpConfigurationsHasBeenSet = true;
133 m_bgpConfigurations.emplace_back(std::forward<BgpConfigurationsT>(value));
134 return *this;
135 }
137 private:
138 Aws::String m_coreNetworkAddress;
139
140 Aws::String m_peerAddress;
141
142 Aws::Vector<Aws::String> m_insideCidrBlocks;
143
145
147 bool m_coreNetworkAddressHasBeenSet = false;
148 bool m_peerAddressHasBeenSet = false;
149 bool m_insideCidrBlocksHasBeenSet = false;
150 bool m_protocolHasBeenSet = false;
151 bool m_bgpConfigurationsHasBeenSet = false;
152};
153
154} // namespace Model
155} // namespace NetworkManager
156} // namespace Aws
AWS_NETWORKMANAGER_API ConnectPeerConfiguration()=default
const Aws::Vector< Aws::String > & GetInsideCidrBlocks() const
ConnectPeerConfiguration & WithInsideCidrBlocks(InsideCidrBlocksT &&value)
ConnectPeerConfiguration & WithCoreNetworkAddress(CoreNetworkAddressT &&value)
AWS_NETWORKMANAGER_API ConnectPeerConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
ConnectPeerConfiguration & WithBgpConfigurations(BgpConfigurationsT &&value)
const Aws::Vector< ConnectPeerBgpConfiguration > & GetBgpConfigurations() const
ConnectPeerConfiguration & AddBgpConfigurations(BgpConfigurationsT &&value)
ConnectPeerConfiguration & WithPeerAddress(PeerAddressT &&value)
AWS_NETWORKMANAGER_API ConnectPeerConfiguration(Aws::Utils::Json::JsonView jsonValue)
ConnectPeerConfiguration & WithProtocol(TunnelProtocol value)
AWS_NETWORKMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
ConnectPeerConfiguration & AddInsideCidrBlocks(InsideCidrBlocksT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue