AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
TransitGatewayAttachmentBgpConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ec2/EC2_EXPORTS.h>
10#include <aws/ec2/model/BgpStatus.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Xml {
17class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace EC2 {
21namespace Model {
22
29 public:
33
34 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
35 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
36
38
41 inline long long GetTransitGatewayAsn() const { return m_transitGatewayAsn; }
42 inline bool TransitGatewayAsnHasBeenSet() const { return m_transitGatewayAsnHasBeenSet; }
43 inline void SetTransitGatewayAsn(long long value) {
44 m_transitGatewayAsnHasBeenSet = true;
45 m_transitGatewayAsn = value;
46 }
49 return *this;
50 }
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) {
60 m_peerAsnHasBeenSet = true;
61 m_peerAsn = value;
62 }
64 SetPeerAsn(value);
65 return *this;
66 }
68
70
73 inline const Aws::String& GetTransitGatewayAddress() const { return m_transitGatewayAddress; }
74 inline bool TransitGatewayAddressHasBeenSet() const { return m_transitGatewayAddressHasBeenSet; }
75 template <typename TransitGatewayAddressT = Aws::String>
76 void SetTransitGatewayAddress(TransitGatewayAddressT&& value) {
77 m_transitGatewayAddressHasBeenSet = true;
78 m_transitGatewayAddress = std::forward<TransitGatewayAddressT>(value);
79 }
80 template <typename TransitGatewayAddressT = Aws::String>
82 SetTransitGatewayAddress(std::forward<TransitGatewayAddressT>(value));
83 return *this;
84 }
86
88
91 inline const Aws::String& GetPeerAddress() const { return m_peerAddress; }
92 inline bool PeerAddressHasBeenSet() const { return m_peerAddressHasBeenSet; }
93 template <typename PeerAddressT = Aws::String>
94 void SetPeerAddress(PeerAddressT&& value) {
95 m_peerAddressHasBeenSet = true;
96 m_peerAddress = std::forward<PeerAddressT>(value);
97 }
98 template <typename PeerAddressT = Aws::String>
100 SetPeerAddress(std::forward<PeerAddressT>(value));
101 return *this;
102 }
104
106
109 inline BgpStatus GetBgpStatus() const { return m_bgpStatus; }
110 inline bool BgpStatusHasBeenSet() const { return m_bgpStatusHasBeenSet; }
111 inline void SetBgpStatus(BgpStatus value) {
112 m_bgpStatusHasBeenSet = true;
113 m_bgpStatus = value;
114 }
116 SetBgpStatus(value);
117 return *this;
118 }
120 private:
121 long long m_transitGatewayAsn{0};
122
123 long long m_peerAsn{0};
124
125 Aws::String m_transitGatewayAddress;
126
127 Aws::String m_peerAddress;
128
129 BgpStatus m_bgpStatus{BgpStatus::NOT_SET};
130 bool m_transitGatewayAsnHasBeenSet = false;
131 bool m_peerAsnHasBeenSet = false;
132 bool m_transitGatewayAddressHasBeenSet = false;
133 bool m_peerAddressHasBeenSet = false;
134 bool m_bgpStatusHasBeenSet = false;
135};
136
137} // namespace Model
138} // namespace EC2
139} // namespace Aws
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_EC2_API TransitGatewayAttachmentBgpConfiguration(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
TransitGatewayAttachmentBgpConfiguration & WithPeerAddress(PeerAddressT &&value)
TransitGatewayAttachmentBgpConfiguration & WithTransitGatewayAddress(TransitGatewayAddressT &&value)
TransitGatewayAttachmentBgpConfiguration & WithBgpStatus(BgpStatus value)
TransitGatewayAttachmentBgpConfiguration & WithPeerAsn(long long value)
TransitGatewayAttachmentBgpConfiguration & WithTransitGatewayAsn(long long 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