AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ConnectPeerConfiguration.h
1
6#pragma once
7#include <aws/networkmanager/NetworkManager_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/networkmanager/model/TunnelProtocol.h>
11#include <aws/networkmanager/model/ConnectPeerBgpConfiguration.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace NetworkManager
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_NETWORKMANAGER_API ConnectPeerConfiguration() = default;
39 AWS_NETWORKMANAGER_API ConnectPeerConfiguration(Aws::Utils::Json::JsonView jsonValue);
41 AWS_NETWORKMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetCoreNetworkAddress() const { return m_coreNetworkAddress; }
49 inline bool CoreNetworkAddressHasBeenSet() const { return m_coreNetworkAddressHasBeenSet; }
50 template<typename CoreNetworkAddressT = Aws::String>
51 void SetCoreNetworkAddress(CoreNetworkAddressT&& value) { m_coreNetworkAddressHasBeenSet = true; m_coreNetworkAddress = std::forward<CoreNetworkAddressT>(value); }
52 template<typename CoreNetworkAddressT = Aws::String>
53 ConnectPeerConfiguration& WithCoreNetworkAddress(CoreNetworkAddressT&& value) { SetCoreNetworkAddress(std::forward<CoreNetworkAddressT>(value)); return *this;}
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) { m_peerAddressHasBeenSet = true; m_peerAddress = std::forward<PeerAddressT>(value); }
64 template<typename PeerAddressT = Aws::String>
65 ConnectPeerConfiguration& WithPeerAddress(PeerAddressT&& value) { SetPeerAddress(std::forward<PeerAddressT>(value)); return *this;}
67
69
72 inline const Aws::Vector<Aws::String>& GetInsideCidrBlocks() const { return m_insideCidrBlocks; }
73 inline bool InsideCidrBlocksHasBeenSet() const { return m_insideCidrBlocksHasBeenSet; }
74 template<typename InsideCidrBlocksT = Aws::Vector<Aws::String>>
75 void SetInsideCidrBlocks(InsideCidrBlocksT&& value) { m_insideCidrBlocksHasBeenSet = true; m_insideCidrBlocks = std::forward<InsideCidrBlocksT>(value); }
76 template<typename InsideCidrBlocksT = Aws::Vector<Aws::String>>
77 ConnectPeerConfiguration& WithInsideCidrBlocks(InsideCidrBlocksT&& value) { SetInsideCidrBlocks(std::forward<InsideCidrBlocksT>(value)); return *this;}
78 template<typename InsideCidrBlocksT = Aws::String>
79 ConnectPeerConfiguration& AddInsideCidrBlocks(InsideCidrBlocksT&& value) { m_insideCidrBlocksHasBeenSet = true; m_insideCidrBlocks.emplace_back(std::forward<InsideCidrBlocksT>(value)); return *this; }
81
83
86 inline TunnelProtocol GetProtocol() const { return m_protocol; }
87 inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
88 inline void SetProtocol(TunnelProtocol value) { m_protocolHasBeenSet = true; m_protocol = value; }
89 inline ConnectPeerConfiguration& WithProtocol(TunnelProtocol value) { SetProtocol(value); return *this;}
91
93
96 inline const Aws::Vector<ConnectPeerBgpConfiguration>& GetBgpConfigurations() const { return m_bgpConfigurations; }
97 inline bool BgpConfigurationsHasBeenSet() const { return m_bgpConfigurationsHasBeenSet; }
98 template<typename BgpConfigurationsT = Aws::Vector<ConnectPeerBgpConfiguration>>
99 void SetBgpConfigurations(BgpConfigurationsT&& value) { m_bgpConfigurationsHasBeenSet = true; m_bgpConfigurations = std::forward<BgpConfigurationsT>(value); }
100 template<typename BgpConfigurationsT = Aws::Vector<ConnectPeerBgpConfiguration>>
101 ConnectPeerConfiguration& WithBgpConfigurations(BgpConfigurationsT&& value) { SetBgpConfigurations(std::forward<BgpConfigurationsT>(value)); return *this;}
102 template<typename BgpConfigurationsT = ConnectPeerBgpConfiguration>
103 ConnectPeerConfiguration& AddBgpConfigurations(BgpConfigurationsT&& value) { m_bgpConfigurationsHasBeenSet = true; m_bgpConfigurations.emplace_back(std::forward<BgpConfigurationsT>(value)); return *this; }
105 private:
106
107 Aws::String m_coreNetworkAddress;
108 bool m_coreNetworkAddressHasBeenSet = false;
109
110 Aws::String m_peerAddress;
111 bool m_peerAddressHasBeenSet = false;
112
113 Aws::Vector<Aws::String> m_insideCidrBlocks;
114 bool m_insideCidrBlocksHasBeenSet = false;
115
117 bool m_protocolHasBeenSet = false;
118
120 bool m_bgpConfigurationsHasBeenSet = false;
121 };
122
123} // namespace Model
124} // namespace NetworkManager
125} // 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