AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetAuthKey(const Aws::String& value) { m_authKeyHasBeenSet = true; m_authKey = value; }
60 inline void SetAuthKey(Aws::String&& value) { m_authKeyHasBeenSet = true; m_authKey = std::move(value); }
61 inline void SetAuthKey(const char* value) { m_authKeyHasBeenSet = true; m_authKey.assign(value); }
62 inline NewBGPPeer& WithAuthKey(const Aws::String& value) { SetAuthKey(value); return *this;}
63 inline NewBGPPeer& WithAuthKey(Aws::String&& value) { SetAuthKey(std::move(value)); return *this;}
64 inline NewBGPPeer& WithAuthKey(const char* value) { SetAuthKey(value); return *this;}
66
68
71 inline const AddressFamily& GetAddressFamily() const{ return m_addressFamily; }
72 inline bool AddressFamilyHasBeenSet() const { return m_addressFamilyHasBeenSet; }
73 inline void SetAddressFamily(const AddressFamily& value) { m_addressFamilyHasBeenSet = true; m_addressFamily = value; }
74 inline void SetAddressFamily(AddressFamily&& value) { m_addressFamilyHasBeenSet = true; m_addressFamily = std::move(value); }
75 inline NewBGPPeer& WithAddressFamily(const AddressFamily& value) { SetAddressFamily(value); return *this;}
76 inline NewBGPPeer& WithAddressFamily(AddressFamily&& value) { SetAddressFamily(std::move(value)); return *this;}
78
80
83 inline const Aws::String& GetAmazonAddress() const{ return m_amazonAddress; }
84 inline bool AmazonAddressHasBeenSet() const { return m_amazonAddressHasBeenSet; }
85 inline void SetAmazonAddress(const Aws::String& value) { m_amazonAddressHasBeenSet = true; m_amazonAddress = value; }
86 inline void SetAmazonAddress(Aws::String&& value) { m_amazonAddressHasBeenSet = true; m_amazonAddress = std::move(value); }
87 inline void SetAmazonAddress(const char* value) { m_amazonAddressHasBeenSet = true; m_amazonAddress.assign(value); }
88 inline NewBGPPeer& WithAmazonAddress(const Aws::String& value) { SetAmazonAddress(value); return *this;}
89 inline NewBGPPeer& WithAmazonAddress(Aws::String&& value) { SetAmazonAddress(std::move(value)); return *this;}
90 inline NewBGPPeer& WithAmazonAddress(const char* value) { SetAmazonAddress(value); return *this;}
92
94
97 inline const Aws::String& GetCustomerAddress() const{ return m_customerAddress; }
98 inline bool CustomerAddressHasBeenSet() const { return m_customerAddressHasBeenSet; }
99 inline void SetCustomerAddress(const Aws::String& value) { m_customerAddressHasBeenSet = true; m_customerAddress = value; }
100 inline void SetCustomerAddress(Aws::String&& value) { m_customerAddressHasBeenSet = true; m_customerAddress = std::move(value); }
101 inline void SetCustomerAddress(const char* value) { m_customerAddressHasBeenSet = true; m_customerAddress.assign(value); }
102 inline NewBGPPeer& WithCustomerAddress(const Aws::String& value) { SetCustomerAddress(value); return *this;}
103 inline NewBGPPeer& WithCustomerAddress(Aws::String&& value) { SetCustomerAddress(std::move(value)); return *this;}
104 inline NewBGPPeer& WithCustomerAddress(const char* value) { SetCustomerAddress(value); return *this;}
106 private:
107
108 int m_asn;
109 bool m_asnHasBeenSet = false;
110
111 Aws::String m_authKey;
112 bool m_authKeyHasBeenSet = false;
113
114 AddressFamily m_addressFamily;
115 bool m_addressFamilyHasBeenSet = false;
116
117 Aws::String m_amazonAddress;
118 bool m_amazonAddressHasBeenSet = false;
119
120 Aws::String m_customerAddress;
121 bool m_customerAddressHasBeenSet = false;
122 };
123
124} // namespace Model
125} // namespace DirectConnect
126} // namespace Aws
NewBGPPeer & WithAddressFamily(AddressFamily &&value)
Definition NewBGPPeer.h:76
void SetCustomerAddress(Aws::String &&value)
Definition NewBGPPeer.h:100
AWS_DIRECTCONNECT_API NewBGPPeer & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetAmazonAddress(const Aws::String &value)
Definition NewBGPPeer.h:85
const Aws::String & GetAmazonAddress() const
Definition NewBGPPeer.h:83
AWS_DIRECTCONNECT_API NewBGPPeer()
NewBGPPeer & WithCustomerAddress(const Aws::String &value)
Definition NewBGPPeer.h:102
void SetAmazonAddress(Aws::String &&value)
Definition NewBGPPeer.h:86
NewBGPPeer & WithAuthKey(Aws::String &&value)
Definition NewBGPPeer.h:63
const Aws::String & GetAuthKey() const
Definition NewBGPPeer.h:57
void SetCustomerAddress(const Aws::String &value)
Definition NewBGPPeer.h:99
NewBGPPeer & WithAuthKey(const Aws::String &value)
Definition NewBGPPeer.h:62
const AddressFamily & GetAddressFamily() const
Definition NewBGPPeer.h:71
NewBGPPeer & WithCustomerAddress(const char *value)
Definition NewBGPPeer.h:104
void SetAddressFamily(const AddressFamily &value)
Definition NewBGPPeer.h:73
const Aws::String & GetCustomerAddress() const
Definition NewBGPPeer.h:97
AWS_DIRECTCONNECT_API NewBGPPeer(Aws::Utils::Json::JsonView jsonValue)
void SetAmazonAddress(const char *value)
Definition NewBGPPeer.h:87
void SetAuthKey(const char *value)
Definition NewBGPPeer.h:61
NewBGPPeer & WithAsn(int value)
Definition NewBGPPeer.h:49
NewBGPPeer & WithAddressFamily(const AddressFamily &value)
Definition NewBGPPeer.h:75
void SetAddressFamily(AddressFamily &&value)
Definition NewBGPPeer.h:74
NewBGPPeer & WithAmazonAddress(const char *value)
Definition NewBGPPeer.h:90
NewBGPPeer & WithAuthKey(const char *value)
Definition NewBGPPeer.h:64
NewBGPPeer & WithAmazonAddress(Aws::String &&value)
Definition NewBGPPeer.h:89
AWS_DIRECTCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAuthKey(const Aws::String &value)
Definition NewBGPPeer.h:59
NewBGPPeer & WithCustomerAddress(Aws::String &&value)
Definition NewBGPPeer.h:103
void SetAuthKey(Aws::String &&value)
Definition NewBGPPeer.h:60
NewBGPPeer & WithAmazonAddress(const Aws::String &value)
Definition NewBGPPeer.h:88
void SetCustomerAddress(const char *value)
Definition NewBGPPeer.h:101
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue