AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
NewTransitVirtualInterfaceAllocation.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 NewTransitVirtualInterfaceAllocation();
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 NewTransitVirtualInterfaceAllocation& 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 NewTransitVirtualInterfaceAllocation& 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 NewTransitVirtualInterfaceAllocation& 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 NewTransitVirtualInterfaceAllocation& WithAuthKey(const Aws::String& value) { SetAuthKey(value); return *this;}
103 inline NewTransitVirtualInterfaceAllocation& WithAuthKey(Aws::String&& value) { SetAuthKey(std::move(value)); return *this;}
104 inline NewTransitVirtualInterfaceAllocation& 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 NewTransitVirtualInterfaceAllocation& WithAmazonAddress(Aws::String&& value) { SetAmazonAddress(std::move(value)); return *this;}
118 inline NewTransitVirtualInterfaceAllocation& WithAmazonAddress(const char* value) { SetAmazonAddress(value); return *this;}
120
122
125 inline const Aws::String& GetCustomerAddress() const{ return m_customerAddress; }
126 inline bool CustomerAddressHasBeenSet() const { return m_customerAddressHasBeenSet; }
127 inline void SetCustomerAddress(const Aws::String& value) { m_customerAddressHasBeenSet = true; m_customerAddress = value; }
128 inline void SetCustomerAddress(Aws::String&& value) { m_customerAddressHasBeenSet = true; m_customerAddress = std::move(value); }
129 inline void SetCustomerAddress(const char* value) { m_customerAddressHasBeenSet = true; m_customerAddress.assign(value); }
132 inline NewTransitVirtualInterfaceAllocation& WithCustomerAddress(const char* value) { SetCustomerAddress(value); return *this;}
134
136
139 inline const AddressFamily& GetAddressFamily() const{ return m_addressFamily; }
140 inline bool AddressFamilyHasBeenSet() const { return m_addressFamilyHasBeenSet; }
141 inline void SetAddressFamily(const AddressFamily& value) { m_addressFamilyHasBeenSet = true; m_addressFamily = value; }
142 inline void SetAddressFamily(AddressFamily&& value) { m_addressFamilyHasBeenSet = true; m_addressFamily = std::move(value); }
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 NewTransitVirtualInterfaceAllocation& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
156 inline NewTransitVirtualInterfaceAllocation& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
157 inline NewTransitVirtualInterfaceAllocation& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
158 inline NewTransitVirtualInterfaceAllocation& 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 Aws::String m_customerAddress;
181 bool m_customerAddressHasBeenSet = false;
182
183 AddressFamily m_addressFamily;
184 bool m_addressFamilyHasBeenSet = false;
185
186 Aws::Vector<Tag> m_tags;
187 bool m_tagsHasBeenSet = false;
188 };
189
190} // namespace Model
191} // namespace DirectConnect
192} // namespace Aws
NewTransitVirtualInterfaceAllocation & WithAmazonAddress(const Aws::String &value)
NewTransitVirtualInterfaceAllocation & WithAmazonAddress(Aws::String &&value)
AWS_DIRECTCONNECT_API NewTransitVirtualInterfaceAllocation & operator=(Aws::Utils::Json::JsonView jsonValue)
NewTransitVirtualInterfaceAllocation & WithAddressFamily(const AddressFamily &value)
NewTransitVirtualInterfaceAllocation & WithCustomerAddress(const char *value)
NewTransitVirtualInterfaceAllocation & WithAmazonAddress(const char *value)
NewTransitVirtualInterfaceAllocation & WithCustomerAddress(Aws::String &&value)
NewTransitVirtualInterfaceAllocation & WithVirtualInterfaceName(const Aws::String &value)
NewTransitVirtualInterfaceAllocation & WithTags(Aws::Vector< Tag > &&value)
AWS_DIRECTCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
NewTransitVirtualInterfaceAllocation & WithAddressFamily(AddressFamily &&value)
NewTransitVirtualInterfaceAllocation & WithVirtualInterfaceName(Aws::String &&value)
NewTransitVirtualInterfaceAllocation & WithCustomerAddress(const Aws::String &value)
NewTransitVirtualInterfaceAllocation & WithAuthKey(const char *value)
NewTransitVirtualInterfaceAllocation & WithTags(const Aws::Vector< Tag > &value)
NewTransitVirtualInterfaceAllocation & WithVirtualInterfaceName(const char *value)
AWS_DIRECTCONNECT_API NewTransitVirtualInterfaceAllocation(Aws::Utils::Json::JsonView jsonValue)
NewTransitVirtualInterfaceAllocation & WithAuthKey(Aws::String &&value)
NewTransitVirtualInterfaceAllocation & WithAuthKey(const Aws::String &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