AWS SDK for C++  1.9.123
AWS SDK for C++
TransitGatewayAttachmentBgpConfiguration.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Xml
18 {
19  class XmlNode;
20 } // namespace Xml
21 } // namespace Utils
22 namespace EC2
23 {
24 namespace Model
25 {
26 
33  {
34  public:
38 
39  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40  void OutputToStream(Aws::OStream& oStream, const char* location) const;
41 
42 
46  inline long long GetTransitGatewayAsn() const{ return m_transitGatewayAsn; }
47 
51  inline bool TransitGatewayAsnHasBeenSet() const { return m_transitGatewayAsnHasBeenSet; }
52 
56  inline void SetTransitGatewayAsn(long long value) { m_transitGatewayAsnHasBeenSet = true; m_transitGatewayAsn = value; }
57 
61  inline TransitGatewayAttachmentBgpConfiguration& WithTransitGatewayAsn(long long value) { SetTransitGatewayAsn(value); return *this;}
62 
63 
67  inline long long GetPeerAsn() const{ return m_peerAsn; }
68 
72  inline bool PeerAsnHasBeenSet() const { return m_peerAsnHasBeenSet; }
73 
77  inline void SetPeerAsn(long long value) { m_peerAsnHasBeenSet = true; m_peerAsn = value; }
78 
82  inline TransitGatewayAttachmentBgpConfiguration& WithPeerAsn(long long value) { SetPeerAsn(value); return *this;}
83 
84 
88  inline const Aws::String& GetTransitGatewayAddress() const{ return m_transitGatewayAddress; }
89 
93  inline bool TransitGatewayAddressHasBeenSet() const { return m_transitGatewayAddressHasBeenSet; }
94 
98  inline void SetTransitGatewayAddress(const Aws::String& value) { m_transitGatewayAddressHasBeenSet = true; m_transitGatewayAddress = value; }
99 
103  inline void SetTransitGatewayAddress(Aws::String&& value) { m_transitGatewayAddressHasBeenSet = true; m_transitGatewayAddress = std::move(value); }
104 
108  inline void SetTransitGatewayAddress(const char* value) { m_transitGatewayAddressHasBeenSet = true; m_transitGatewayAddress.assign(value); }
109 
113  inline TransitGatewayAttachmentBgpConfiguration& WithTransitGatewayAddress(const Aws::String& value) { SetTransitGatewayAddress(value); return *this;}
114 
118  inline TransitGatewayAttachmentBgpConfiguration& WithTransitGatewayAddress(Aws::String&& value) { SetTransitGatewayAddress(std::move(value)); return *this;}
119 
123  inline TransitGatewayAttachmentBgpConfiguration& WithTransitGatewayAddress(const char* value) { SetTransitGatewayAddress(value); return *this;}
124 
125 
129  inline const Aws::String& GetPeerAddress() const{ return m_peerAddress; }
130 
134  inline bool PeerAddressHasBeenSet() const { return m_peerAddressHasBeenSet; }
135 
139  inline void SetPeerAddress(const Aws::String& value) { m_peerAddressHasBeenSet = true; m_peerAddress = value; }
140 
144  inline void SetPeerAddress(Aws::String&& value) { m_peerAddressHasBeenSet = true; m_peerAddress = std::move(value); }
145 
149  inline void SetPeerAddress(const char* value) { m_peerAddressHasBeenSet = true; m_peerAddress.assign(value); }
150 
154  inline TransitGatewayAttachmentBgpConfiguration& WithPeerAddress(const Aws::String& value) { SetPeerAddress(value); return *this;}
155 
159  inline TransitGatewayAttachmentBgpConfiguration& WithPeerAddress(Aws::String&& value) { SetPeerAddress(std::move(value)); return *this;}
160 
164  inline TransitGatewayAttachmentBgpConfiguration& WithPeerAddress(const char* value) { SetPeerAddress(value); return *this;}
165 
166 
170  inline const BgpStatus& GetBgpStatus() const{ return m_bgpStatus; }
171 
175  inline bool BgpStatusHasBeenSet() const { return m_bgpStatusHasBeenSet; }
176 
180  inline void SetBgpStatus(const BgpStatus& value) { m_bgpStatusHasBeenSet = true; m_bgpStatus = value; }
181 
185  inline void SetBgpStatus(BgpStatus&& value) { m_bgpStatusHasBeenSet = true; m_bgpStatus = std::move(value); }
186 
190  inline TransitGatewayAttachmentBgpConfiguration& WithBgpStatus(const BgpStatus& value) { SetBgpStatus(value); return *this;}
191 
195  inline TransitGatewayAttachmentBgpConfiguration& WithBgpStatus(BgpStatus&& value) { SetBgpStatus(std::move(value)); return *this;}
196 
197  private:
198 
199  long long m_transitGatewayAsn;
200  bool m_transitGatewayAsnHasBeenSet;
201 
202  long long m_peerAsn;
203  bool m_peerAsnHasBeenSet;
204 
205  Aws::String m_transitGatewayAddress;
206  bool m_transitGatewayAddressHasBeenSet;
207 
208  Aws::String m_peerAddress;
209  bool m_peerAddressHasBeenSet;
210 
211  BgpStatus m_bgpStatus;
212  bool m_bgpStatusHasBeenSet;
213  };
214 
215 } // namespace Model
216 } // namespace EC2
217 } // namespace Aws
Aws::EC2::Model::TransitGatewayAttachmentBgpConfiguration::SetBgpStatus
void SetBgpStatus(const BgpStatus &value)
Definition: TransitGatewayAttachmentBgpConfiguration.h:180
Aws::EC2::Model::TransitGatewayAttachmentBgpConfiguration::GetTransitGatewayAddress
const Aws::String & GetTransitGatewayAddress() const
Definition: TransitGatewayAttachmentBgpConfiguration.h:88
Aws::EC2::Model::TransitGatewayAttachmentBgpConfiguration::TransitGatewayAddressHasBeenSet
bool TransitGatewayAddressHasBeenSet() const
Definition: TransitGatewayAttachmentBgpConfiguration.h:93
Aws::EC2::Model::TransitGatewayAttachmentBgpConfiguration::GetPeerAddress
const Aws::String & GetPeerAddress() const
Definition: TransitGatewayAttachmentBgpConfiguration.h:129
Aws::EC2::Model::TransitGatewayAttachmentBgpConfiguration::TransitGatewayAttachmentBgpConfiguration
TransitGatewayAttachmentBgpConfiguration(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::TransitGatewayAttachmentBgpConfiguration::WithTransitGatewayAddress
TransitGatewayAttachmentBgpConfiguration & WithTransitGatewayAddress(const Aws::String &value)
Definition: TransitGatewayAttachmentBgpConfiguration.h:113
Aws::EC2::Model::TransitGatewayAttachmentBgpConfiguration::GetTransitGatewayAsn
long long GetTransitGatewayAsn() const
Definition: TransitGatewayAttachmentBgpConfiguration.h:46
Aws::EC2::Model::TransitGatewayAttachmentBgpConfiguration::PeerAddressHasBeenSet
bool PeerAddressHasBeenSet() const
Definition: TransitGatewayAttachmentBgpConfiguration.h:134
Aws::EC2::Model::TransitGatewayAttachmentBgpConfiguration::SetPeerAddress
void SetPeerAddress(const char *value)
Definition: TransitGatewayAttachmentBgpConfiguration.h:149
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::TransitGatewayAttachmentBgpConfiguration::TransitGatewayAttachmentBgpConfiguration
TransitGatewayAttachmentBgpConfiguration()
Aws::EC2::Model::TransitGatewayAttachmentBgpConfiguration::WithTransitGatewayAddress
TransitGatewayAttachmentBgpConfiguration & WithTransitGatewayAddress(Aws::String &&value)
Definition: TransitGatewayAttachmentBgpConfiguration.h:118
AWSStreamFwd.h
Aws::EC2::Model::TransitGatewayAttachmentBgpConfiguration::BgpStatusHasBeenSet
bool BgpStatusHasBeenSet() const
Definition: TransitGatewayAttachmentBgpConfiguration.h:175
Aws::EC2::Model::TransitGatewayAttachmentBgpConfiguration::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::TransitGatewayAttachmentBgpConfiguration::GetBgpStatus
const BgpStatus & GetBgpStatus() const
Definition: TransitGatewayAttachmentBgpConfiguration.h:170
Aws::EC2::Model::TransitGatewayAttachmentBgpConfiguration::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::TransitGatewayAttachmentBgpConfiguration::SetBgpStatus
void SetBgpStatus(BgpStatus &&value)
Definition: TransitGatewayAttachmentBgpConfiguration.h:185
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::TransitGatewayAttachmentBgpConfiguration::SetTransitGatewayAsn
void SetTransitGatewayAsn(long long value)
Definition: TransitGatewayAttachmentBgpConfiguration.h:56
Aws::EC2::Model::TransitGatewayAttachmentBgpConfiguration::operator=
TransitGatewayAttachmentBgpConfiguration & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::TransitGatewayAttachmentBgpConfiguration::WithBgpStatus
TransitGatewayAttachmentBgpConfiguration & WithBgpStatus(BgpStatus &&value)
Definition: TransitGatewayAttachmentBgpConfiguration.h:195
Aws::EC2::Model::TransitGatewayAttachmentBgpConfiguration::SetPeerAddress
void SetPeerAddress(Aws::String &&value)
Definition: TransitGatewayAttachmentBgpConfiguration.h:144
AWSString.h
Aws::EC2::Model::TransitGatewayAttachmentBgpConfiguration::WithTransitGatewayAddress
TransitGatewayAttachmentBgpConfiguration & WithTransitGatewayAddress(const char *value)
Definition: TransitGatewayAttachmentBgpConfiguration.h:123
Aws::EC2::Model::TransitGatewayAttachmentBgpConfiguration::WithBgpStatus
TransitGatewayAttachmentBgpConfiguration & WithBgpStatus(const BgpStatus &value)
Definition: TransitGatewayAttachmentBgpConfiguration.h:190
Aws::EC2::Model::TransitGatewayAttachmentBgpConfiguration::SetPeerAsn
void SetPeerAsn(long long value)
Definition: TransitGatewayAttachmentBgpConfiguration.h:77
Aws::EC2::Model::TransitGatewayAttachmentBgpConfiguration::TransitGatewayAsnHasBeenSet
bool TransitGatewayAsnHasBeenSet() const
Definition: TransitGatewayAttachmentBgpConfiguration.h:51
Aws::EC2::Model::TransitGatewayAttachmentBgpConfiguration::WithPeerAddress
TransitGatewayAttachmentBgpConfiguration & WithPeerAddress(const Aws::String &value)
Definition: TransitGatewayAttachmentBgpConfiguration.h:154
BgpStatus.h
Aws::EC2::Model::TransitGatewayAttachmentBgpConfiguration::SetTransitGatewayAddress
void SetTransitGatewayAddress(const char *value)
Definition: TransitGatewayAttachmentBgpConfiguration.h:108
Aws::EC2::Model::BgpStatus
BgpStatus
Definition: BgpStatus.h:17
Aws::EC2::Model::TransitGatewayAttachmentBgpConfiguration
Definition: TransitGatewayAttachmentBgpConfiguration.h:33
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::TransitGatewayAttachmentBgpConfiguration::SetTransitGatewayAddress
void SetTransitGatewayAddress(Aws::String &&value)
Definition: TransitGatewayAttachmentBgpConfiguration.h:103
Aws::EC2::Model::TransitGatewayAttachmentBgpConfiguration::WithPeerAddress
TransitGatewayAttachmentBgpConfiguration & WithPeerAddress(Aws::String &&value)
Definition: TransitGatewayAttachmentBgpConfiguration.h:159
Aws::EC2::Model::TransitGatewayAttachmentBgpConfiguration::GetPeerAsn
long long GetPeerAsn() const
Definition: TransitGatewayAttachmentBgpConfiguration.h:67
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::TransitGatewayAttachmentBgpConfiguration::SetPeerAddress
void SetPeerAddress(const Aws::String &value)
Definition: TransitGatewayAttachmentBgpConfiguration.h:139
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::TransitGatewayAttachmentBgpConfiguration::WithPeerAddress
TransitGatewayAttachmentBgpConfiguration & WithPeerAddress(const char *value)
Definition: TransitGatewayAttachmentBgpConfiguration.h:164
Aws::EC2::Model::TransitGatewayAttachmentBgpConfiguration::WithTransitGatewayAsn
TransitGatewayAttachmentBgpConfiguration & WithTransitGatewayAsn(long long value)
Definition: TransitGatewayAttachmentBgpConfiguration.h:61
EC2_EXPORTS.h
Aws::EC2::Model::TransitGatewayAttachmentBgpConfiguration::SetTransitGatewayAddress
void SetTransitGatewayAddress(const Aws::String &value)
Definition: TransitGatewayAttachmentBgpConfiguration.h:98
Aws::EC2::Model::TransitGatewayAttachmentBgpConfiguration::PeerAsnHasBeenSet
bool PeerAsnHasBeenSet() const
Definition: TransitGatewayAttachmentBgpConfiguration.h:72
Aws::EC2::Model::TransitGatewayAttachmentBgpConfiguration::WithPeerAsn
TransitGatewayAttachmentBgpConfiguration & WithPeerAsn(long long value)
Definition: TransitGatewayAttachmentBgpConfiguration.h:82