AWS SDK for C++  1.9.67
AWS SDK for C++
TransitGatewayConnectPeerConfiguration.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace Utils
18 {
19 namespace Xml
20 {
21  class XmlNode;
22 } // namespace Xml
23 } // namespace Utils
24 namespace EC2
25 {
26 namespace Model
27 {
28 
35  {
36  public:
40 
41  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42  void OutputToStream(Aws::OStream& oStream, const char* location) const;
43 
44 
48  inline const Aws::String& GetTransitGatewayAddress() const{ return m_transitGatewayAddress; }
49 
53  inline bool TransitGatewayAddressHasBeenSet() const { return m_transitGatewayAddressHasBeenSet; }
54 
58  inline void SetTransitGatewayAddress(const Aws::String& value) { m_transitGatewayAddressHasBeenSet = true; m_transitGatewayAddress = value; }
59 
63  inline void SetTransitGatewayAddress(Aws::String&& value) { m_transitGatewayAddressHasBeenSet = true; m_transitGatewayAddress = std::move(value); }
64 
68  inline void SetTransitGatewayAddress(const char* value) { m_transitGatewayAddressHasBeenSet = true; m_transitGatewayAddress.assign(value); }
69 
73  inline TransitGatewayConnectPeerConfiguration& WithTransitGatewayAddress(const Aws::String& value) { SetTransitGatewayAddress(value); return *this;}
74 
78  inline TransitGatewayConnectPeerConfiguration& WithTransitGatewayAddress(Aws::String&& value) { SetTransitGatewayAddress(std::move(value)); return *this;}
79 
83  inline TransitGatewayConnectPeerConfiguration& WithTransitGatewayAddress(const char* value) { SetTransitGatewayAddress(value); return *this;}
84 
85 
89  inline const Aws::String& GetPeerAddress() const{ return m_peerAddress; }
90 
94  inline bool PeerAddressHasBeenSet() const { return m_peerAddressHasBeenSet; }
95 
99  inline void SetPeerAddress(const Aws::String& value) { m_peerAddressHasBeenSet = true; m_peerAddress = value; }
100 
104  inline void SetPeerAddress(Aws::String&& value) { m_peerAddressHasBeenSet = true; m_peerAddress = std::move(value); }
105 
109  inline void SetPeerAddress(const char* value) { m_peerAddressHasBeenSet = true; m_peerAddress.assign(value); }
110 
114  inline TransitGatewayConnectPeerConfiguration& WithPeerAddress(const Aws::String& value) { SetPeerAddress(value); return *this;}
115 
119  inline TransitGatewayConnectPeerConfiguration& WithPeerAddress(Aws::String&& value) { SetPeerAddress(std::move(value)); return *this;}
120 
124  inline TransitGatewayConnectPeerConfiguration& WithPeerAddress(const char* value) { SetPeerAddress(value); return *this;}
125 
126 
130  inline const Aws::Vector<Aws::String>& GetInsideCidrBlocks() const{ return m_insideCidrBlocks; }
131 
135  inline bool InsideCidrBlocksHasBeenSet() const { return m_insideCidrBlocksHasBeenSet; }
136 
140  inline void SetInsideCidrBlocks(const Aws::Vector<Aws::String>& value) { m_insideCidrBlocksHasBeenSet = true; m_insideCidrBlocks = value; }
141 
145  inline void SetInsideCidrBlocks(Aws::Vector<Aws::String>&& value) { m_insideCidrBlocksHasBeenSet = true; m_insideCidrBlocks = std::move(value); }
146 
150  inline TransitGatewayConnectPeerConfiguration& WithInsideCidrBlocks(const Aws::Vector<Aws::String>& value) { SetInsideCidrBlocks(value); return *this;}
151 
155  inline TransitGatewayConnectPeerConfiguration& WithInsideCidrBlocks(Aws::Vector<Aws::String>&& value) { SetInsideCidrBlocks(std::move(value)); return *this;}
156 
160  inline TransitGatewayConnectPeerConfiguration& AddInsideCidrBlocks(const Aws::String& value) { m_insideCidrBlocksHasBeenSet = true; m_insideCidrBlocks.push_back(value); return *this; }
161 
165  inline TransitGatewayConnectPeerConfiguration& AddInsideCidrBlocks(Aws::String&& value) { m_insideCidrBlocksHasBeenSet = true; m_insideCidrBlocks.push_back(std::move(value)); return *this; }
166 
170  inline TransitGatewayConnectPeerConfiguration& AddInsideCidrBlocks(const char* value) { m_insideCidrBlocksHasBeenSet = true; m_insideCidrBlocks.push_back(value); return *this; }
171 
172 
176  inline const ProtocolValue& GetProtocol() const{ return m_protocol; }
177 
181  inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
182 
186  inline void SetProtocol(const ProtocolValue& value) { m_protocolHasBeenSet = true; m_protocol = value; }
187 
191  inline void SetProtocol(ProtocolValue&& value) { m_protocolHasBeenSet = true; m_protocol = std::move(value); }
192 
196  inline TransitGatewayConnectPeerConfiguration& WithProtocol(const ProtocolValue& value) { SetProtocol(value); return *this;}
197 
201  inline TransitGatewayConnectPeerConfiguration& WithProtocol(ProtocolValue&& value) { SetProtocol(std::move(value)); return *this;}
202 
203 
207  inline const Aws::Vector<TransitGatewayAttachmentBgpConfiguration>& GetBgpConfigurations() const{ return m_bgpConfigurations; }
208 
212  inline bool BgpConfigurationsHasBeenSet() const { return m_bgpConfigurationsHasBeenSet; }
213 
217  inline void SetBgpConfigurations(const Aws::Vector<TransitGatewayAttachmentBgpConfiguration>& value) { m_bgpConfigurationsHasBeenSet = true; m_bgpConfigurations = value; }
218 
222  inline void SetBgpConfigurations(Aws::Vector<TransitGatewayAttachmentBgpConfiguration>&& value) { m_bgpConfigurationsHasBeenSet = true; m_bgpConfigurations = std::move(value); }
223 
228 
232  inline TransitGatewayConnectPeerConfiguration& WithBgpConfigurations(Aws::Vector<TransitGatewayAttachmentBgpConfiguration>&& value) { SetBgpConfigurations(std::move(value)); return *this;}
233 
237  inline TransitGatewayConnectPeerConfiguration& AddBgpConfigurations(const TransitGatewayAttachmentBgpConfiguration& value) { m_bgpConfigurationsHasBeenSet = true; m_bgpConfigurations.push_back(value); return *this; }
238 
242  inline TransitGatewayConnectPeerConfiguration& AddBgpConfigurations(TransitGatewayAttachmentBgpConfiguration&& value) { m_bgpConfigurationsHasBeenSet = true; m_bgpConfigurations.push_back(std::move(value)); return *this; }
243 
244  private:
245 
246  Aws::String m_transitGatewayAddress;
247  bool m_transitGatewayAddressHasBeenSet;
248 
249  Aws::String m_peerAddress;
250  bool m_peerAddressHasBeenSet;
251 
252  Aws::Vector<Aws::String> m_insideCidrBlocks;
253  bool m_insideCidrBlocksHasBeenSet;
254 
255  ProtocolValue m_protocol;
256  bool m_protocolHasBeenSet;
257 
259  bool m_bgpConfigurationsHasBeenSet;
260  };
261 
262 } // namespace Model
263 } // namespace EC2
264 } // namespace Aws
Aws::EC2::Model::TransitGatewayConnectPeerConfiguration::SetProtocol
void SetProtocol(ProtocolValue &&value)
Definition: TransitGatewayConnectPeerConfiguration.h:191
Aws::EC2::Model::TransitGatewayConnectPeerConfiguration::SetBgpConfigurations
void SetBgpConfigurations(const Aws::Vector< TransitGatewayAttachmentBgpConfiguration > &value)
Definition: TransitGatewayConnectPeerConfiguration.h:217
Aws::EC2::Model::TransitGatewayConnectPeerConfiguration::TransitGatewayConnectPeerConfiguration
TransitGatewayConnectPeerConfiguration()
TransitGatewayAttachmentBgpConfiguration.h
Aws::EC2::Model::TransitGatewayConnectPeerConfiguration::WithProtocol
TransitGatewayConnectPeerConfiguration & WithProtocol(const ProtocolValue &value)
Definition: TransitGatewayConnectPeerConfiguration.h:196
Aws::EC2::Model::TransitGatewayConnectPeerConfiguration::SetInsideCidrBlocks
void SetInsideCidrBlocks(Aws::Vector< Aws::String > &&value)
Definition: TransitGatewayConnectPeerConfiguration.h:145
Aws::EC2::Model::TransitGatewayConnectPeerConfiguration::SetProtocol
void SetProtocol(const ProtocolValue &value)
Definition: TransitGatewayConnectPeerConfiguration.h:186
Aws::EC2::Model::TransitGatewayConnectPeerConfiguration::AddInsideCidrBlocks
TransitGatewayConnectPeerConfiguration & AddInsideCidrBlocks(const Aws::String &value)
Definition: TransitGatewayConnectPeerConfiguration.h:160
Aws::EC2::Model::TransitGatewayConnectPeerConfiguration::AddBgpConfigurations
TransitGatewayConnectPeerConfiguration & AddBgpConfigurations(TransitGatewayAttachmentBgpConfiguration &&value)
Definition: TransitGatewayConnectPeerConfiguration.h:242
Aws::EC2::Model::TransitGatewayConnectPeerConfiguration::TransitGatewayAddressHasBeenSet
bool TransitGatewayAddressHasBeenSet() const
Definition: TransitGatewayConnectPeerConfiguration.h:53
Aws::EC2::Model::TransitGatewayConnectPeerConfiguration::WithPeerAddress
TransitGatewayConnectPeerConfiguration & WithPeerAddress(const char *value)
Definition: TransitGatewayConnectPeerConfiguration.h:124
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::TransitGatewayConnectPeerConfiguration::PeerAddressHasBeenSet
bool PeerAddressHasBeenSet() const
Definition: TransitGatewayConnectPeerConfiguration.h:94
Aws::EC2::Model::TransitGatewayConnectPeerConfiguration::WithTransitGatewayAddress
TransitGatewayConnectPeerConfiguration & WithTransitGatewayAddress(Aws::String &&value)
Definition: TransitGatewayConnectPeerConfiguration.h:78
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSStreamFwd.h
AWSVector.h
Aws::EC2::Model::TransitGatewayConnectPeerConfiguration::WithProtocol
TransitGatewayConnectPeerConfiguration & WithProtocol(ProtocolValue &&value)
Definition: TransitGatewayConnectPeerConfiguration.h:201
Aws::EC2::Model::TransitGatewayConnectPeerConfiguration::AddBgpConfigurations
TransitGatewayConnectPeerConfiguration & AddBgpConfigurations(const TransitGatewayAttachmentBgpConfiguration &value)
Definition: TransitGatewayConnectPeerConfiguration.h:237
Aws::EC2::Model::TransitGatewayConnectPeerConfiguration::SetPeerAddress
void SetPeerAddress(const Aws::String &value)
Definition: TransitGatewayConnectPeerConfiguration.h:99
Aws::EC2::Model::TransitGatewayConnectPeerConfiguration::SetBgpConfigurations
void SetBgpConfigurations(Aws::Vector< TransitGatewayAttachmentBgpConfiguration > &&value)
Definition: TransitGatewayConnectPeerConfiguration.h:222
Aws::EC2::Model::TransitGatewayConnectPeerConfiguration::GetInsideCidrBlocks
const Aws::Vector< Aws::String > & GetInsideCidrBlocks() const
Definition: TransitGatewayConnectPeerConfiguration.h:130
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::TransitGatewayConnectPeerConfiguration::SetPeerAddress
void SetPeerAddress(const char *value)
Definition: TransitGatewayConnectPeerConfiguration.h:109
Aws::EC2::Model::TransitGatewayConnectPeerConfiguration::GetBgpConfigurations
const Aws::Vector< TransitGatewayAttachmentBgpConfiguration > & GetBgpConfigurations() const
Definition: TransitGatewayConnectPeerConfiguration.h:207
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::TransitGatewayConnectPeerConfiguration::InsideCidrBlocksHasBeenSet
bool InsideCidrBlocksHasBeenSet() const
Definition: TransitGatewayConnectPeerConfiguration.h:135
Aws::EC2::Model::TransitGatewayConnectPeerConfiguration::WithBgpConfigurations
TransitGatewayConnectPeerConfiguration & WithBgpConfigurations(const Aws::Vector< TransitGatewayAttachmentBgpConfiguration > &value)
Definition: TransitGatewayConnectPeerConfiguration.h:227
Aws::EC2::Model::TransitGatewayConnectPeerConfiguration::SetPeerAddress
void SetPeerAddress(Aws::String &&value)
Definition: TransitGatewayConnectPeerConfiguration.h:104
Aws::EC2::Model::TransitGatewayConnectPeerConfiguration::WithPeerAddress
TransitGatewayConnectPeerConfiguration & WithPeerAddress(const Aws::String &value)
Definition: TransitGatewayConnectPeerConfiguration.h:114
Aws::EC2::Model::TransitGatewayConnectPeerConfiguration::GetPeerAddress
const Aws::String & GetPeerAddress() const
Definition: TransitGatewayConnectPeerConfiguration.h:89
Aws::EC2::Model::TransitGatewayConnectPeerConfiguration::SetTransitGatewayAddress
void SetTransitGatewayAddress(const char *value)
Definition: TransitGatewayConnectPeerConfiguration.h:68
AWSString.h
Aws::EC2::Model::TransitGatewayConnectPeerConfiguration::GetTransitGatewayAddress
const Aws::String & GetTransitGatewayAddress() const
Definition: TransitGatewayConnectPeerConfiguration.h:48
Aws::EC2::Model::TransitGatewayConnectPeerConfiguration::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::TransitGatewayConnectPeerConfiguration::operator=
TransitGatewayConnectPeerConfiguration & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::ProtocolValue
ProtocolValue
Definition: ProtocolValue.h:17
Aws::EC2::Model::TransitGatewayConnectPeerConfiguration::TransitGatewayConnectPeerConfiguration
TransitGatewayConnectPeerConfiguration(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::TransitGatewayConnectPeerConfiguration::WithPeerAddress
TransitGatewayConnectPeerConfiguration & WithPeerAddress(Aws::String &&value)
Definition: TransitGatewayConnectPeerConfiguration.h:119
Aws::EC2::Model::TransitGatewayConnectPeerConfiguration::AddInsideCidrBlocks
TransitGatewayConnectPeerConfiguration & AddInsideCidrBlocks(const char *value)
Definition: TransitGatewayConnectPeerConfiguration.h:170
Aws::EC2::Model::TransitGatewayConnectPeerConfiguration::SetInsideCidrBlocks
void SetInsideCidrBlocks(const Aws::Vector< Aws::String > &value)
Definition: TransitGatewayConnectPeerConfiguration.h:140
Aws::EC2::Model::TransitGatewayAttachmentBgpConfiguration
Definition: TransitGatewayAttachmentBgpConfiguration.h:33
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::TransitGatewayConnectPeerConfiguration::SetTransitGatewayAddress
void SetTransitGatewayAddress(const Aws::String &value)
Definition: TransitGatewayConnectPeerConfiguration.h:58
ProtocolValue.h
Aws::EC2::Model::TransitGatewayConnectPeerConfiguration::SetTransitGatewayAddress
void SetTransitGatewayAddress(Aws::String &&value)
Definition: TransitGatewayConnectPeerConfiguration.h:63
Aws::EC2::Model::TransitGatewayConnectPeerConfiguration::WithTransitGatewayAddress
TransitGatewayConnectPeerConfiguration & WithTransitGatewayAddress(const Aws::String &value)
Definition: TransitGatewayConnectPeerConfiguration.h:73
Aws::EC2::Model::TransitGatewayConnectPeerConfiguration::WithInsideCidrBlocks
TransitGatewayConnectPeerConfiguration & WithInsideCidrBlocks(Aws::Vector< Aws::String > &&value)
Definition: TransitGatewayConnectPeerConfiguration.h:155
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::TransitGatewayConnectPeerConfiguration::WithInsideCidrBlocks
TransitGatewayConnectPeerConfiguration & WithInsideCidrBlocks(const Aws::Vector< Aws::String > &value)
Definition: TransitGatewayConnectPeerConfiguration.h:150
Aws::EC2::Model::TransitGatewayConnectPeerConfiguration::ProtocolHasBeenSet
bool ProtocolHasBeenSet() const
Definition: TransitGatewayConnectPeerConfiguration.h:181
Aws::EC2::Model::TransitGatewayConnectPeerConfiguration::WithBgpConfigurations
TransitGatewayConnectPeerConfiguration & WithBgpConfigurations(Aws::Vector< TransitGatewayAttachmentBgpConfiguration > &&value)
Definition: TransitGatewayConnectPeerConfiguration.h:232
Aws::EC2::Model::TransitGatewayConnectPeerConfiguration::AddInsideCidrBlocks
TransitGatewayConnectPeerConfiguration & AddInsideCidrBlocks(Aws::String &&value)
Definition: TransitGatewayConnectPeerConfiguration.h:165
Aws::EC2::Model::TransitGatewayConnectPeerConfiguration::GetProtocol
const ProtocolValue & GetProtocol() const
Definition: TransitGatewayConnectPeerConfiguration.h:176
Aws::EC2::Model::TransitGatewayConnectPeerConfiguration::BgpConfigurationsHasBeenSet
bool BgpConfigurationsHasBeenSet() const
Definition: TransitGatewayConnectPeerConfiguration.h:212
EC2_EXPORTS.h
Aws::EC2::Model::TransitGatewayConnectPeerConfiguration::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::TransitGatewayConnectPeerConfiguration::WithTransitGatewayAddress
TransitGatewayConnectPeerConfiguration & WithTransitGatewayAddress(const char *value)
Definition: TransitGatewayConnectPeerConfiguration.h:83
Aws::EC2::Model::TransitGatewayConnectPeerConfiguration
Definition: TransitGatewayConnectPeerConfiguration.h:35