AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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 inline void SetTransitGatewayAddress(const Aws::String& value) { m_transitGatewayAddressHasBeenSet = true; m_transitGatewayAddress = value; }
52 inline void SetTransitGatewayAddress(Aws::String&& value) { m_transitGatewayAddressHasBeenSet = true; m_transitGatewayAddress = std::move(value); }
53 inline void SetTransitGatewayAddress(const char* value) { m_transitGatewayAddressHasBeenSet = true; m_transitGatewayAddress.assign(value); }
58
60
63 inline const Aws::String& GetPeerAddress() const{ return m_peerAddress; }
64 inline bool PeerAddressHasBeenSet() const { return m_peerAddressHasBeenSet; }
65 inline void SetPeerAddress(const Aws::String& value) { m_peerAddressHasBeenSet = true; m_peerAddress = value; }
66 inline void SetPeerAddress(Aws::String&& value) { m_peerAddressHasBeenSet = true; m_peerAddress = std::move(value); }
67 inline void SetPeerAddress(const char* value) { m_peerAddressHasBeenSet = true; m_peerAddress.assign(value); }
69 inline TransitGatewayConnectPeerConfiguration& WithPeerAddress(Aws::String&& value) { SetPeerAddress(std::move(value)); return *this;}
70 inline TransitGatewayConnectPeerConfiguration& WithPeerAddress(const char* value) { SetPeerAddress(value); return *this;}
72
74
77 inline const Aws::Vector<Aws::String>& GetInsideCidrBlocks() const{ return m_insideCidrBlocks; }
78 inline bool InsideCidrBlocksHasBeenSet() const { return m_insideCidrBlocksHasBeenSet; }
79 inline void SetInsideCidrBlocks(const Aws::Vector<Aws::String>& value) { m_insideCidrBlocksHasBeenSet = true; m_insideCidrBlocks = value; }
80 inline void SetInsideCidrBlocks(Aws::Vector<Aws::String>&& value) { m_insideCidrBlocksHasBeenSet = true; m_insideCidrBlocks = std::move(value); }
83 inline TransitGatewayConnectPeerConfiguration& AddInsideCidrBlocks(const Aws::String& value) { m_insideCidrBlocksHasBeenSet = true; m_insideCidrBlocks.push_back(value); return *this; }
84 inline TransitGatewayConnectPeerConfiguration& AddInsideCidrBlocks(Aws::String&& value) { m_insideCidrBlocksHasBeenSet = true; m_insideCidrBlocks.push_back(std::move(value)); return *this; }
85 inline TransitGatewayConnectPeerConfiguration& AddInsideCidrBlocks(const char* value) { m_insideCidrBlocksHasBeenSet = true; m_insideCidrBlocks.push_back(value); return *this; }
87
89
92 inline const ProtocolValue& GetProtocol() const{ return m_protocol; }
93 inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
94 inline void SetProtocol(const ProtocolValue& value) { m_protocolHasBeenSet = true; m_protocol = value; }
95 inline void SetProtocol(ProtocolValue&& value) { m_protocolHasBeenSet = true; m_protocol = std::move(value); }
97 inline TransitGatewayConnectPeerConfiguration& WithProtocol(ProtocolValue&& value) { SetProtocol(std::move(value)); return *this;}
99
101
104 inline const Aws::Vector<TransitGatewayAttachmentBgpConfiguration>& GetBgpConfigurations() const{ return m_bgpConfigurations; }
105 inline bool BgpConfigurationsHasBeenSet() const { return m_bgpConfigurationsHasBeenSet; }
106 inline void SetBgpConfigurations(const Aws::Vector<TransitGatewayAttachmentBgpConfiguration>& value) { m_bgpConfigurationsHasBeenSet = true; m_bgpConfigurations = value; }
107 inline void SetBgpConfigurations(Aws::Vector<TransitGatewayAttachmentBgpConfiguration>&& value) { m_bgpConfigurationsHasBeenSet = true; m_bgpConfigurations = std::move(value); }
110 inline TransitGatewayConnectPeerConfiguration& AddBgpConfigurations(const TransitGatewayAttachmentBgpConfiguration& value) { m_bgpConfigurationsHasBeenSet = true; m_bgpConfigurations.push_back(value); return *this; }
111 inline TransitGatewayConnectPeerConfiguration& AddBgpConfigurations(TransitGatewayAttachmentBgpConfiguration&& value) { m_bgpConfigurationsHasBeenSet = true; m_bgpConfigurations.push_back(std::move(value)); return *this; }
113 private:
114
115 Aws::String m_transitGatewayAddress;
116 bool m_transitGatewayAddressHasBeenSet = false;
117
118 Aws::String m_peerAddress;
119 bool m_peerAddressHasBeenSet = false;
120
121 Aws::Vector<Aws::String> m_insideCidrBlocks;
122 bool m_insideCidrBlocksHasBeenSet = false;
123
124 ProtocolValue m_protocol;
125 bool m_protocolHasBeenSet = false;
126
128 bool m_bgpConfigurationsHasBeenSet = false;
129 };
130
131} // namespace Model
132} // namespace EC2
133} // namespace Aws
AWS_EC2_API TransitGatewayConnectPeerConfiguration & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
TransitGatewayConnectPeerConfiguration & WithPeerAddress(Aws::String &&value)
TransitGatewayConnectPeerConfiguration & WithProtocol(const ProtocolValue &value)
TransitGatewayConnectPeerConfiguration & WithBgpConfigurations(const Aws::Vector< TransitGatewayAttachmentBgpConfiguration > &value)
TransitGatewayConnectPeerConfiguration & WithTransitGatewayAddress(const Aws::String &value)
TransitGatewayConnectPeerConfiguration & AddBgpConfigurations(const TransitGatewayAttachmentBgpConfiguration &value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
TransitGatewayConnectPeerConfiguration & WithPeerAddress(const char *value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
TransitGatewayConnectPeerConfiguration & AddInsideCidrBlocks(const char *value)
TransitGatewayConnectPeerConfiguration & WithInsideCidrBlocks(Aws::Vector< Aws::String > &&value)
TransitGatewayConnectPeerConfiguration & WithPeerAddress(const Aws::String &value)
TransitGatewayConnectPeerConfiguration & AddInsideCidrBlocks(Aws::String &&value)
void SetBgpConfigurations(const Aws::Vector< TransitGatewayAttachmentBgpConfiguration > &value)
TransitGatewayConnectPeerConfiguration & WithBgpConfigurations(Aws::Vector< TransitGatewayAttachmentBgpConfiguration > &&value)
TransitGatewayConnectPeerConfiguration & WithProtocol(ProtocolValue &&value)
TransitGatewayConnectPeerConfiguration & WithTransitGatewayAddress(const char *value)
TransitGatewayConnectPeerConfiguration & AddInsideCidrBlocks(const Aws::String &value)
TransitGatewayConnectPeerConfiguration & WithInsideCidrBlocks(const Aws::Vector< Aws::String > &value)
TransitGatewayConnectPeerConfiguration & AddBgpConfigurations(TransitGatewayAttachmentBgpConfiguration &&value)
void SetBgpConfigurations(Aws::Vector< TransitGatewayAttachmentBgpConfiguration > &&value)
const Aws::Vector< TransitGatewayAttachmentBgpConfiguration > & GetBgpConfigurations() const
AWS_EC2_API TransitGatewayConnectPeerConfiguration(const Aws::Utils::Xml::XmlNode &xmlNode)
TransitGatewayConnectPeerConfiguration & WithTransitGatewayAddress(Aws::String &&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