AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
NewPublicVirtualInterfaceAllocation.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/RouteFilterPrefix.h>
12#include <aws/directconnect/model/Tag.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace DirectConnect
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_DIRECTCONNECT_API NewPublicVirtualInterfaceAllocation();
42 AWS_DIRECTCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
51 inline const Aws::String& GetVirtualInterfaceName() const{ return m_virtualInterfaceName; }
52 inline bool VirtualInterfaceNameHasBeenSet() const { return m_virtualInterfaceNameHasBeenSet; }
53 inline void SetVirtualInterfaceName(const Aws::String& value) { m_virtualInterfaceNameHasBeenSet = true; m_virtualInterfaceName = value; }
54 inline void SetVirtualInterfaceName(Aws::String&& value) { m_virtualInterfaceNameHasBeenSet = true; m_virtualInterfaceName = std::move(value); }
55 inline void SetVirtualInterfaceName(const char* value) { m_virtualInterfaceNameHasBeenSet = true; m_virtualInterfaceName.assign(value); }
60
62
65 inline int GetVlan() const{ return m_vlan; }
66 inline bool VlanHasBeenSet() const { return m_vlanHasBeenSet; }
67 inline void SetVlan(int value) { m_vlanHasBeenSet = true; m_vlan = value; }
68 inline NewPublicVirtualInterfaceAllocation& WithVlan(int value) { SetVlan(value); return *this;}
70
72
76 inline int GetAsn() const{ return m_asn; }
77 inline bool AsnHasBeenSet() const { return m_asnHasBeenSet; }
78 inline void SetAsn(int value) { m_asnHasBeenSet = true; m_asn = value; }
79 inline NewPublicVirtualInterfaceAllocation& WithAsn(int value) { SetAsn(value); return *this;}
81
83
87 inline const Aws::String& GetAuthKey() const{ return m_authKey; }
88 inline bool AuthKeyHasBeenSet() const { return m_authKeyHasBeenSet; }
89 inline void SetAuthKey(const Aws::String& value) { m_authKeyHasBeenSet = true; m_authKey = value; }
90 inline void SetAuthKey(Aws::String&& value) { m_authKeyHasBeenSet = true; m_authKey = std::move(value); }
91 inline void SetAuthKey(const char* value) { m_authKeyHasBeenSet = true; m_authKey.assign(value); }
92 inline NewPublicVirtualInterfaceAllocation& WithAuthKey(const Aws::String& value) { SetAuthKey(value); return *this;}
93 inline NewPublicVirtualInterfaceAllocation& WithAuthKey(Aws::String&& value) { SetAuthKey(std::move(value)); return *this;}
94 inline NewPublicVirtualInterfaceAllocation& WithAuthKey(const char* value) { SetAuthKey(value); return *this;}
96
98
101 inline const Aws::String& GetAmazonAddress() const{ return m_amazonAddress; }
102 inline bool AmazonAddressHasBeenSet() const { return m_amazonAddressHasBeenSet; }
103 inline void SetAmazonAddress(const Aws::String& value) { m_amazonAddressHasBeenSet = true; m_amazonAddress = value; }
104 inline void SetAmazonAddress(Aws::String&& value) { m_amazonAddressHasBeenSet = true; m_amazonAddress = std::move(value); }
105 inline void SetAmazonAddress(const char* value) { m_amazonAddressHasBeenSet = true; m_amazonAddress.assign(value); }
107 inline NewPublicVirtualInterfaceAllocation& WithAmazonAddress(Aws::String&& value) { SetAmazonAddress(std::move(value)); return *this;}
108 inline NewPublicVirtualInterfaceAllocation& WithAmazonAddress(const char* value) { SetAmazonAddress(value); return *this;}
110
112
115 inline const Aws::String& GetCustomerAddress() const{ return m_customerAddress; }
116 inline bool CustomerAddressHasBeenSet() const { return m_customerAddressHasBeenSet; }
117 inline void SetCustomerAddress(const Aws::String& value) { m_customerAddressHasBeenSet = true; m_customerAddress = value; }
118 inline void SetCustomerAddress(Aws::String&& value) { m_customerAddressHasBeenSet = true; m_customerAddress = std::move(value); }
119 inline void SetCustomerAddress(const char* value) { m_customerAddressHasBeenSet = true; m_customerAddress.assign(value); }
122 inline NewPublicVirtualInterfaceAllocation& WithCustomerAddress(const char* value) { SetCustomerAddress(value); return *this;}
124
126
129 inline const AddressFamily& GetAddressFamily() const{ return m_addressFamily; }
130 inline bool AddressFamilyHasBeenSet() const { return m_addressFamilyHasBeenSet; }
131 inline void SetAddressFamily(const AddressFamily& value) { m_addressFamilyHasBeenSet = true; m_addressFamily = value; }
132 inline void SetAddressFamily(AddressFamily&& value) { m_addressFamilyHasBeenSet = true; m_addressFamily = std::move(value); }
134 inline NewPublicVirtualInterfaceAllocation& WithAddressFamily(AddressFamily&& value) { SetAddressFamily(std::move(value)); return *this;}
136
138
142 inline const Aws::Vector<RouteFilterPrefix>& GetRouteFilterPrefixes() const{ return m_routeFilterPrefixes; }
143 inline bool RouteFilterPrefixesHasBeenSet() const { return m_routeFilterPrefixesHasBeenSet; }
144 inline void SetRouteFilterPrefixes(const Aws::Vector<RouteFilterPrefix>& value) { m_routeFilterPrefixesHasBeenSet = true; m_routeFilterPrefixes = value; }
145 inline void SetRouteFilterPrefixes(Aws::Vector<RouteFilterPrefix>&& value) { m_routeFilterPrefixesHasBeenSet = true; m_routeFilterPrefixes = std::move(value); }
148 inline NewPublicVirtualInterfaceAllocation& AddRouteFilterPrefixes(const RouteFilterPrefix& value) { m_routeFilterPrefixesHasBeenSet = true; m_routeFilterPrefixes.push_back(value); return *this; }
149 inline NewPublicVirtualInterfaceAllocation& AddRouteFilterPrefixes(RouteFilterPrefix&& value) { m_routeFilterPrefixesHasBeenSet = true; m_routeFilterPrefixes.push_back(std::move(value)); return *this; }
151
153
156 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
157 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
158 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
159 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
160 inline NewPublicVirtualInterfaceAllocation& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
161 inline NewPublicVirtualInterfaceAllocation& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
162 inline NewPublicVirtualInterfaceAllocation& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
163 inline NewPublicVirtualInterfaceAllocation& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
165 private:
166
167 Aws::String m_virtualInterfaceName;
168 bool m_virtualInterfaceNameHasBeenSet = false;
169
170 int m_vlan;
171 bool m_vlanHasBeenSet = false;
172
173 int m_asn;
174 bool m_asnHasBeenSet = false;
175
176 Aws::String m_authKey;
177 bool m_authKeyHasBeenSet = false;
178
179 Aws::String m_amazonAddress;
180 bool m_amazonAddressHasBeenSet = false;
181
182 Aws::String m_customerAddress;
183 bool m_customerAddressHasBeenSet = false;
184
185 AddressFamily m_addressFamily;
186 bool m_addressFamilyHasBeenSet = false;
187
188 Aws::Vector<RouteFilterPrefix> m_routeFilterPrefixes;
189 bool m_routeFilterPrefixesHasBeenSet = false;
190
191 Aws::Vector<Tag> m_tags;
192 bool m_tagsHasBeenSet = false;
193 };
194
195} // namespace Model
196} // namespace DirectConnect
197} // namespace Aws
NewPublicVirtualInterfaceAllocation & WithVirtualInterfaceName(const Aws::String &value)
NewPublicVirtualInterfaceAllocation & WithRouteFilterPrefixes(const Aws::Vector< RouteFilterPrefix > &value)
NewPublicVirtualInterfaceAllocation & WithVirtualInterfaceName(const char *value)
AWS_DIRECTCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
NewPublicVirtualInterfaceAllocation & WithTags(const Aws::Vector< Tag > &value)
void SetRouteFilterPrefixes(const Aws::Vector< RouteFilterPrefix > &value)
NewPublicVirtualInterfaceAllocation & WithCustomerAddress(Aws::String &&value)
NewPublicVirtualInterfaceAllocation & WithAmazonAddress(Aws::String &&value)
NewPublicVirtualInterfaceAllocation & WithAmazonAddress(const Aws::String &value)
AWS_DIRECTCONNECT_API NewPublicVirtualInterfaceAllocation(Aws::Utils::Json::JsonView jsonValue)
NewPublicVirtualInterfaceAllocation & WithCustomerAddress(const char *value)
NewPublicVirtualInterfaceAllocation & AddRouteFilterPrefixes(RouteFilterPrefix &&value)
NewPublicVirtualInterfaceAllocation & WithVirtualInterfaceName(Aws::String &&value)
NewPublicVirtualInterfaceAllocation & WithAddressFamily(const AddressFamily &value)
NewPublicVirtualInterfaceAllocation & WithTags(Aws::Vector< Tag > &&value)
NewPublicVirtualInterfaceAllocation & WithAuthKey(Aws::String &&value)
NewPublicVirtualInterfaceAllocation & WithAuthKey(const char *value)
AWS_DIRECTCONNECT_API NewPublicVirtualInterfaceAllocation & operator=(Aws::Utils::Json::JsonView jsonValue)
NewPublicVirtualInterfaceAllocation & WithAmazonAddress(const char *value)
NewPublicVirtualInterfaceAllocation & AddRouteFilterPrefixes(const RouteFilterPrefix &value)
NewPublicVirtualInterfaceAllocation & WithRouteFilterPrefixes(Aws::Vector< RouteFilterPrefix > &&value)
NewPublicVirtualInterfaceAllocation & WithAuthKey(const Aws::String &value)
NewPublicVirtualInterfaceAllocation & WithAddressFamily(AddressFamily &&value)
NewPublicVirtualInterfaceAllocation & WithCustomerAddress(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