AWS SDK for C++  0.14.3
AWS SDK for C++
Connection.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:
42  Connection();
43  Connection(const Aws::Utils::Json::JsonValue& jsonValue);
44  Connection& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
45  Aws::Utils::Json::JsonValue Jsonize() const;
46 
50  inline const Aws::String& GetOwnerAccount() const{ return m_ownerAccount; }
51 
55  inline void SetOwnerAccount(const Aws::String& value) { m_ownerAccountHasBeenSet = true; m_ownerAccount = value; }
56 
60  inline void SetOwnerAccount(Aws::String&& value) { m_ownerAccountHasBeenSet = true; m_ownerAccount = value; }
61 
65  inline void SetOwnerAccount(const char* value) { m_ownerAccountHasBeenSet = true; m_ownerAccount.assign(value); }
66 
70  inline Connection& WithOwnerAccount(const Aws::String& value) { SetOwnerAccount(value); return *this;}
71 
75  inline Connection& WithOwnerAccount(Aws::String&& value) { SetOwnerAccount(value); return *this;}
76 
80  inline Connection& WithOwnerAccount(const char* value) { SetOwnerAccount(value); return *this;}
81 
82 
83  inline const Aws::String& GetConnectionId() const{ return m_connectionId; }
84 
85 
86  inline void SetConnectionId(const Aws::String& value) { m_connectionIdHasBeenSet = true; m_connectionId = value; }
87 
88 
89  inline void SetConnectionId(Aws::String&& value) { m_connectionIdHasBeenSet = true; m_connectionId = value; }
90 
91 
92  inline void SetConnectionId(const char* value) { m_connectionIdHasBeenSet = true; m_connectionId.assign(value); }
93 
94 
95  inline Connection& WithConnectionId(const Aws::String& value) { SetConnectionId(value); return *this;}
96 
97 
98  inline Connection& WithConnectionId(Aws::String&& value) { SetConnectionId(value); return *this;}
99 
100 
101  inline Connection& WithConnectionId(const char* value) { SetConnectionId(value); return *this;}
102 
103 
104  inline const Aws::String& GetConnectionName() const{ return m_connectionName; }
105 
106 
107  inline void SetConnectionName(const Aws::String& value) { m_connectionNameHasBeenSet = true; m_connectionName = value; }
108 
109 
110  inline void SetConnectionName(Aws::String&& value) { m_connectionNameHasBeenSet = true; m_connectionName = value; }
111 
112 
113  inline void SetConnectionName(const char* value) { m_connectionNameHasBeenSet = true; m_connectionName.assign(value); }
114 
115 
116  inline Connection& WithConnectionName(const Aws::String& value) { SetConnectionName(value); return *this;}
117 
118 
119  inline Connection& WithConnectionName(Aws::String&& value) { SetConnectionName(value); return *this;}
120 
121 
122  inline Connection& WithConnectionName(const char* value) { SetConnectionName(value); return *this;}
123 
124 
125  inline const ConnectionState& GetConnectionState() const{ return m_connectionState; }
126 
127 
128  inline void SetConnectionState(const ConnectionState& value) { m_connectionStateHasBeenSet = true; m_connectionState = value; }
129 
130 
131  inline void SetConnectionState(ConnectionState&& value) { m_connectionStateHasBeenSet = true; m_connectionState = value; }
132 
133 
134  inline Connection& WithConnectionState(const ConnectionState& value) { SetConnectionState(value); return *this;}
135 
136 
137  inline Connection& WithConnectionState(ConnectionState&& value) { SetConnectionState(value); return *this;}
138 
139 
140  inline const Aws::String& GetRegion() const{ return m_region; }
141 
142 
143  inline void SetRegion(const Aws::String& value) { m_regionHasBeenSet = true; m_region = value; }
144 
145 
146  inline void SetRegion(Aws::String&& value) { m_regionHasBeenSet = true; m_region = value; }
147 
148 
149  inline void SetRegion(const char* value) { m_regionHasBeenSet = true; m_region.assign(value); }
150 
151 
152  inline Connection& WithRegion(const Aws::String& value) { SetRegion(value); return *this;}
153 
154 
155  inline Connection& WithRegion(Aws::String&& value) { SetRegion(value); return *this;}
156 
157 
158  inline Connection& WithRegion(const char* value) { SetRegion(value); return *this;}
159 
160 
161  inline const Aws::String& GetLocation() const{ return m_location; }
162 
163 
164  inline void SetLocation(const Aws::String& value) { m_locationHasBeenSet = true; m_location = value; }
165 
166 
167  inline void SetLocation(Aws::String&& value) { m_locationHasBeenSet = true; m_location = value; }
168 
169 
170  inline void SetLocation(const char* value) { m_locationHasBeenSet = true; m_location.assign(value); }
171 
172 
173  inline Connection& WithLocation(const Aws::String& value) { SetLocation(value); return *this;}
174 
175 
176  inline Connection& WithLocation(Aws::String&& value) { SetLocation(value); return *this;}
177 
178 
179  inline Connection& WithLocation(const char* value) { SetLocation(value); return *this;}
180 
185  inline const Aws::String& GetBandwidth() const{ return m_bandwidth; }
186 
191  inline void SetBandwidth(const Aws::String& value) { m_bandwidthHasBeenSet = true; m_bandwidth = value; }
192 
197  inline void SetBandwidth(Aws::String&& value) { m_bandwidthHasBeenSet = true; m_bandwidth = value; }
198 
203  inline void SetBandwidth(const char* value) { m_bandwidthHasBeenSet = true; m_bandwidth.assign(value); }
204 
209  inline Connection& WithBandwidth(const Aws::String& value) { SetBandwidth(value); return *this;}
210 
215  inline Connection& WithBandwidth(Aws::String&& value) { SetBandwidth(value); return *this;}
216 
221  inline Connection& WithBandwidth(const char* value) { SetBandwidth(value); return *this;}
222 
223 
224  inline int GetVlan() const{ return m_vlan; }
225 
226 
227  inline void SetVlan(int value) { m_vlanHasBeenSet = true; m_vlan = value; }
228 
229 
230  inline Connection& WithVlan(int value) { SetVlan(value); return *this;}
231 
236  inline const Aws::String& GetPartnerName() const{ return m_partnerName; }
237 
242  inline void SetPartnerName(const Aws::String& value) { m_partnerNameHasBeenSet = true; m_partnerName = value; }
243 
248  inline void SetPartnerName(Aws::String&& value) { m_partnerNameHasBeenSet = true; m_partnerName = value; }
249 
254  inline void SetPartnerName(const char* value) { m_partnerNameHasBeenSet = true; m_partnerName.assign(value); }
255 
260  inline Connection& WithPartnerName(const Aws::String& value) { SetPartnerName(value); return *this;}
261 
266  inline Connection& WithPartnerName(Aws::String&& value) { SetPartnerName(value); return *this;}
267 
272  inline Connection& WithPartnerName(const char* value) { SetPartnerName(value); return *this;}
273 
278  inline const Aws::Utils::DateTime& GetLoaIssueTime() const{ return m_loaIssueTime; }
279 
284  inline void SetLoaIssueTime(const Aws::Utils::DateTime& value) { m_loaIssueTimeHasBeenSet = true; m_loaIssueTime = value; }
285 
290  inline void SetLoaIssueTime(Aws::Utils::DateTime&& value) { m_loaIssueTimeHasBeenSet = true; m_loaIssueTime = value; }
291 
296  inline Connection& WithLoaIssueTime(const Aws::Utils::DateTime& value) { SetLoaIssueTime(value); return *this;}
297 
302  inline Connection& WithLoaIssueTime(Aws::Utils::DateTime&& value) { SetLoaIssueTime(value); return *this;}
303 
304  private:
305  Aws::String m_ownerAccount;
306  bool m_ownerAccountHasBeenSet;
307  Aws::String m_connectionId;
308  bool m_connectionIdHasBeenSet;
309  Aws::String m_connectionName;
310  bool m_connectionNameHasBeenSet;
311  ConnectionState m_connectionState;
312  bool m_connectionStateHasBeenSet;
313  Aws::String m_region;
314  bool m_regionHasBeenSet;
315  Aws::String m_location;
316  bool m_locationHasBeenSet;
317  Aws::String m_bandwidth;
318  bool m_bandwidthHasBeenSet;
319  int m_vlan;
320  bool m_vlanHasBeenSet;
321  Aws::String m_partnerName;
322  bool m_partnerNameHasBeenSet;
323  Aws::Utils::DateTime m_loaIssueTime;
324  bool m_loaIssueTimeHasBeenSet;
325  };
326 
327 } // namespace Model
328 } // namespace DirectConnect
329 } // namespace Aws
void SetOwnerAccount(const Aws::String &value)
Definition: Connection.h:55
void SetRegion(const char *value)
Definition: Connection.h:149
void SetConnectionName(Aws::String &&value)
Definition: Connection.h:110
void SetConnectionId(Aws::String &&value)
Definition: Connection.h:89
Connection & WithBandwidth(Aws::String &&value)
Definition: Connection.h:215
void SetPartnerName(Aws::String &&value)
Definition: Connection.h:248
void SetBandwidth(Aws::String &&value)
Definition: Connection.h:197
Connection & WithConnectionState(ConnectionState &&value)
Definition: Connection.h:137
void SetRegion(const Aws::String &value)
Definition: Connection.h:143
const Aws::String & GetConnectionName() const
Definition: Connection.h:104
const Aws::Utils::DateTime & GetLoaIssueTime() const
Definition: Connection.h:278
Connection & WithLocation(const Aws::String &value)
Definition: Connection.h:173
const ConnectionState & GetConnectionState() const
Definition: Connection.h:125
void SetPartnerName(const char *value)
Definition: Connection.h:254
Connection & WithVlan(int value)
Definition: Connection.h:230
Connection & WithBandwidth(const char *value)
Definition: Connection.h:221
void SetLocation(const char *value)
Definition: Connection.h:170
Connection & WithConnectionName(const Aws::String &value)
Definition: Connection.h:116
void SetBandwidth(const char *value)
Definition: Connection.h:203
void SetRegion(Aws::String &&value)
Definition: Connection.h:146
void SetLocation(const Aws::String &value)
Definition: Connection.h:164
Connection & WithConnectionName(const char *value)
Definition: Connection.h:122
void SetBandwidth(const Aws::String &value)
Definition: Connection.h:191
Connection & WithRegion(Aws::String &&value)
Definition: Connection.h:155
Connection & WithConnectionId(Aws::String &&value)
Definition: Connection.h:98
void SetOwnerAccount(Aws::String &&value)
Definition: Connection.h:60
Connection & WithLoaIssueTime(const Aws::Utils::DateTime &value)
Definition: Connection.h:296
Connection & WithPartnerName(Aws::String &&value)
Definition: Connection.h:266
Connection & WithPartnerName(const char *value)
Definition: Connection.h:272
Connection & WithLoaIssueTime(Aws::Utils::DateTime &&value)
Definition: Connection.h:302
void SetLocation(Aws::String &&value)
Definition: Connection.h:167
Connection & WithConnectionName(Aws::String &&value)
Definition: Connection.h:119
void SetPartnerName(const Aws::String &value)
Definition: Connection.h:242
Connection & WithConnectionState(const ConnectionState &value)
Definition: Connection.h:134
Connection & WithConnectionId(const char *value)
Definition: Connection.h:101
void SetConnectionState(const ConnectionState &value)
Definition: Connection.h:128
void SetConnectionId(const Aws::String &value)
Definition: Connection.h:86
const Aws::String & GetLocation() const
Definition: Connection.h:161
const Aws::String & GetOwnerAccount() const
Definition: Connection.h:50
const Aws::String & GetPartnerName() const
Definition: Connection.h:236
void SetConnectionId(const char *value)
Definition: Connection.h:92
#define AWS_DIRECTCONNECT_API
void SetConnectionName(const char *value)
Definition: Connection.h:113
const Aws::String & GetBandwidth() const
Definition: Connection.h:185
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
const Aws::String & GetRegion() const
Definition: Connection.h:140
void SetLoaIssueTime(const Aws::Utils::DateTime &value)
Definition: Connection.h:284
Connection & WithLocation(const char *value)
Definition: Connection.h:179
Connection & WithOwnerAccount(const Aws::String &value)
Definition: Connection.h:70
void SetOwnerAccount(const char *value)
Definition: Connection.h:65
Connection & WithLocation(Aws::String &&value)
Definition: Connection.h:176
Connection & WithRegion(const char *value)
Definition: Connection.h:158
Connection & WithPartnerName(const Aws::String &value)
Definition: Connection.h:260
Connection & WithOwnerAccount(Aws::String &&value)
Definition: Connection.h:75
void SetConnectionState(ConnectionState &&value)
Definition: Connection.h:131
const Aws::String & GetConnectionId() const
Definition: Connection.h:83
Connection & WithOwnerAccount(const char *value)
Definition: Connection.h:80
void SetConnectionName(const Aws::String &value)
Definition: Connection.h:107
void SetLoaIssueTime(Aws::Utils::DateTime &&value)
Definition: Connection.h:290
Connection & WithConnectionId(const Aws::String &value)
Definition: Connection.h:95
JSON (JavaScript Object Notation).
Connection & WithRegion(const Aws::String &value)
Definition: Connection.h:152
Connection & WithBandwidth(const Aws::String &value)
Definition: Connection.h:209