AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
TransitGatewayAttachmentBgpConfiguration.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/ec2/model/BgpStatus.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace EC2
23{
24namespace Model
25{
26
33 {
34 public:
38
39 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
41
42
44
47 inline long long GetTransitGatewayAsn() const{ return m_transitGatewayAsn; }
48 inline bool TransitGatewayAsnHasBeenSet() const { return m_transitGatewayAsnHasBeenSet; }
49 inline void SetTransitGatewayAsn(long long value) { m_transitGatewayAsnHasBeenSet = true; m_transitGatewayAsn = value; }
52
54
57 inline long long GetPeerAsn() const{ return m_peerAsn; }
58 inline bool PeerAsnHasBeenSet() const { return m_peerAsnHasBeenSet; }
59 inline void SetPeerAsn(long long value) { m_peerAsnHasBeenSet = true; m_peerAsn = value; }
60 inline TransitGatewayAttachmentBgpConfiguration& WithPeerAsn(long long value) { SetPeerAsn(value); return *this;}
62
64
67 inline const Aws::String& GetTransitGatewayAddress() const{ return m_transitGatewayAddress; }
68 inline bool TransitGatewayAddressHasBeenSet() const { return m_transitGatewayAddressHasBeenSet; }
69 inline void SetTransitGatewayAddress(const Aws::String& value) { m_transitGatewayAddressHasBeenSet = true; m_transitGatewayAddress = value; }
70 inline void SetTransitGatewayAddress(Aws::String&& value) { m_transitGatewayAddressHasBeenSet = true; m_transitGatewayAddress = std::move(value); }
71 inline void SetTransitGatewayAddress(const char* value) { m_transitGatewayAddressHasBeenSet = true; m_transitGatewayAddress.assign(value); }
76
78
81 inline const Aws::String& GetPeerAddress() const{ return m_peerAddress; }
82 inline bool PeerAddressHasBeenSet() const { return m_peerAddressHasBeenSet; }
83 inline void SetPeerAddress(const Aws::String& value) { m_peerAddressHasBeenSet = true; m_peerAddress = value; }
84 inline void SetPeerAddress(Aws::String&& value) { m_peerAddressHasBeenSet = true; m_peerAddress = std::move(value); }
85 inline void SetPeerAddress(const char* value) { m_peerAddressHasBeenSet = true; m_peerAddress.assign(value); }
87 inline TransitGatewayAttachmentBgpConfiguration& WithPeerAddress(Aws::String&& value) { SetPeerAddress(std::move(value)); return *this;}
88 inline TransitGatewayAttachmentBgpConfiguration& WithPeerAddress(const char* value) { SetPeerAddress(value); return *this;}
90
92
95 inline const BgpStatus& GetBgpStatus() const{ return m_bgpStatus; }
96 inline bool BgpStatusHasBeenSet() const { return m_bgpStatusHasBeenSet; }
97 inline void SetBgpStatus(const BgpStatus& value) { m_bgpStatusHasBeenSet = true; m_bgpStatus = value; }
98 inline void SetBgpStatus(BgpStatus&& value) { m_bgpStatusHasBeenSet = true; m_bgpStatus = std::move(value); }
100 inline TransitGatewayAttachmentBgpConfiguration& WithBgpStatus(BgpStatus&& value) { SetBgpStatus(std::move(value)); return *this;}
102 private:
103
104 long long m_transitGatewayAsn;
105 bool m_transitGatewayAsnHasBeenSet = false;
106
107 long long m_peerAsn;
108 bool m_peerAsnHasBeenSet = false;
109
110 Aws::String m_transitGatewayAddress;
111 bool m_transitGatewayAddressHasBeenSet = false;
112
113 Aws::String m_peerAddress;
114 bool m_peerAddressHasBeenSet = false;
115
116 BgpStatus m_bgpStatus;
117 bool m_bgpStatusHasBeenSet = false;
118 };
119
120} // namespace Model
121} // namespace EC2
122} // namespace Aws
TransitGatewayAttachmentBgpConfiguration & WithPeerAddress(const Aws::String &value)
TransitGatewayAttachmentBgpConfiguration & WithPeerAddress(const char *value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_EC2_API TransitGatewayAttachmentBgpConfiguration(const Aws::Utils::Xml::XmlNode &xmlNode)
TransitGatewayAttachmentBgpConfiguration & WithBgpStatus(const BgpStatus &value)
TransitGatewayAttachmentBgpConfiguration & WithTransitGatewayAddress(const Aws::String &value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
TransitGatewayAttachmentBgpConfiguration & WithTransitGatewayAddress(Aws::String &&value)
TransitGatewayAttachmentBgpConfiguration & WithPeerAsn(long long value)
TransitGatewayAttachmentBgpConfiguration & WithTransitGatewayAddress(const char *value)
TransitGatewayAttachmentBgpConfiguration & WithTransitGatewayAsn(long long value)
TransitGatewayAttachmentBgpConfiguration & WithPeerAddress(Aws::String &&value)
TransitGatewayAttachmentBgpConfiguration & WithBgpStatus(BgpStatus &&value)
AWS_EC2_API TransitGatewayAttachmentBgpConfiguration & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream