AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
NewTransitVirtualInterface.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 <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/directconnect/model/Tag.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace DirectConnect
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_DIRECTCONNECT_API NewTransitVirtualInterface();
40 AWS_DIRECTCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
49 inline const Aws::String& GetVirtualInterfaceName() const{ return m_virtualInterfaceName; }
50 inline bool VirtualInterfaceNameHasBeenSet() const { return m_virtualInterfaceNameHasBeenSet; }
51 inline void SetVirtualInterfaceName(const Aws::String& value) { m_virtualInterfaceNameHasBeenSet = true; m_virtualInterfaceName = value; }
52 inline void SetVirtualInterfaceName(Aws::String&& value) { m_virtualInterfaceNameHasBeenSet = true; m_virtualInterfaceName = std::move(value); }
53 inline void SetVirtualInterfaceName(const char* value) { m_virtualInterfaceNameHasBeenSet = true; m_virtualInterfaceName.assign(value); }
56 inline NewTransitVirtualInterface& WithVirtualInterfaceName(const char* value) { SetVirtualInterfaceName(value); return *this;}
58
60
63 inline int GetVlan() const{ return m_vlan; }
64 inline bool VlanHasBeenSet() const { return m_vlanHasBeenSet; }
65 inline void SetVlan(int value) { m_vlanHasBeenSet = true; m_vlan = value; }
66 inline NewTransitVirtualInterface& WithVlan(int value) { SetVlan(value); return *this;}
68
70
74 inline int GetAsn() const{ return m_asn; }
75 inline bool AsnHasBeenSet() const { return m_asnHasBeenSet; }
76 inline void SetAsn(int value) { m_asnHasBeenSet = true; m_asn = value; }
77 inline NewTransitVirtualInterface& WithAsn(int value) { SetAsn(value); return *this;}
79
81
85 inline int GetMtu() const{ return m_mtu; }
86 inline bool MtuHasBeenSet() const { return m_mtuHasBeenSet; }
87 inline void SetMtu(int value) { m_mtuHasBeenSet = true; m_mtu = value; }
88 inline NewTransitVirtualInterface& WithMtu(int value) { SetMtu(value); return *this;}
90
92
96 inline const Aws::String& GetAuthKey() const{ return m_authKey; }
97 inline bool AuthKeyHasBeenSet() const { return m_authKeyHasBeenSet; }
98 inline void SetAuthKey(const Aws::String& value) { m_authKeyHasBeenSet = true; m_authKey = value; }
99 inline void SetAuthKey(Aws::String&& value) { m_authKeyHasBeenSet = true; m_authKey = std::move(value); }
100 inline void SetAuthKey(const char* value) { m_authKeyHasBeenSet = true; m_authKey.assign(value); }
101 inline NewTransitVirtualInterface& WithAuthKey(const Aws::String& value) { SetAuthKey(value); return *this;}
102 inline NewTransitVirtualInterface& WithAuthKey(Aws::String&& value) { SetAuthKey(std::move(value)); return *this;}
103 inline NewTransitVirtualInterface& WithAuthKey(const char* value) { SetAuthKey(value); return *this;}
105
107
110 inline const Aws::String& GetAmazonAddress() const{ return m_amazonAddress; }
111 inline bool AmazonAddressHasBeenSet() const { return m_amazonAddressHasBeenSet; }
112 inline void SetAmazonAddress(const Aws::String& value) { m_amazonAddressHasBeenSet = true; m_amazonAddress = value; }
113 inline void SetAmazonAddress(Aws::String&& value) { m_amazonAddressHasBeenSet = true; m_amazonAddress = std::move(value); }
114 inline void SetAmazonAddress(const char* value) { m_amazonAddressHasBeenSet = true; m_amazonAddress.assign(value); }
115 inline NewTransitVirtualInterface& WithAmazonAddress(const Aws::String& value) { SetAmazonAddress(value); return *this;}
116 inline NewTransitVirtualInterface& WithAmazonAddress(Aws::String&& value) { SetAmazonAddress(std::move(value)); return *this;}
117 inline NewTransitVirtualInterface& WithAmazonAddress(const char* value) { SetAmazonAddress(value); return *this;}
119
121
124 inline const Aws::String& GetCustomerAddress() const{ return m_customerAddress; }
125 inline bool CustomerAddressHasBeenSet() const { return m_customerAddressHasBeenSet; }
126 inline void SetCustomerAddress(const Aws::String& value) { m_customerAddressHasBeenSet = true; m_customerAddress = value; }
127 inline void SetCustomerAddress(Aws::String&& value) { m_customerAddressHasBeenSet = true; m_customerAddress = std::move(value); }
128 inline void SetCustomerAddress(const char* value) { m_customerAddressHasBeenSet = true; m_customerAddress.assign(value); }
130 inline NewTransitVirtualInterface& WithCustomerAddress(Aws::String&& value) { SetCustomerAddress(std::move(value)); return *this;}
131 inline NewTransitVirtualInterface& WithCustomerAddress(const char* value) { SetCustomerAddress(value); return *this;}
133
135
138 inline const AddressFamily& GetAddressFamily() const{ return m_addressFamily; }
139 inline bool AddressFamilyHasBeenSet() const { return m_addressFamilyHasBeenSet; }
140 inline void SetAddressFamily(const AddressFamily& value) { m_addressFamilyHasBeenSet = true; m_addressFamily = value; }
141 inline void SetAddressFamily(AddressFamily&& value) { m_addressFamilyHasBeenSet = true; m_addressFamily = std::move(value); }
142 inline NewTransitVirtualInterface& WithAddressFamily(const AddressFamily& value) { SetAddressFamily(value); return *this;}
143 inline NewTransitVirtualInterface& WithAddressFamily(AddressFamily&& value) { SetAddressFamily(std::move(value)); return *this;}
145
147
150 inline const Aws::String& GetDirectConnectGatewayId() const{ return m_directConnectGatewayId; }
151 inline bool DirectConnectGatewayIdHasBeenSet() const { return m_directConnectGatewayIdHasBeenSet; }
152 inline void SetDirectConnectGatewayId(const Aws::String& value) { m_directConnectGatewayIdHasBeenSet = true; m_directConnectGatewayId = value; }
153 inline void SetDirectConnectGatewayId(Aws::String&& value) { m_directConnectGatewayIdHasBeenSet = true; m_directConnectGatewayId = std::move(value); }
154 inline void SetDirectConnectGatewayId(const char* value) { m_directConnectGatewayIdHasBeenSet = true; m_directConnectGatewayId.assign(value); }
157 inline NewTransitVirtualInterface& WithDirectConnectGatewayId(const char* value) { SetDirectConnectGatewayId(value); return *this;}
159
161
164 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
165 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
166 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
167 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
168 inline NewTransitVirtualInterface& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
169 inline NewTransitVirtualInterface& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
170 inline NewTransitVirtualInterface& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
171 inline NewTransitVirtualInterface& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
173
175
178 inline bool GetEnableSiteLink() const{ return m_enableSiteLink; }
179 inline bool EnableSiteLinkHasBeenSet() const { return m_enableSiteLinkHasBeenSet; }
180 inline void SetEnableSiteLink(bool value) { m_enableSiteLinkHasBeenSet = true; m_enableSiteLink = value; }
181 inline NewTransitVirtualInterface& WithEnableSiteLink(bool value) { SetEnableSiteLink(value); return *this;}
183 private:
184
185 Aws::String m_virtualInterfaceName;
186 bool m_virtualInterfaceNameHasBeenSet = false;
187
188 int m_vlan;
189 bool m_vlanHasBeenSet = false;
190
191 int m_asn;
192 bool m_asnHasBeenSet = false;
193
194 int m_mtu;
195 bool m_mtuHasBeenSet = false;
196
197 Aws::String m_authKey;
198 bool m_authKeyHasBeenSet = false;
199
200 Aws::String m_amazonAddress;
201 bool m_amazonAddressHasBeenSet = false;
202
203 Aws::String m_customerAddress;
204 bool m_customerAddressHasBeenSet = false;
205
206 AddressFamily m_addressFamily;
207 bool m_addressFamilyHasBeenSet = false;
208
209 Aws::String m_directConnectGatewayId;
210 bool m_directConnectGatewayIdHasBeenSet = false;
211
212 Aws::Vector<Tag> m_tags;
213 bool m_tagsHasBeenSet = false;
214
215 bool m_enableSiteLink;
216 bool m_enableSiteLinkHasBeenSet = false;
217 };
218
219} // namespace Model
220} // namespace DirectConnect
221} // namespace Aws
NewTransitVirtualInterface & WithAuthKey(const Aws::String &value)
NewTransitVirtualInterface & WithVirtualInterfaceName(const char *value)
NewTransitVirtualInterface & WithAmazonAddress(const Aws::String &value)
NewTransitVirtualInterface & WithDirectConnectGatewayId(const Aws::String &value)
NewTransitVirtualInterface & WithAddressFamily(const AddressFamily &value)
AWS_DIRECTCONNECT_API NewTransitVirtualInterface(Aws::Utils::Json::JsonView jsonValue)
NewTransitVirtualInterface & WithCustomerAddress(const char *value)
NewTransitVirtualInterface & WithTags(const Aws::Vector< Tag > &value)
AWS_DIRECTCONNECT_API NewTransitVirtualInterface & operator=(Aws::Utils::Json::JsonView jsonValue)
NewTransitVirtualInterface & WithAuthKey(const char *value)
NewTransitVirtualInterface & WithVirtualInterfaceName(Aws::String &&value)
NewTransitVirtualInterface & WithEnableSiteLink(bool value)
AWS_DIRECTCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
NewTransitVirtualInterface & WithAddressFamily(AddressFamily &&value)
NewTransitVirtualInterface & WithDirectConnectGatewayId(const char *value)
NewTransitVirtualInterface & WithCustomerAddress(Aws::String &&value)
NewTransitVirtualInterface & WithVirtualInterfaceName(const Aws::String &value)
NewTransitVirtualInterface & WithDirectConnectGatewayId(Aws::String &&value)
NewTransitVirtualInterface & WithAuthKey(Aws::String &&value)
NewTransitVirtualInterface & WithAmazonAddress(Aws::String &&value)
NewTransitVirtualInterface & AddTags(const Tag &value)
NewTransitVirtualInterface & WithCustomerAddress(const Aws::String &value)
NewTransitVirtualInterface & WithTags(Aws::Vector< Tag > &&value)
NewTransitVirtualInterface & WithAmazonAddress(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue