AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetVirtualInterfaceName(const Aws::String& value) { m_virtualInterfaceNameHasBeenSet = true; m_virtualInterfaceName = value; }
53 inline void SetVirtualInterfaceName(Aws::String&& value) { m_virtualInterfaceNameHasBeenSet = true; m_virtualInterfaceName = std::move(value); }
54 inline void SetVirtualInterfaceName(const char* value) { m_virtualInterfaceNameHasBeenSet = true; m_virtualInterfaceName.assign(value); }
59
61
64 inline int GetVlan() const{ return m_vlan; }
65 inline bool VlanHasBeenSet() const { return m_vlanHasBeenSet; }
66 inline void SetVlan(int value) { m_vlanHasBeenSet = true; m_vlan = value; }
67 inline NewPrivateVirtualInterfaceAllocation& WithVlan(int value) { SetVlan(value); return *this;}
69
71
75 inline int GetAsn() const{ return m_asn; }
76 inline bool AsnHasBeenSet() const { return m_asnHasBeenSet; }
77 inline void SetAsn(int value) { m_asnHasBeenSet = true; m_asn = value; }
78 inline NewPrivateVirtualInterfaceAllocation& WithAsn(int value) { SetAsn(value); return *this;}
80
82
86 inline int GetMtu() const{ return m_mtu; }
87 inline bool MtuHasBeenSet() const { return m_mtuHasBeenSet; }
88 inline void SetMtu(int value) { m_mtuHasBeenSet = true; m_mtu = value; }
89 inline NewPrivateVirtualInterfaceAllocation& WithMtu(int value) { SetMtu(value); return *this;}
91
93
97 inline const Aws::String& GetAuthKey() const{ return m_authKey; }
98 inline bool AuthKeyHasBeenSet() const { return m_authKeyHasBeenSet; }
99 inline void SetAuthKey(const Aws::String& value) { m_authKeyHasBeenSet = true; m_authKey = value; }
100 inline void SetAuthKey(Aws::String&& value) { m_authKeyHasBeenSet = true; m_authKey = std::move(value); }
101 inline void SetAuthKey(const char* value) { m_authKeyHasBeenSet = true; m_authKey.assign(value); }
102 inline NewPrivateVirtualInterfaceAllocation& WithAuthKey(const Aws::String& value) { SetAuthKey(value); return *this;}
103 inline NewPrivateVirtualInterfaceAllocation& WithAuthKey(Aws::String&& value) { SetAuthKey(std::move(value)); return *this;}
104 inline NewPrivateVirtualInterfaceAllocation& WithAuthKey(const char* value) { SetAuthKey(value); return *this;}
106
108
111 inline const Aws::String& GetAmazonAddress() const{ return m_amazonAddress; }
112 inline bool AmazonAddressHasBeenSet() const { return m_amazonAddressHasBeenSet; }
113 inline void SetAmazonAddress(const Aws::String& value) { m_amazonAddressHasBeenSet = true; m_amazonAddress = value; }
114 inline void SetAmazonAddress(Aws::String&& value) { m_amazonAddressHasBeenSet = true; m_amazonAddress = std::move(value); }
115 inline void SetAmazonAddress(const char* value) { m_amazonAddressHasBeenSet = true; m_amazonAddress.assign(value); }
117 inline NewPrivateVirtualInterfaceAllocation& WithAmazonAddress(Aws::String&& value) { SetAmazonAddress(std::move(value)); return *this;}
118 inline NewPrivateVirtualInterfaceAllocation& WithAmazonAddress(const char* value) { SetAmazonAddress(value); return *this;}
120
122
125 inline const AddressFamily& GetAddressFamily() const{ return m_addressFamily; }
126 inline bool AddressFamilyHasBeenSet() const { return m_addressFamilyHasBeenSet; }
127 inline void SetAddressFamily(const AddressFamily& value) { m_addressFamilyHasBeenSet = true; m_addressFamily = value; }
128 inline void SetAddressFamily(AddressFamily&& value) { m_addressFamilyHasBeenSet = true; m_addressFamily = std::move(value); }
132
134
137 inline const Aws::String& GetCustomerAddress() const{ return m_customerAddress; }
138 inline bool CustomerAddressHasBeenSet() const { return m_customerAddressHasBeenSet; }
139 inline void SetCustomerAddress(const Aws::String& value) { m_customerAddressHasBeenSet = true; m_customerAddress = value; }
140 inline void SetCustomerAddress(Aws::String&& value) { m_customerAddressHasBeenSet = true; m_customerAddress = std::move(value); }
141 inline void SetCustomerAddress(const char* value) { m_customerAddressHasBeenSet = true; m_customerAddress.assign(value); }
144 inline NewPrivateVirtualInterfaceAllocation& WithCustomerAddress(const char* value) { SetCustomerAddress(value); return *this;}
146
148
151 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
152 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
153 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
154 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
155 inline NewPrivateVirtualInterfaceAllocation& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
156 inline NewPrivateVirtualInterfaceAllocation& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
157 inline NewPrivateVirtualInterfaceAllocation& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
158 inline NewPrivateVirtualInterfaceAllocation& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
160 private:
161
162 Aws::String m_virtualInterfaceName;
163 bool m_virtualInterfaceNameHasBeenSet = false;
164
165 int m_vlan;
166 bool m_vlanHasBeenSet = false;
167
168 int m_asn;
169 bool m_asnHasBeenSet = false;
170
171 int m_mtu;
172 bool m_mtuHasBeenSet = false;
173
174 Aws::String m_authKey;
175 bool m_authKeyHasBeenSet = false;
176
177 Aws::String m_amazonAddress;
178 bool m_amazonAddressHasBeenSet = false;
179
180 AddressFamily m_addressFamily;
181 bool m_addressFamilyHasBeenSet = false;
182
183 Aws::String m_customerAddress;
184 bool m_customerAddressHasBeenSet = false;
185
186 Aws::Vector<Tag> m_tags;
187 bool m_tagsHasBeenSet = false;
188 };
189
190} // namespace Model
191} // namespace DirectConnect
192} // namespace Aws
NewPrivateVirtualInterfaceAllocation & WithAuthKey(const char *value)
NewPrivateVirtualInterfaceAllocation & WithTags(Aws::Vector< Tag > &&value)
NewPrivateVirtualInterfaceAllocation & WithAmazonAddress(const Aws::String &value)
AWS_DIRECTCONNECT_API NewPrivateVirtualInterfaceAllocation(Aws::Utils::Json::JsonView jsonValue)
AWS_DIRECTCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
NewPrivateVirtualInterfaceAllocation & WithAmazonAddress(Aws::String &&value)
NewPrivateVirtualInterfaceAllocation & WithAddressFamily(const AddressFamily &value)
NewPrivateVirtualInterfaceAllocation & WithAddressFamily(AddressFamily &&value)
NewPrivateVirtualInterfaceAllocation & WithVirtualInterfaceName(const char *value)
NewPrivateVirtualInterfaceAllocation & WithAmazonAddress(const char *value)
NewPrivateVirtualInterfaceAllocation & WithVirtualInterfaceName(const Aws::String &value)
NewPrivateVirtualInterfaceAllocation & WithTags(const Aws::Vector< Tag > &value)
NewPrivateVirtualInterfaceAllocation & WithVirtualInterfaceName(Aws::String &&value)
NewPrivateVirtualInterfaceAllocation & WithCustomerAddress(const Aws::String &value)
NewPrivateVirtualInterfaceAllocation & WithAuthKey(Aws::String &&value)
NewPrivateVirtualInterfaceAllocation & WithAuthKey(const Aws::String &value)
NewPrivateVirtualInterfaceAllocation & WithCustomerAddress(Aws::String &&value)
AWS_DIRECTCONNECT_API NewPrivateVirtualInterfaceAllocation & operator=(Aws::Utils::Json::JsonView jsonValue)
NewPrivateVirtualInterfaceAllocation & WithCustomerAddress(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