AWS SDK for C++

AWS SDK for C++ Version 1.11.641

Loading...
Searching...
No Matches
NewPrivateVirtualInterfaceAllocation.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
36 {
37 public:
38 AWS_DIRECTCONNECT_API NewPrivateVirtualInterfaceAllocation() = default;
41 AWS_DIRECTCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
50 inline const Aws::String& GetVirtualInterfaceName() const { return m_virtualInterfaceName; }
51 inline bool VirtualInterfaceNameHasBeenSet() const { return m_virtualInterfaceNameHasBeenSet; }
52 template<typename VirtualInterfaceNameT = Aws::String>
53 void SetVirtualInterfaceName(VirtualInterfaceNameT&& value) { m_virtualInterfaceNameHasBeenSet = true; m_virtualInterfaceName = std::forward<VirtualInterfaceNameT>(value); }
54 template<typename VirtualInterfaceNameT = Aws::String>
55 NewPrivateVirtualInterfaceAllocation& WithVirtualInterfaceName(VirtualInterfaceNameT&& value) { SetVirtualInterfaceName(std::forward<VirtualInterfaceNameT>(value)); return *this;}
57
59
62 inline int GetVlan() const { return m_vlan; }
63 inline bool VlanHasBeenSet() const { return m_vlanHasBeenSet; }
64 inline void SetVlan(int value) { m_vlanHasBeenSet = true; m_vlan = value; }
65 inline NewPrivateVirtualInterfaceAllocation& WithVlan(int value) { SetVlan(value); return *this;}
67
69
81 inline int GetAsn() const { return m_asn; }
82 inline bool AsnHasBeenSet() const { return m_asnHasBeenSet; }
83 inline void SetAsn(int value) { m_asnHasBeenSet = true; m_asn = value; }
84 inline NewPrivateVirtualInterfaceAllocation& WithAsn(int value) { SetAsn(value); return *this;}
86
88
98 inline long long GetAsnLong() const { return m_asnLong; }
99 inline bool AsnLongHasBeenSet() const { return m_asnLongHasBeenSet; }
100 inline void SetAsnLong(long long value) { m_asnLongHasBeenSet = true; m_asnLong = value; }
101 inline NewPrivateVirtualInterfaceAllocation& WithAsnLong(long long value) { SetAsnLong(value); return *this;}
103
105
109 inline int GetMtu() const { return m_mtu; }
110 inline bool MtuHasBeenSet() const { return m_mtuHasBeenSet; }
111 inline void SetMtu(int value) { m_mtuHasBeenSet = true; m_mtu = value; }
112 inline NewPrivateVirtualInterfaceAllocation& WithMtu(int value) { SetMtu(value); return *this;}
114
116
120 inline const Aws::String& GetAuthKey() const { return m_authKey; }
121 inline bool AuthKeyHasBeenSet() const { return m_authKeyHasBeenSet; }
122 template<typename AuthKeyT = Aws::String>
123 void SetAuthKey(AuthKeyT&& value) { m_authKeyHasBeenSet = true; m_authKey = std::forward<AuthKeyT>(value); }
124 template<typename AuthKeyT = Aws::String>
125 NewPrivateVirtualInterfaceAllocation& WithAuthKey(AuthKeyT&& value) { SetAuthKey(std::forward<AuthKeyT>(value)); return *this;}
127
129
132 inline const Aws::String& GetAmazonAddress() const { return m_amazonAddress; }
133 inline bool AmazonAddressHasBeenSet() const { return m_amazonAddressHasBeenSet; }
134 template<typename AmazonAddressT = Aws::String>
135 void SetAmazonAddress(AmazonAddressT&& value) { m_amazonAddressHasBeenSet = true; m_amazonAddress = std::forward<AmazonAddressT>(value); }
136 template<typename AmazonAddressT = Aws::String>
137 NewPrivateVirtualInterfaceAllocation& WithAmazonAddress(AmazonAddressT&& value) { SetAmazonAddress(std::forward<AmazonAddressT>(value)); return *this;}
139
141
144 inline AddressFamily GetAddressFamily() const { return m_addressFamily; }
145 inline bool AddressFamilyHasBeenSet() const { return m_addressFamilyHasBeenSet; }
146 inline void SetAddressFamily(AddressFamily value) { m_addressFamilyHasBeenSet = true; m_addressFamily = value; }
149
151
154 inline const Aws::String& GetCustomerAddress() const { return m_customerAddress; }
155 inline bool CustomerAddressHasBeenSet() const { return m_customerAddressHasBeenSet; }
156 template<typename CustomerAddressT = Aws::String>
157 void SetCustomerAddress(CustomerAddressT&& value) { m_customerAddressHasBeenSet = true; m_customerAddress = std::forward<CustomerAddressT>(value); }
158 template<typename CustomerAddressT = Aws::String>
159 NewPrivateVirtualInterfaceAllocation& WithCustomerAddress(CustomerAddressT&& value) { SetCustomerAddress(std::forward<CustomerAddressT>(value)); return *this;}
161
163
166 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
167 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
168 template<typename TagsT = Aws::Vector<Tag>>
169 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
170 template<typename TagsT = Aws::Vector<Tag>>
171 NewPrivateVirtualInterfaceAllocation& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
172 template<typename TagsT = Tag>
173 NewPrivateVirtualInterfaceAllocation& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
175 private:
176
177 Aws::String m_virtualInterfaceName;
178 bool m_virtualInterfaceNameHasBeenSet = false;
179
180 int m_vlan{0};
181 bool m_vlanHasBeenSet = false;
182
183 int m_asn{0};
184 bool m_asnHasBeenSet = false;
185
186 long long m_asnLong{0};
187 bool m_asnLongHasBeenSet = false;
188
189 int m_mtu{0};
190 bool m_mtuHasBeenSet = false;
191
192 Aws::String m_authKey;
193 bool m_authKeyHasBeenSet = false;
194
195 Aws::String m_amazonAddress;
196 bool m_amazonAddressHasBeenSet = false;
197
198 AddressFamily m_addressFamily{AddressFamily::NOT_SET};
199 bool m_addressFamilyHasBeenSet = false;
200
201 Aws::String m_customerAddress;
202 bool m_customerAddressHasBeenSet = false;
203
204 Aws::Vector<Tag> m_tags;
205 bool m_tagsHasBeenSet = false;
206 };
207
208} // namespace Model
209} // namespace DirectConnect
210} // namespace Aws
AWS_DIRECTCONNECT_API NewPrivateVirtualInterfaceAllocation()=default
AWS_DIRECTCONNECT_API NewPrivateVirtualInterfaceAllocation(Aws::Utils::Json::JsonView jsonValue)
AWS_DIRECTCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
NewPrivateVirtualInterfaceAllocation & WithVirtualInterfaceName(VirtualInterfaceNameT &&value)
NewPrivateVirtualInterfaceAllocation & WithAddressFamily(AddressFamily value)
NewPrivateVirtualInterfaceAllocation & WithCustomerAddress(CustomerAddressT &&value)
NewPrivateVirtualInterfaceAllocation & WithAuthKey(AuthKeyT &&value)
AWS_DIRECTCONNECT_API NewPrivateVirtualInterfaceAllocation & operator=(Aws::Utils::Json::JsonView jsonValue)
NewPrivateVirtualInterfaceAllocation & WithAmazonAddress(AmazonAddressT &&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