AWS SDK for C++  0.14.3
AWS SDK for C++
NewPublicVirtualInterfaceAllocation.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
20 
21 namespace Aws
22 {
23 namespace Utils
24 {
25 namespace Json
26 {
27  class JsonValue;
28 } // namespace Json
29 } // namespace Utils
30 namespace DirectConnect
31 {
32 namespace Model
33 {
34 
40  {
41  public:
45  Aws::Utils::Json::JsonValue Jsonize() const;
46 
47 
48  inline const Aws::String& GetVirtualInterfaceName() const{ return m_virtualInterfaceName; }
49 
50 
51  inline void SetVirtualInterfaceName(const Aws::String& value) { m_virtualInterfaceNameHasBeenSet = true; m_virtualInterfaceName = value; }
52 
53 
54  inline void SetVirtualInterfaceName(Aws::String&& value) { m_virtualInterfaceNameHasBeenSet = true; m_virtualInterfaceName = value; }
55 
56 
57  inline void SetVirtualInterfaceName(const char* value) { m_virtualInterfaceNameHasBeenSet = true; m_virtualInterfaceName.assign(value); }
58 
59 
60  inline NewPublicVirtualInterfaceAllocation& WithVirtualInterfaceName(const Aws::String& value) { SetVirtualInterfaceName(value); return *this;}
61 
62 
63  inline NewPublicVirtualInterfaceAllocation& WithVirtualInterfaceName(Aws::String&& value) { SetVirtualInterfaceName(value); return *this;}
64 
65 
66  inline NewPublicVirtualInterfaceAllocation& WithVirtualInterfaceName(const char* value) { SetVirtualInterfaceName(value); return *this;}
67 
68 
69  inline int GetVlan() const{ return m_vlan; }
70 
71 
72  inline void SetVlan(int value) { m_vlanHasBeenSet = true; m_vlan = value; }
73 
74 
75  inline NewPublicVirtualInterfaceAllocation& WithVlan(int value) { SetVlan(value); return *this;}
76 
77 
78  inline int GetAsn() const{ return m_asn; }
79 
80 
81  inline void SetAsn(int value) { m_asnHasBeenSet = true; m_asn = value; }
82 
83 
84  inline NewPublicVirtualInterfaceAllocation& WithAsn(int value) { SetAsn(value); return *this;}
85 
86 
87  inline const Aws::String& GetAuthKey() const{ return m_authKey; }
88 
89 
90  inline void SetAuthKey(const Aws::String& value) { m_authKeyHasBeenSet = true; m_authKey = value; }
91 
92 
93  inline void SetAuthKey(Aws::String&& value) { m_authKeyHasBeenSet = true; m_authKey = value; }
94 
95 
96  inline void SetAuthKey(const char* value) { m_authKeyHasBeenSet = true; m_authKey.assign(value); }
97 
98 
99  inline NewPublicVirtualInterfaceAllocation& WithAuthKey(const Aws::String& value) { SetAuthKey(value); return *this;}
100 
101 
102  inline NewPublicVirtualInterfaceAllocation& WithAuthKey(Aws::String&& value) { SetAuthKey(value); return *this;}
103 
104 
105  inline NewPublicVirtualInterfaceAllocation& WithAuthKey(const char* value) { SetAuthKey(value); return *this;}
106 
107 
108  inline const Aws::String& GetAmazonAddress() const{ return m_amazonAddress; }
109 
110 
111  inline void SetAmazonAddress(const Aws::String& value) { m_amazonAddressHasBeenSet = true; m_amazonAddress = value; }
112 
113 
114  inline void SetAmazonAddress(Aws::String&& value) { m_amazonAddressHasBeenSet = true; m_amazonAddress = value; }
115 
116 
117  inline void SetAmazonAddress(const char* value) { m_amazonAddressHasBeenSet = true; m_amazonAddress.assign(value); }
118 
119 
120  inline NewPublicVirtualInterfaceAllocation& WithAmazonAddress(const Aws::String& value) { SetAmazonAddress(value); return *this;}
121 
122 
123  inline NewPublicVirtualInterfaceAllocation& WithAmazonAddress(Aws::String&& value) { SetAmazonAddress(value); return *this;}
124 
125 
126  inline NewPublicVirtualInterfaceAllocation& WithAmazonAddress(const char* value) { SetAmazonAddress(value); return *this;}
127 
128 
129  inline const Aws::String& GetCustomerAddress() const{ return m_customerAddress; }
130 
131 
132  inline void SetCustomerAddress(const Aws::String& value) { m_customerAddressHasBeenSet = true; m_customerAddress = value; }
133 
134 
135  inline void SetCustomerAddress(Aws::String&& value) { m_customerAddressHasBeenSet = true; m_customerAddress = value; }
136 
137 
138  inline void SetCustomerAddress(const char* value) { m_customerAddressHasBeenSet = true; m_customerAddress.assign(value); }
139 
140 
141  inline NewPublicVirtualInterfaceAllocation& WithCustomerAddress(const Aws::String& value) { SetCustomerAddress(value); return *this;}
142 
143 
144  inline NewPublicVirtualInterfaceAllocation& WithCustomerAddress(Aws::String&& value) { SetCustomerAddress(value); return *this;}
145 
146 
147  inline NewPublicVirtualInterfaceAllocation& WithCustomerAddress(const char* value) { SetCustomerAddress(value); return *this;}
148 
149 
150  inline const Aws::Vector<RouteFilterPrefix>& GetRouteFilterPrefixes() const{ return m_routeFilterPrefixes; }
151 
152 
153  inline void SetRouteFilterPrefixes(const Aws::Vector<RouteFilterPrefix>& value) { m_routeFilterPrefixesHasBeenSet = true; m_routeFilterPrefixes = value; }
154 
155 
156  inline void SetRouteFilterPrefixes(Aws::Vector<RouteFilterPrefix>&& value) { m_routeFilterPrefixesHasBeenSet = true; m_routeFilterPrefixes = value; }
157 
158 
159  inline NewPublicVirtualInterfaceAllocation& WithRouteFilterPrefixes(const Aws::Vector<RouteFilterPrefix>& value) { SetRouteFilterPrefixes(value); return *this;}
160 
161 
162  inline NewPublicVirtualInterfaceAllocation& WithRouteFilterPrefixes(Aws::Vector<RouteFilterPrefix>&& value) { SetRouteFilterPrefixes(value); return *this;}
163 
164 
165  inline NewPublicVirtualInterfaceAllocation& AddRouteFilterPrefixes(const RouteFilterPrefix& value) { m_routeFilterPrefixesHasBeenSet = true; m_routeFilterPrefixes.push_back(value); return *this; }
166 
167 
168  inline NewPublicVirtualInterfaceAllocation& AddRouteFilterPrefixes(RouteFilterPrefix&& value) { m_routeFilterPrefixesHasBeenSet = true; m_routeFilterPrefixes.push_back(value); return *this; }
169 
170  private:
171  Aws::String m_virtualInterfaceName;
172  bool m_virtualInterfaceNameHasBeenSet;
173  int m_vlan;
174  bool m_vlanHasBeenSet;
175  int m_asn;
176  bool m_asnHasBeenSet;
177  Aws::String m_authKey;
178  bool m_authKeyHasBeenSet;
179  Aws::String m_amazonAddress;
180  bool m_amazonAddressHasBeenSet;
181  Aws::String m_customerAddress;
182  bool m_customerAddressHasBeenSet;
183  Aws::Vector<RouteFilterPrefix> m_routeFilterPrefixes;
184  bool m_routeFilterPrefixesHasBeenSet;
185  };
186 
187 } // namespace Model
188 } // namespace DirectConnect
189 } // namespace Aws
NewPublicVirtualInterfaceAllocation & WithCustomerAddress(const char *value)
NewPublicVirtualInterfaceAllocation & AddRouteFilterPrefixes(const RouteFilterPrefix &value)
NewPublicVirtualInterfaceAllocation & WithAuthKey(const char *value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
NewPublicVirtualInterfaceAllocation & WithVirtualInterfaceName(const Aws::String &value)
NewPublicVirtualInterfaceAllocation & WithAmazonAddress(const Aws::String &value)
NewPublicVirtualInterfaceAllocation & WithRouteFilterPrefixes(const Aws::Vector< RouteFilterPrefix > &value)
NewPublicVirtualInterfaceAllocation & WithVirtualInterfaceName(const char *value)
NewPublicVirtualInterfaceAllocation & WithCustomerAddress(const Aws::String &value)
#define AWS_DIRECTCONNECT_API
NewPublicVirtualInterfaceAllocation & WithAuthKey(Aws::String &&value)
NewPublicVirtualInterfaceAllocation & AddRouteFilterPrefixes(RouteFilterPrefix &&value)
NewPublicVirtualInterfaceAllocation & WithRouteFilterPrefixes(Aws::Vector< RouteFilterPrefix > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
NewPublicVirtualInterfaceAllocation & WithCustomerAddress(Aws::String &&value)
NewPublicVirtualInterfaceAllocation & WithAmazonAddress(const char *value)
NewPublicVirtualInterfaceAllocation & WithVirtualInterfaceName(Aws::String &&value)
NewPublicVirtualInterfaceAllocation & WithAuthKey(const Aws::String &value)
void SetRouteFilterPrefixes(const Aws::Vector< RouteFilterPrefix > &value)
NewPublicVirtualInterfaceAllocation & WithAmazonAddress(Aws::String &&value)
JSON (JavaScript Object Notation).