AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ConnectPeerBgpConfiguration.h
1
6#pragma once
7#include <aws/networkmanager/NetworkManager_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace NetworkManager
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_NETWORKMANAGER_API ConnectPeerBgpConfiguration() = default;
37 AWS_NETWORKMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
38
39
41
44 inline long long GetCoreNetworkAsn() const { return m_coreNetworkAsn; }
45 inline bool CoreNetworkAsnHasBeenSet() const { return m_coreNetworkAsnHasBeenSet; }
46 inline void SetCoreNetworkAsn(long long value) { m_coreNetworkAsnHasBeenSet = true; m_coreNetworkAsn = value; }
47 inline ConnectPeerBgpConfiguration& WithCoreNetworkAsn(long long value) { SetCoreNetworkAsn(value); return *this;}
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) { m_peerAsnHasBeenSet = true; m_peerAsn = value; }
57 inline ConnectPeerBgpConfiguration& WithPeerAsn(long long value) { SetPeerAsn(value); return *this;}
59
61
64 inline const Aws::String& GetCoreNetworkAddress() const { return m_coreNetworkAddress; }
65 inline bool CoreNetworkAddressHasBeenSet() const { return m_coreNetworkAddressHasBeenSet; }
66 template<typename CoreNetworkAddressT = Aws::String>
67 void SetCoreNetworkAddress(CoreNetworkAddressT&& value) { m_coreNetworkAddressHasBeenSet = true; m_coreNetworkAddress = std::forward<CoreNetworkAddressT>(value); }
68 template<typename CoreNetworkAddressT = Aws::String>
69 ConnectPeerBgpConfiguration& WithCoreNetworkAddress(CoreNetworkAddressT&& value) { SetCoreNetworkAddress(std::forward<CoreNetworkAddressT>(value)); return *this;}
71
73
76 inline const Aws::String& GetPeerAddress() const { return m_peerAddress; }
77 inline bool PeerAddressHasBeenSet() const { return m_peerAddressHasBeenSet; }
78 template<typename PeerAddressT = Aws::String>
79 void SetPeerAddress(PeerAddressT&& value) { m_peerAddressHasBeenSet = true; m_peerAddress = std::forward<PeerAddressT>(value); }
80 template<typename PeerAddressT = Aws::String>
81 ConnectPeerBgpConfiguration& WithPeerAddress(PeerAddressT&& value) { SetPeerAddress(std::forward<PeerAddressT>(value)); return *this;}
83 private:
84
85 long long m_coreNetworkAsn{0};
86 bool m_coreNetworkAsnHasBeenSet = false;
87
88 long long m_peerAsn{0};
89 bool m_peerAsnHasBeenSet = false;
90
91 Aws::String m_coreNetworkAddress;
92 bool m_coreNetworkAddressHasBeenSet = false;
93
94 Aws::String m_peerAddress;
95 bool m_peerAddressHasBeenSet = false;
96 };
97
98} // namespace Model
99} // namespace NetworkManager
100} // 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