AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
RouteServerBgpOptionsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/ec2/EC2_EXPORTS.h>
9#include <aws/ec2/model/RouteServerPeerLivenessMode.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace EC2 {
20namespace Model {
21
29 public:
30 AWS_EC2_API RouteServerBgpOptionsRequest() = default;
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
44 inline long long GetPeerAsn() const { return m_peerAsn; }
45 inline bool PeerAsnHasBeenSet() const { return m_peerAsnHasBeenSet; }
46 inline void SetPeerAsn(long long value) {
47 m_peerAsnHasBeenSet = true;
48 m_peerAsn = value;
49 }
50 inline RouteServerBgpOptionsRequest& WithPeerAsn(long long value) {
51 SetPeerAsn(value);
52 return *this;
53 }
55
57
68 inline RouteServerPeerLivenessMode GetPeerLivenessDetection() const { return m_peerLivenessDetection; }
69 inline bool PeerLivenessDetectionHasBeenSet() const { return m_peerLivenessDetectionHasBeenSet; }
71 m_peerLivenessDetectionHasBeenSet = true;
72 m_peerLivenessDetection = value;
73 }
76 return *this;
77 }
79 private:
80 long long m_peerAsn{0};
81
83 bool m_peerAsnHasBeenSet = false;
84 bool m_peerLivenessDetectionHasBeenSet = false;
85};
86
87} // namespace Model
88} // namespace EC2
89} // namespace Aws
RouteServerBgpOptionsRequest & WithPeerLivenessDetection(RouteServerPeerLivenessMode value)
AWS_EC2_API RouteServerBgpOptionsRequest & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
RouteServerPeerLivenessMode GetPeerLivenessDetection() const
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
RouteServerBgpOptionsRequest & WithPeerAsn(long long value)
AWS_EC2_API RouteServerBgpOptionsRequest()=default
AWS_EC2_API RouteServerBgpOptionsRequest(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetPeerLivenessDetection(RouteServerPeerLivenessMode value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
std::basic_ostream< char, std::char_traits< char > > OStream