AWS SDK for C++  0.12.9
AWS SDK for C++
NewPublicVirtualInterface.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 
39  {
40  public:
43  NewPublicVirtualInterface& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
44  Aws::Utils::Json::JsonValue Jsonize() const;
45 
46 
47  inline const Aws::String& GetVirtualInterfaceName() const{ return m_virtualInterfaceName; }
48 
49 
50  inline void SetVirtualInterfaceName(const Aws::String& value) { m_virtualInterfaceNameHasBeenSet = true; m_virtualInterfaceName = value; }
51 
52 
53  inline void SetVirtualInterfaceName(Aws::String&& value) { m_virtualInterfaceNameHasBeenSet = true; m_virtualInterfaceName = value; }
54 
55 
56  inline void SetVirtualInterfaceName(const char* value) { m_virtualInterfaceNameHasBeenSet = true; m_virtualInterfaceName.assign(value); }
57 
58 
59  inline NewPublicVirtualInterface& WithVirtualInterfaceName(const Aws::String& value) { SetVirtualInterfaceName(value); return *this;}
60 
61 
62  inline NewPublicVirtualInterface& WithVirtualInterfaceName(Aws::String&& value) { SetVirtualInterfaceName(value); return *this;}
63 
64 
65  inline NewPublicVirtualInterface& WithVirtualInterfaceName(const char* value) { SetVirtualInterfaceName(value); return *this;}
66 
67 
68  inline long GetVlan() const{ return m_vlan; }
69 
70 
71  inline void SetVlan(long value) { m_vlanHasBeenSet = true; m_vlan = value; }
72 
73 
74  inline NewPublicVirtualInterface& WithVlan(long value) { SetVlan(value); return *this;}
75 
76 
77  inline long GetAsn() const{ return m_asn; }
78 
79 
80  inline void SetAsn(long value) { m_asnHasBeenSet = true; m_asn = value; }
81 
82 
83  inline NewPublicVirtualInterface& WithAsn(long value) { SetAsn(value); return *this;}
84 
85 
86  inline const Aws::String& GetAuthKey() const{ return m_authKey; }
87 
88 
89  inline void SetAuthKey(const Aws::String& value) { m_authKeyHasBeenSet = true; m_authKey = value; }
90 
91 
92  inline void SetAuthKey(Aws::String&& value) { m_authKeyHasBeenSet = true; m_authKey = value; }
93 
94 
95  inline void SetAuthKey(const char* value) { m_authKeyHasBeenSet = true; m_authKey.assign(value); }
96 
97 
98  inline NewPublicVirtualInterface& WithAuthKey(const Aws::String& value) { SetAuthKey(value); return *this;}
99 
100 
101  inline NewPublicVirtualInterface& WithAuthKey(Aws::String&& value) { SetAuthKey(value); return *this;}
102 
103 
104  inline NewPublicVirtualInterface& WithAuthKey(const char* value) { SetAuthKey(value); return *this;}
105 
106 
107  inline const Aws::String& GetAmazonAddress() const{ return m_amazonAddress; }
108 
109 
110  inline void SetAmazonAddress(const Aws::String& value) { m_amazonAddressHasBeenSet = true; m_amazonAddress = value; }
111 
112 
113  inline void SetAmazonAddress(Aws::String&& value) { m_amazonAddressHasBeenSet = true; m_amazonAddress = value; }
114 
115 
116  inline void SetAmazonAddress(const char* value) { m_amazonAddressHasBeenSet = true; m_amazonAddress.assign(value); }
117 
118 
119  inline NewPublicVirtualInterface& WithAmazonAddress(const Aws::String& value) { SetAmazonAddress(value); return *this;}
120 
121 
122  inline NewPublicVirtualInterface& WithAmazonAddress(Aws::String&& value) { SetAmazonAddress(value); return *this;}
123 
124 
125  inline NewPublicVirtualInterface& WithAmazonAddress(const char* value) { SetAmazonAddress(value); return *this;}
126 
127 
128  inline const Aws::String& GetCustomerAddress() const{ return m_customerAddress; }
129 
130 
131  inline void SetCustomerAddress(const Aws::String& value) { m_customerAddressHasBeenSet = true; m_customerAddress = value; }
132 
133 
134  inline void SetCustomerAddress(Aws::String&& value) { m_customerAddressHasBeenSet = true; m_customerAddress = value; }
135 
136 
137  inline void SetCustomerAddress(const char* value) { m_customerAddressHasBeenSet = true; m_customerAddress.assign(value); }
138 
139 
140  inline NewPublicVirtualInterface& WithCustomerAddress(const Aws::String& value) { SetCustomerAddress(value); return *this;}
141 
142 
143  inline NewPublicVirtualInterface& WithCustomerAddress(Aws::String&& value) { SetCustomerAddress(value); return *this;}
144 
145 
146  inline NewPublicVirtualInterface& WithCustomerAddress(const char* value) { SetCustomerAddress(value); return *this;}
147 
148 
149  inline const Aws::Vector<RouteFilterPrefix>& GetRouteFilterPrefixes() const{ return m_routeFilterPrefixes; }
150 
151 
152  inline void SetRouteFilterPrefixes(const Aws::Vector<RouteFilterPrefix>& value) { m_routeFilterPrefixesHasBeenSet = true; m_routeFilterPrefixes = value; }
153 
154 
155  inline void SetRouteFilterPrefixes(Aws::Vector<RouteFilterPrefix>&& value) { m_routeFilterPrefixesHasBeenSet = true; m_routeFilterPrefixes = value; }
156 
157 
158  inline NewPublicVirtualInterface& WithRouteFilterPrefixes(const Aws::Vector<RouteFilterPrefix>& value) { SetRouteFilterPrefixes(value); return *this;}
159 
160 
161  inline NewPublicVirtualInterface& WithRouteFilterPrefixes(Aws::Vector<RouteFilterPrefix>&& value) { SetRouteFilterPrefixes(value); return *this;}
162 
163 
164  inline NewPublicVirtualInterface& AddRouteFilterPrefixes(const RouteFilterPrefix& value) { m_routeFilterPrefixesHasBeenSet = true; m_routeFilterPrefixes.push_back(value); return *this; }
165 
166 
167  inline NewPublicVirtualInterface& AddRouteFilterPrefixes(RouteFilterPrefix&& value) { m_routeFilterPrefixesHasBeenSet = true; m_routeFilterPrefixes.push_back(value); return *this; }
168 
169  private:
170  Aws::String m_virtualInterfaceName;
171  bool m_virtualInterfaceNameHasBeenSet;
172  long m_vlan;
173  bool m_vlanHasBeenSet;
174  long m_asn;
175  bool m_asnHasBeenSet;
176  Aws::String m_authKey;
177  bool m_authKeyHasBeenSet;
178  Aws::String m_amazonAddress;
179  bool m_amazonAddressHasBeenSet;
180  Aws::String m_customerAddress;
181  bool m_customerAddressHasBeenSet;
182  Aws::Vector<RouteFilterPrefix> m_routeFilterPrefixes;
183  bool m_routeFilterPrefixesHasBeenSet;
184  };
185 
186 } // namespace Model
187 } // namespace DirectConnect
188 } // namespace Aws
NewPublicVirtualInterface & WithRouteFilterPrefixes(Aws::Vector< RouteFilterPrefix > &&value)
NewPublicVirtualInterface & WithAmazonAddress(const Aws::String &value)
NewPublicVirtualInterface & WithAuthKey(const char *value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
NewPublicVirtualInterface & WithCustomerAddress(Aws::String &&value)
NewPublicVirtualInterface & WithVirtualInterfaceName(Aws::String &&value)
NewPublicVirtualInterface & WithRouteFilterPrefixes(const Aws::Vector< RouteFilterPrefix > &value)
NewPublicVirtualInterface & WithAmazonAddress(const char *value)
NewPublicVirtualInterface & WithAuthKey(Aws::String &&value)
const Aws::Vector< RouteFilterPrefix > & GetRouteFilterPrefixes() const
NewPublicVirtualInterface & WithCustomerAddress(const Aws::String &value)
NewPublicVirtualInterface & AddRouteFilterPrefixes(RouteFilterPrefix &&value)
NewPublicVirtualInterface & WithAmazonAddress(Aws::String &&value)
NewPublicVirtualInterface & WithCustomerAddress(const char *value)
void SetRouteFilterPrefixes(const Aws::Vector< RouteFilterPrefix > &value)
NewPublicVirtualInterface & WithAuthKey(const Aws::String &value)
#define AWS_DIRECTCONNECT_API
NewPublicVirtualInterface & WithVirtualInterfaceName(const Aws::String &value)
NewPublicVirtualInterface & AddRouteFilterPrefixes(const RouteFilterPrefix &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetRouteFilterPrefixes(Aws::Vector< RouteFilterPrefix > &&value)
NewPublicVirtualInterface & WithVirtualInterfaceName(const char *value)
JSON (JavaScript Object Notation).