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