AWS SDK for C++  0.12.9
AWS SDK for C++
AllocateConnectionOnInterconnectRequest.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
19 
20 namespace Aws
21 {
22 namespace DirectConnect
23 {
24 namespace Model
25 {
26 
32  {
33  public:
35  Aws::String SerializePayload() const override;
36 
37  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38 
43  inline const Aws::String& GetBandwidth() const{ return m_bandwidth; }
44 
49  inline void SetBandwidth(const Aws::String& value) { m_bandwidthHasBeenSet = true; m_bandwidth = value; }
50 
55  inline void SetBandwidth(Aws::String&& value) { m_bandwidthHasBeenSet = true; m_bandwidth = value; }
56 
61  inline void SetBandwidth(const char* value) { m_bandwidthHasBeenSet = true; m_bandwidth.assign(value); }
62 
67  inline AllocateConnectionOnInterconnectRequest& WithBandwidth(const Aws::String& value) { SetBandwidth(value); return *this;}
68 
73  inline AllocateConnectionOnInterconnectRequest& WithBandwidth(Aws::String&& value) { SetBandwidth(value); return *this;}
74 
79  inline AllocateConnectionOnInterconnectRequest& WithBandwidth(const char* value) { SetBandwidth(value); return *this;}
80 
85  inline const Aws::String& GetConnectionName() const{ return m_connectionName; }
86 
91  inline void SetConnectionName(const Aws::String& value) { m_connectionNameHasBeenSet = true; m_connectionName = value; }
92 
97  inline void SetConnectionName(Aws::String&& value) { m_connectionNameHasBeenSet = true; m_connectionName = value; }
98 
103  inline void SetConnectionName(const char* value) { m_connectionNameHasBeenSet = true; m_connectionName.assign(value); }
104 
109  inline AllocateConnectionOnInterconnectRequest& WithConnectionName(const Aws::String& value) { SetConnectionName(value); return *this;}
110 
115  inline AllocateConnectionOnInterconnectRequest& WithConnectionName(Aws::String&& value) { SetConnectionName(value); return *this;}
116 
121  inline AllocateConnectionOnInterconnectRequest& WithConnectionName(const char* value) { SetConnectionName(value); return *this;}
122 
127  inline const Aws::String& GetOwnerAccount() const{ return m_ownerAccount; }
128 
133  inline void SetOwnerAccount(const Aws::String& value) { m_ownerAccountHasBeenSet = true; m_ownerAccount = value; }
134 
139  inline void SetOwnerAccount(Aws::String&& value) { m_ownerAccountHasBeenSet = true; m_ownerAccount = value; }
140 
145  inline void SetOwnerAccount(const char* value) { m_ownerAccountHasBeenSet = true; m_ownerAccount.assign(value); }
146 
151  inline AllocateConnectionOnInterconnectRequest& WithOwnerAccount(const Aws::String& value) { SetOwnerAccount(value); return *this;}
152 
157  inline AllocateConnectionOnInterconnectRequest& WithOwnerAccount(Aws::String&& value) { SetOwnerAccount(value); return *this;}
158 
163  inline AllocateConnectionOnInterconnectRequest& WithOwnerAccount(const char* value) { SetOwnerAccount(value); return *this;}
164 
169  inline const Aws::String& GetInterconnectId() const{ return m_interconnectId; }
170 
175  inline void SetInterconnectId(const Aws::String& value) { m_interconnectIdHasBeenSet = true; m_interconnectId = value; }
176 
181  inline void SetInterconnectId(Aws::String&& value) { m_interconnectIdHasBeenSet = true; m_interconnectId = value; }
182 
187  inline void SetInterconnectId(const char* value) { m_interconnectIdHasBeenSet = true; m_interconnectId.assign(value); }
188 
193  inline AllocateConnectionOnInterconnectRequest& WithInterconnectId(const Aws::String& value) { SetInterconnectId(value); return *this;}
194 
199  inline AllocateConnectionOnInterconnectRequest& WithInterconnectId(Aws::String&& value) { SetInterconnectId(value); return *this;}
200 
205  inline AllocateConnectionOnInterconnectRequest& WithInterconnectId(const char* value) { SetInterconnectId(value); return *this;}
206 
211  inline long GetVlan() const{ return m_vlan; }
212 
217  inline void SetVlan(long value) { m_vlanHasBeenSet = true; m_vlan = value; }
218 
223  inline AllocateConnectionOnInterconnectRequest& WithVlan(long value) { SetVlan(value); return *this;}
224 
225  private:
226  Aws::String m_bandwidth;
227  bool m_bandwidthHasBeenSet;
228  Aws::String m_connectionName;
229  bool m_connectionNameHasBeenSet;
230  Aws::String m_ownerAccount;
231  bool m_ownerAccountHasBeenSet;
232  Aws::String m_interconnectId;
233  bool m_interconnectIdHasBeenSet;
234  long m_vlan;
235  bool m_vlanHasBeenSet;
236  };
237 
238 } // namespace Model
239 } // namespace DirectConnect
240 } // namespace Aws
AllocateConnectionOnInterconnectRequest & WithOwnerAccount(Aws::String &&value)
AllocateConnectionOnInterconnectRequest & WithBandwidth(const Aws::String &value)
AllocateConnectionOnInterconnectRequest & WithOwnerAccount(const char *value)
AllocateConnectionOnInterconnectRequest & WithConnectionName(const char *value)
AllocateConnectionOnInterconnectRequest & WithInterconnectId(Aws::String &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
AllocateConnectionOnInterconnectRequest & WithBandwidth(const char *value)
AllocateConnectionOnInterconnectRequest & WithConnectionName(Aws::String &&value)
AllocateConnectionOnInterconnectRequest & WithBandwidth(Aws::String &&value)
#define AWS_DIRECTCONNECT_API
AllocateConnectionOnInterconnectRequest & WithInterconnectId(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
AllocateConnectionOnInterconnectRequest & WithOwnerAccount(const Aws::String &value)
AllocateConnectionOnInterconnectRequest & WithInterconnectId(const Aws::String &value)
AllocateConnectionOnInterconnectRequest & WithConnectionName(const Aws::String &value)
JSON (JavaScript Object Notation).