AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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
73 inline int GetAsn() const { return m_asn; }
74 inline bool AsnHasBeenSet() const { return m_asnHasBeenSet; }
75 inline void SetAsn(int value) { m_asnHasBeenSet = true; m_asn = value; }
76 inline NewPrivateVirtualInterfaceAllocation& WithAsn(int value) { SetAsn(value); return *this;}
78
80
84 inline int GetMtu() const { return m_mtu; }
85 inline bool MtuHasBeenSet() const { return m_mtuHasBeenSet; }
86 inline void SetMtu(int value) { m_mtuHasBeenSet = true; m_mtu = value; }
87 inline NewPrivateVirtualInterfaceAllocation& WithMtu(int value) { SetMtu(value); return *this;}
89
91
95 inline const Aws::String& GetAuthKey() const { return m_authKey; }
96 inline bool AuthKeyHasBeenSet() const { return m_authKeyHasBeenSet; }
97 template<typename AuthKeyT = Aws::String>
98 void SetAuthKey(AuthKeyT&& value) { m_authKeyHasBeenSet = true; m_authKey = std::forward<AuthKeyT>(value); }
99 template<typename AuthKeyT = Aws::String>
100 NewPrivateVirtualInterfaceAllocation& WithAuthKey(AuthKeyT&& value) { SetAuthKey(std::forward<AuthKeyT>(value)); return *this;}
102
104
107 inline const Aws::String& GetAmazonAddress() const { return m_amazonAddress; }
108 inline bool AmazonAddressHasBeenSet() const { return m_amazonAddressHasBeenSet; }
109 template<typename AmazonAddressT = Aws::String>
110 void SetAmazonAddress(AmazonAddressT&& value) { m_amazonAddressHasBeenSet = true; m_amazonAddress = std::forward<AmazonAddressT>(value); }
111 template<typename AmazonAddressT = Aws::String>
112 NewPrivateVirtualInterfaceAllocation& WithAmazonAddress(AmazonAddressT&& value) { SetAmazonAddress(std::forward<AmazonAddressT>(value)); return *this;}
114
116
119 inline AddressFamily GetAddressFamily() const { return m_addressFamily; }
120 inline bool AddressFamilyHasBeenSet() const { return m_addressFamilyHasBeenSet; }
121 inline void SetAddressFamily(AddressFamily value) { m_addressFamilyHasBeenSet = true; m_addressFamily = value; }
124
126
129 inline const Aws::String& GetCustomerAddress() const { return m_customerAddress; }
130 inline bool CustomerAddressHasBeenSet() const { return m_customerAddressHasBeenSet; }
131 template<typename CustomerAddressT = Aws::String>
132 void SetCustomerAddress(CustomerAddressT&& value) { m_customerAddressHasBeenSet = true; m_customerAddress = std::forward<CustomerAddressT>(value); }
133 template<typename CustomerAddressT = Aws::String>
134 NewPrivateVirtualInterfaceAllocation& WithCustomerAddress(CustomerAddressT&& value) { SetCustomerAddress(std::forward<CustomerAddressT>(value)); return *this;}
136
138
141 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
142 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
143 template<typename TagsT = Aws::Vector<Tag>>
144 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
145 template<typename TagsT = Aws::Vector<Tag>>
146 NewPrivateVirtualInterfaceAllocation& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
147 template<typename TagsT = Tag>
148 NewPrivateVirtualInterfaceAllocation& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
150 private:
151
152 Aws::String m_virtualInterfaceName;
153 bool m_virtualInterfaceNameHasBeenSet = false;
154
155 int m_vlan{0};
156 bool m_vlanHasBeenSet = false;
157
158 int m_asn{0};
159 bool m_asnHasBeenSet = false;
160
161 int m_mtu{0};
162 bool m_mtuHasBeenSet = false;
163
164 Aws::String m_authKey;
165 bool m_authKeyHasBeenSet = false;
166
167 Aws::String m_amazonAddress;
168 bool m_amazonAddressHasBeenSet = false;
169
170 AddressFamily m_addressFamily{AddressFamily::NOT_SET};
171 bool m_addressFamilyHasBeenSet = false;
172
173 Aws::String m_customerAddress;
174 bool m_customerAddressHasBeenSet = false;
175
176 Aws::Vector<Tag> m_tags;
177 bool m_tagsHasBeenSet = false;
178 };
179
180} // namespace Model
181} // namespace DirectConnect
182} // 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