AWS SDK for C++

AWS SDK for C++ Version 1.11.933

Loading...
Searching...
No Matches
ConnectPeerBgpConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/networkmanager/NetworkManager_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace NetworkManager {
20namespace Model {
21
28 public:
29 AWS_NETWORKMANAGER_API ConnectPeerBgpConfiguration() = default;
32 AWS_NETWORKMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline long long GetCoreNetworkAsn() const { return m_coreNetworkAsn; }
39 inline bool CoreNetworkAsnHasBeenSet() const { return m_coreNetworkAsnHasBeenSet; }
40 inline void SetCoreNetworkAsn(long long value) {
41 m_coreNetworkAsnHasBeenSet = true;
42 m_coreNetworkAsn = value;
43 }
45 SetCoreNetworkAsn(value);
46 return *this;
47 }
49
51
54 inline long long GetPeerAsn() const { return m_peerAsn; }
55 inline bool PeerAsnHasBeenSet() const { return m_peerAsnHasBeenSet; }
56 inline void SetPeerAsn(long long value) {
57 m_peerAsnHasBeenSet = true;
58 m_peerAsn = value;
59 }
60 inline ConnectPeerBgpConfiguration& WithPeerAsn(long long value) {
61 SetPeerAsn(value);
62 return *this;
63 }
65
67
70 inline const Aws::String& GetCoreNetworkAddress() const { return m_coreNetworkAddress; }
71 inline bool CoreNetworkAddressHasBeenSet() const { return m_coreNetworkAddressHasBeenSet; }
72 template <typename CoreNetworkAddressT = Aws::String>
73 void SetCoreNetworkAddress(CoreNetworkAddressT&& value) {
74 m_coreNetworkAddressHasBeenSet = true;
75 m_coreNetworkAddress = std::forward<CoreNetworkAddressT>(value);
76 }
77 template <typename CoreNetworkAddressT = Aws::String>
79 SetCoreNetworkAddress(std::forward<CoreNetworkAddressT>(value));
80 return *this;
81 }
83
85
88 inline const Aws::String& GetPeerAddress() const { return m_peerAddress; }
89 inline bool PeerAddressHasBeenSet() const { return m_peerAddressHasBeenSet; }
90 template <typename PeerAddressT = Aws::String>
91 void SetPeerAddress(PeerAddressT&& value) {
92 m_peerAddressHasBeenSet = true;
93 m_peerAddress = std::forward<PeerAddressT>(value);
94 }
95 template <typename PeerAddressT = Aws::String>
97 SetPeerAddress(std::forward<PeerAddressT>(value));
98 return *this;
99 }
101 private:
102 long long m_coreNetworkAsn{0};
103
104 long long m_peerAsn{0};
105
106 Aws::String m_coreNetworkAddress;
107
108 Aws::String m_peerAddress;
109 bool m_coreNetworkAsnHasBeenSet = false;
110 bool m_peerAsnHasBeenSet = false;
111 bool m_coreNetworkAddressHasBeenSet = false;
112 bool m_peerAddressHasBeenSet = false;
113};
114
115} // namespace Model
116} // namespace NetworkManager
117} // namespace Aws
AWS_NETWORKMANAGER_API ConnectPeerBgpConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
ConnectPeerBgpConfiguration & WithCoreNetworkAsn(long long value)
ConnectPeerBgpConfiguration & WithPeerAddress(PeerAddressT &&value)
AWS_NETWORKMANAGER_API ConnectPeerBgpConfiguration()=default
AWS_NETWORKMANAGER_API ConnectPeerBgpConfiguration(Aws::Utils::Json::JsonView jsonValue)
ConnectPeerBgpConfiguration & WithPeerAsn(long long value)
AWS_NETWORKMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
ConnectPeerBgpConfiguration & WithCoreNetworkAddress(CoreNetworkAddressT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue