AWS SDK for C++  1.9.68
AWS SDK for C++
TransitGatewayConnectRequestBgpOptions.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
9 
10 namespace Aws
11 {
12 namespace Utils
13 {
14 namespace Xml
15 {
16  class XmlNode;
17 } // namespace Xml
18 } // namespace Utils
19 namespace EC2
20 {
21 namespace Model
22 {
23 
30  {
31  public:
35 
36  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
37  void OutputToStream(Aws::OStream& oStream, const char* location) const;
38 
39 
43  inline long long GetPeerAsn() const{ return m_peerAsn; }
44 
48  inline bool PeerAsnHasBeenSet() const { return m_peerAsnHasBeenSet; }
49 
53  inline void SetPeerAsn(long long value) { m_peerAsnHasBeenSet = true; m_peerAsn = value; }
54 
58  inline TransitGatewayConnectRequestBgpOptions& WithPeerAsn(long long value) { SetPeerAsn(value); return *this;}
59 
60  private:
61 
62  long long m_peerAsn;
63  bool m_peerAsnHasBeenSet;
64  };
65 
66 } // namespace Model
67 } // namespace EC2
68 } // namespace Aws
Aws::EC2::Model::TransitGatewayConnectRequestBgpOptions::WithPeerAsn
TransitGatewayConnectRequestBgpOptions & WithPeerAsn(long long value)
Definition: TransitGatewayConnectRequestBgpOptions.h:58
Aws::EC2::Model::TransitGatewayConnectRequestBgpOptions::SetPeerAsn
void SetPeerAsn(long long value)
Definition: TransitGatewayConnectRequestBgpOptions.h:53
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::TransitGatewayConnectRequestBgpOptions::TransitGatewayConnectRequestBgpOptions
TransitGatewayConnectRequestBgpOptions(const Aws::Utils::Xml::XmlNode &xmlNode)
AWSStreamFwd.h
Aws::EC2::Model::TransitGatewayConnectRequestBgpOptions::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::TransitGatewayConnectRequestBgpOptions::TransitGatewayConnectRequestBgpOptions
TransitGatewayConnectRequestBgpOptions()
Aws::EC2::Model::TransitGatewayConnectRequestBgpOptions::PeerAsnHasBeenSet
bool PeerAsnHasBeenSet() const
Definition: TransitGatewayConnectRequestBgpOptions.h:48
Aws::EC2::Model::TransitGatewayConnectRequestBgpOptions
Definition: TransitGatewayConnectRequestBgpOptions.h:30
Aws::EC2::Model::TransitGatewayConnectRequestBgpOptions::GetPeerAsn
long long GetPeerAsn() const
Definition: TransitGatewayConnectRequestBgpOptions.h:43
Aws
Definition: AccessManagementClient.h:15
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::TransitGatewayConnectRequestBgpOptions::operator=
TransitGatewayConnectRequestBgpOptions & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::TransitGatewayConnectRequestBgpOptions::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
EC2_EXPORTS.h