AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
NewBGPPeer.h
1
6#pragma once
7#include <aws/directconnect/DirectConnect_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/directconnect/model/AddressFamily.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace DirectConnect
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_DIRECTCONNECT_API NewBGPPeer() = default;
36 AWS_DIRECTCONNECT_API NewBGPPeer(Aws::Utils::Json::JsonView jsonValue);
37 AWS_DIRECTCONNECT_API NewBGPPeer& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_DIRECTCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
46 inline int GetAsn() const { return m_asn; }
47 inline bool AsnHasBeenSet() const { return m_asnHasBeenSet; }
48 inline void SetAsn(int value) { m_asnHasBeenSet = true; m_asn = value; }
49 inline NewBGPPeer& WithAsn(int value) { SetAsn(value); return *this;}
51
53
57 inline const Aws::String& GetAuthKey() const { return m_authKey; }
58 inline bool AuthKeyHasBeenSet() const { return m_authKeyHasBeenSet; }
59 template<typename AuthKeyT = Aws::String>
60 void SetAuthKey(AuthKeyT&& value) { m_authKeyHasBeenSet = true; m_authKey = std::forward<AuthKeyT>(value); }
61 template<typename AuthKeyT = Aws::String>
62 NewBGPPeer& WithAuthKey(AuthKeyT&& value) { SetAuthKey(std::forward<AuthKeyT>(value)); return *this;}
64
66
69 inline AddressFamily GetAddressFamily() const { return m_addressFamily; }
70 inline bool AddressFamilyHasBeenSet() const { return m_addressFamilyHasBeenSet; }
71 inline void SetAddressFamily(AddressFamily value) { m_addressFamilyHasBeenSet = true; m_addressFamily = value; }
72 inline NewBGPPeer& WithAddressFamily(AddressFamily value) { SetAddressFamily(value); return *this;}
74
76
79 inline const Aws::String& GetAmazonAddress() const { return m_amazonAddress; }
80 inline bool AmazonAddressHasBeenSet() const { return m_amazonAddressHasBeenSet; }
81 template<typename AmazonAddressT = Aws::String>
82 void SetAmazonAddress(AmazonAddressT&& value) { m_amazonAddressHasBeenSet = true; m_amazonAddress = std::forward<AmazonAddressT>(value); }
83 template<typename AmazonAddressT = Aws::String>
84 NewBGPPeer& WithAmazonAddress(AmazonAddressT&& value) { SetAmazonAddress(std::forward<AmazonAddressT>(value)); return *this;}
86
88
91 inline const Aws::String& GetCustomerAddress() const { return m_customerAddress; }
92 inline bool CustomerAddressHasBeenSet() const { return m_customerAddressHasBeenSet; }
93 template<typename CustomerAddressT = Aws::String>
94 void SetCustomerAddress(CustomerAddressT&& value) { m_customerAddressHasBeenSet = true; m_customerAddress = std::forward<CustomerAddressT>(value); }
95 template<typename CustomerAddressT = Aws::String>
96 NewBGPPeer& WithCustomerAddress(CustomerAddressT&& value) { SetCustomerAddress(std::forward<CustomerAddressT>(value)); return *this;}
98 private:
99
100 int m_asn{0};
101 bool m_asnHasBeenSet = false;
102
103 Aws::String m_authKey;
104 bool m_authKeyHasBeenSet = false;
105
106 AddressFamily m_addressFamily{AddressFamily::NOT_SET};
107 bool m_addressFamilyHasBeenSet = false;
108
109 Aws::String m_amazonAddress;
110 bool m_amazonAddressHasBeenSet = false;
111
112 Aws::String m_customerAddress;
113 bool m_customerAddressHasBeenSet = false;
114 };
115
116} // namespace Model
117} // namespace DirectConnect
118} // namespace Aws
AWS_DIRECTCONNECT_API NewBGPPeer & operator=(Aws::Utils::Json::JsonView jsonValue)
NewBGPPeer & WithAmazonAddress(AmazonAddressT &&value)
Definition NewBGPPeer.h:84
const Aws::String & GetAmazonAddress() const
Definition NewBGPPeer.h:79
NewBGPPeer & WithAddressFamily(AddressFamily value)
Definition NewBGPPeer.h:72
void SetAddressFamily(AddressFamily value)
Definition NewBGPPeer.h:71
const Aws::String & GetAuthKey() const
Definition NewBGPPeer.h:57
void SetAmazonAddress(AmazonAddressT &&value)
Definition NewBGPPeer.h:82
const Aws::String & GetCustomerAddress() const
Definition NewBGPPeer.h:91
AWS_DIRECTCONNECT_API NewBGPPeer(Aws::Utils::Json::JsonView jsonValue)
NewBGPPeer & WithCustomerAddress(CustomerAddressT &&value)
Definition NewBGPPeer.h:96
NewBGPPeer & WithAsn(int value)
Definition NewBGPPeer.h:49
void SetCustomerAddress(CustomerAddressT &&value)
Definition NewBGPPeer.h:94
AWS_DIRECTCONNECT_API NewBGPPeer()=default
NewBGPPeer & WithAuthKey(AuthKeyT &&value)
Definition NewBGPPeer.h:62
AWS_DIRECTCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAuthKey(AuthKeyT &&value)
Definition NewBGPPeer.h:60
AddressFamily GetAddressFamily() const
Definition NewBGPPeer.h:69
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue