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