AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
TransitGatewayConnectPeerConfiguration.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/ec2/model/ProtocolValue.h>
12#include <aws/ec2/model/TransitGatewayAttachmentBgpConfiguration.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Xml
20{
21 class XmlNode;
22} // namespace Xml
23} // namespace Utils
24namespace EC2
25{
26namespace Model
27{
28
35 {
36 public:
40
41 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
43
44
46
49 inline const Aws::String& GetTransitGatewayAddress() const { return m_transitGatewayAddress; }
50 inline bool TransitGatewayAddressHasBeenSet() const { return m_transitGatewayAddressHasBeenSet; }
51 template<typename TransitGatewayAddressT = Aws::String>
52 void SetTransitGatewayAddress(TransitGatewayAddressT&& value) { m_transitGatewayAddressHasBeenSet = true; m_transitGatewayAddress = std::forward<TransitGatewayAddressT>(value); }
53 template<typename TransitGatewayAddressT = Aws::String>
54 TransitGatewayConnectPeerConfiguration& WithTransitGatewayAddress(TransitGatewayAddressT&& value) { SetTransitGatewayAddress(std::forward<TransitGatewayAddressT>(value)); return *this;}
56
58
61 inline const Aws::String& GetPeerAddress() const { return m_peerAddress; }
62 inline bool PeerAddressHasBeenSet() const { return m_peerAddressHasBeenSet; }
63 template<typename PeerAddressT = Aws::String>
64 void SetPeerAddress(PeerAddressT&& value) { m_peerAddressHasBeenSet = true; m_peerAddress = std::forward<PeerAddressT>(value); }
65 template<typename PeerAddressT = Aws::String>
66 TransitGatewayConnectPeerConfiguration& WithPeerAddress(PeerAddressT&& value) { SetPeerAddress(std::forward<PeerAddressT>(value)); return *this;}
68
70
73 inline const Aws::Vector<Aws::String>& GetInsideCidrBlocks() const { return m_insideCidrBlocks; }
74 inline bool InsideCidrBlocksHasBeenSet() const { return m_insideCidrBlocksHasBeenSet; }
75 template<typename InsideCidrBlocksT = Aws::Vector<Aws::String>>
76 void SetInsideCidrBlocks(InsideCidrBlocksT&& value) { m_insideCidrBlocksHasBeenSet = true; m_insideCidrBlocks = std::forward<InsideCidrBlocksT>(value); }
77 template<typename InsideCidrBlocksT = Aws::Vector<Aws::String>>
78 TransitGatewayConnectPeerConfiguration& WithInsideCidrBlocks(InsideCidrBlocksT&& value) { SetInsideCidrBlocks(std::forward<InsideCidrBlocksT>(value)); return *this;}
79 template<typename InsideCidrBlocksT = Aws::String>
80 TransitGatewayConnectPeerConfiguration& AddInsideCidrBlocks(InsideCidrBlocksT&& value) { m_insideCidrBlocksHasBeenSet = true; m_insideCidrBlocks.emplace_back(std::forward<InsideCidrBlocksT>(value)); return *this; }
82
84
87 inline ProtocolValue GetProtocol() const { return m_protocol; }
88 inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
89 inline void SetProtocol(ProtocolValue value) { m_protocolHasBeenSet = true; m_protocol = value; }
92
94
97 inline const Aws::Vector<TransitGatewayAttachmentBgpConfiguration>& GetBgpConfigurations() const { return m_bgpConfigurations; }
98 inline bool BgpConfigurationsHasBeenSet() const { return m_bgpConfigurationsHasBeenSet; }
99 template<typename BgpConfigurationsT = Aws::Vector<TransitGatewayAttachmentBgpConfiguration>>
100 void SetBgpConfigurations(BgpConfigurationsT&& value) { m_bgpConfigurationsHasBeenSet = true; m_bgpConfigurations = std::forward<BgpConfigurationsT>(value); }
101 template<typename BgpConfigurationsT = Aws::Vector<TransitGatewayAttachmentBgpConfiguration>>
102 TransitGatewayConnectPeerConfiguration& WithBgpConfigurations(BgpConfigurationsT&& value) { SetBgpConfigurations(std::forward<BgpConfigurationsT>(value)); return *this;}
103 template<typename BgpConfigurationsT = TransitGatewayAttachmentBgpConfiguration>
104 TransitGatewayConnectPeerConfiguration& AddBgpConfigurations(BgpConfigurationsT&& value) { m_bgpConfigurationsHasBeenSet = true; m_bgpConfigurations.emplace_back(std::forward<BgpConfigurationsT>(value)); return *this; }
106 private:
107
108 Aws::String m_transitGatewayAddress;
109 bool m_transitGatewayAddressHasBeenSet = false;
110
111 Aws::String m_peerAddress;
112 bool m_peerAddressHasBeenSet = false;
113
114 Aws::Vector<Aws::String> m_insideCidrBlocks;
115 bool m_insideCidrBlocksHasBeenSet = false;
116
118 bool m_protocolHasBeenSet = false;
119
121 bool m_bgpConfigurationsHasBeenSet = false;
122 };
123
124} // namespace Model
125} // namespace EC2
126} // namespace Aws
AWS_EC2_API TransitGatewayConnectPeerConfiguration & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
TransitGatewayConnectPeerConfiguration & WithInsideCidrBlocks(InsideCidrBlocksT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
TransitGatewayConnectPeerConfiguration & WithProtocol(ProtocolValue value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
TransitGatewayConnectPeerConfiguration & AddInsideCidrBlocks(InsideCidrBlocksT &&value)
TransitGatewayConnectPeerConfiguration & WithTransitGatewayAddress(TransitGatewayAddressT &&value)
TransitGatewayConnectPeerConfiguration & WithBgpConfigurations(BgpConfigurationsT &&value)
TransitGatewayConnectPeerConfiguration & WithPeerAddress(PeerAddressT &&value)
const Aws::Vector< TransitGatewayAttachmentBgpConfiguration > & GetBgpConfigurations() const
AWS_EC2_API TransitGatewayConnectPeerConfiguration(const Aws::Utils::Xml::XmlNode &xmlNode)
TransitGatewayConnectPeerConfiguration & AddBgpConfigurations(BgpConfigurationsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream