AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetCoreNetworkAddress(const Aws::String& value) { m_coreNetworkAddressHasBeenSet = true; m_coreNetworkAddress = value; }
51 inline void SetCoreNetworkAddress(Aws::String&& value) { m_coreNetworkAddressHasBeenSet = true; m_coreNetworkAddress = std::move(value); }
52 inline void SetCoreNetworkAddress(const char* value) { m_coreNetworkAddressHasBeenSet = true; m_coreNetworkAddress.assign(value); }
54 inline ConnectPeerConfiguration& WithCoreNetworkAddress(Aws::String&& value) { SetCoreNetworkAddress(std::move(value)); return *this;}
55 inline ConnectPeerConfiguration& WithCoreNetworkAddress(const char* value) { SetCoreNetworkAddress(value); return *this;}
57
59
62 inline const Aws::String& GetPeerAddress() const{ return m_peerAddress; }
63 inline bool PeerAddressHasBeenSet() const { return m_peerAddressHasBeenSet; }
64 inline void SetPeerAddress(const Aws::String& value) { m_peerAddressHasBeenSet = true; m_peerAddress = value; }
65 inline void SetPeerAddress(Aws::String&& value) { m_peerAddressHasBeenSet = true; m_peerAddress = std::move(value); }
66 inline void SetPeerAddress(const char* value) { m_peerAddressHasBeenSet = true; m_peerAddress.assign(value); }
67 inline ConnectPeerConfiguration& WithPeerAddress(const Aws::String& value) { SetPeerAddress(value); return *this;}
68 inline ConnectPeerConfiguration& WithPeerAddress(Aws::String&& value) { SetPeerAddress(std::move(value)); return *this;}
69 inline ConnectPeerConfiguration& WithPeerAddress(const char* value) { SetPeerAddress(value); return *this;}
71
73
76 inline const Aws::Vector<Aws::String>& GetInsideCidrBlocks() const{ return m_insideCidrBlocks; }
77 inline bool InsideCidrBlocksHasBeenSet() const { return m_insideCidrBlocksHasBeenSet; }
78 inline void SetInsideCidrBlocks(const Aws::Vector<Aws::String>& value) { m_insideCidrBlocksHasBeenSet = true; m_insideCidrBlocks = value; }
79 inline void SetInsideCidrBlocks(Aws::Vector<Aws::String>&& value) { m_insideCidrBlocksHasBeenSet = true; m_insideCidrBlocks = std::move(value); }
82 inline ConnectPeerConfiguration& AddInsideCidrBlocks(const Aws::String& value) { m_insideCidrBlocksHasBeenSet = true; m_insideCidrBlocks.push_back(value); return *this; }
83 inline ConnectPeerConfiguration& AddInsideCidrBlocks(Aws::String&& value) { m_insideCidrBlocksHasBeenSet = true; m_insideCidrBlocks.push_back(std::move(value)); return *this; }
84 inline ConnectPeerConfiguration& AddInsideCidrBlocks(const char* value) { m_insideCidrBlocksHasBeenSet = true; m_insideCidrBlocks.push_back(value); return *this; }
86
88
91 inline const TunnelProtocol& GetProtocol() const{ return m_protocol; }
92 inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
93 inline void SetProtocol(const TunnelProtocol& value) { m_protocolHasBeenSet = true; m_protocol = value; }
94 inline void SetProtocol(TunnelProtocol&& value) { m_protocolHasBeenSet = true; m_protocol = std::move(value); }
95 inline ConnectPeerConfiguration& WithProtocol(const TunnelProtocol& value) { SetProtocol(value); return *this;}
96 inline ConnectPeerConfiguration& WithProtocol(TunnelProtocol&& value) { SetProtocol(std::move(value)); return *this;}
98
100
103 inline const Aws::Vector<ConnectPeerBgpConfiguration>& GetBgpConfigurations() const{ return m_bgpConfigurations; }
104 inline bool BgpConfigurationsHasBeenSet() const { return m_bgpConfigurationsHasBeenSet; }
105 inline void SetBgpConfigurations(const Aws::Vector<ConnectPeerBgpConfiguration>& value) { m_bgpConfigurationsHasBeenSet = true; m_bgpConfigurations = value; }
106 inline void SetBgpConfigurations(Aws::Vector<ConnectPeerBgpConfiguration>&& value) { m_bgpConfigurationsHasBeenSet = true; m_bgpConfigurations = std::move(value); }
109 inline ConnectPeerConfiguration& AddBgpConfigurations(const ConnectPeerBgpConfiguration& value) { m_bgpConfigurationsHasBeenSet = true; m_bgpConfigurations.push_back(value); return *this; }
110 inline ConnectPeerConfiguration& AddBgpConfigurations(ConnectPeerBgpConfiguration&& value) { m_bgpConfigurationsHasBeenSet = true; m_bgpConfigurations.push_back(std::move(value)); return *this; }
112 private:
113
114 Aws::String m_coreNetworkAddress;
115 bool m_coreNetworkAddressHasBeenSet = false;
116
117 Aws::String m_peerAddress;
118 bool m_peerAddressHasBeenSet = false;
119
120 Aws::Vector<Aws::String> m_insideCidrBlocks;
121 bool m_insideCidrBlocksHasBeenSet = false;
122
123 TunnelProtocol m_protocol;
124 bool m_protocolHasBeenSet = false;
125
127 bool m_bgpConfigurationsHasBeenSet = false;
128 };
129
130} // namespace Model
131} // namespace NetworkManager
132} // namespace Aws
ConnectPeerConfiguration & WithCoreNetworkAddress(const Aws::String &value)
ConnectPeerConfiguration & WithBgpConfigurations(const Aws::Vector< ConnectPeerBgpConfiguration > &value)
const Aws::Vector< Aws::String > & GetInsideCidrBlocks() const
void SetInsideCidrBlocks(const Aws::Vector< Aws::String > &value)
ConnectPeerConfiguration & WithBgpConfigurations(Aws::Vector< ConnectPeerBgpConfiguration > &&value)
ConnectPeerConfiguration & WithPeerAddress(Aws::String &&value)
ConnectPeerConfiguration & WithProtocol(TunnelProtocol &&value)
ConnectPeerConfiguration & WithInsideCidrBlocks(Aws::Vector< Aws::String > &&value)
AWS_NETWORKMANAGER_API ConnectPeerConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
ConnectPeerConfiguration & WithInsideCidrBlocks(const Aws::Vector< Aws::String > &value)
ConnectPeerConfiguration & WithCoreNetworkAddress(Aws::String &&value)
ConnectPeerConfiguration & AddBgpConfigurations(const ConnectPeerBgpConfiguration &value)
void SetBgpConfigurations(Aws::Vector< ConnectPeerBgpConfiguration > &&value)
ConnectPeerConfiguration & WithPeerAddress(const char *value)
ConnectPeerConfiguration & AddInsideCidrBlocks(const Aws::String &value)
void SetInsideCidrBlocks(Aws::Vector< Aws::String > &&value)
const Aws::Vector< ConnectPeerBgpConfiguration > & GetBgpConfigurations() const
ConnectPeerConfiguration & WithCoreNetworkAddress(const char *value)
void SetBgpConfigurations(const Aws::Vector< ConnectPeerBgpConfiguration > &value)
ConnectPeerConfiguration & AddInsideCidrBlocks(const char *value)
ConnectPeerConfiguration & AddInsideCidrBlocks(Aws::String &&value)
AWS_NETWORKMANAGER_API ConnectPeerConfiguration(Aws::Utils::Json::JsonView jsonValue)
ConnectPeerConfiguration & WithProtocol(const TunnelProtocol &value)
AWS_NETWORKMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
ConnectPeerConfiguration & AddBgpConfigurations(ConnectPeerBgpConfiguration &&value)
ConnectPeerConfiguration & WithPeerAddress(const Aws::String &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