AWS SDK for C++  0.12.9
AWS SDK for C++
CreateConnectionRequest.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 
31  {
32  public:
34  Aws::String SerializePayload() const override;
35 
36  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37 
38 
39  inline const Aws::String& GetLocation() const{ return m_location; }
40 
41 
42  inline void SetLocation(const Aws::String& value) { m_locationHasBeenSet = true; m_location = value; }
43 
44 
45  inline void SetLocation(Aws::String&& value) { m_locationHasBeenSet = true; m_location = value; }
46 
47 
48  inline void SetLocation(const char* value) { m_locationHasBeenSet = true; m_location.assign(value); }
49 
50 
51  inline CreateConnectionRequest& WithLocation(const Aws::String& value) { SetLocation(value); return *this;}
52 
53 
54  inline CreateConnectionRequest& WithLocation(Aws::String&& value) { SetLocation(value); return *this;}
55 
56 
57  inline CreateConnectionRequest& WithLocation(const char* value) { SetLocation(value); return *this;}
58 
59 
60  inline const Aws::String& GetBandwidth() const{ return m_bandwidth; }
61 
62 
63  inline void SetBandwidth(const Aws::String& value) { m_bandwidthHasBeenSet = true; m_bandwidth = value; }
64 
65 
66  inline void SetBandwidth(Aws::String&& value) { m_bandwidthHasBeenSet = true; m_bandwidth = value; }
67 
68 
69  inline void SetBandwidth(const char* value) { m_bandwidthHasBeenSet = true; m_bandwidth.assign(value); }
70 
71 
72  inline CreateConnectionRequest& WithBandwidth(const Aws::String& value) { SetBandwidth(value); return *this;}
73 
74 
75  inline CreateConnectionRequest& WithBandwidth(Aws::String&& value) { SetBandwidth(value); return *this;}
76 
77 
78  inline CreateConnectionRequest& WithBandwidth(const char* value) { SetBandwidth(value); return *this;}
79 
80 
81  inline const Aws::String& GetConnectionName() const{ return m_connectionName; }
82 
83 
84  inline void SetConnectionName(const Aws::String& value) { m_connectionNameHasBeenSet = true; m_connectionName = value; }
85 
86 
87  inline void SetConnectionName(Aws::String&& value) { m_connectionNameHasBeenSet = true; m_connectionName = value; }
88 
89 
90  inline void SetConnectionName(const char* value) { m_connectionNameHasBeenSet = true; m_connectionName.assign(value); }
91 
92 
93  inline CreateConnectionRequest& WithConnectionName(const Aws::String& value) { SetConnectionName(value); return *this;}
94 
95 
96  inline CreateConnectionRequest& WithConnectionName(Aws::String&& value) { SetConnectionName(value); return *this;}
97 
98 
99  inline CreateConnectionRequest& WithConnectionName(const char* value) { SetConnectionName(value); return *this;}
100 
101  private:
102  Aws::String m_location;
103  bool m_locationHasBeenSet;
104  Aws::String m_bandwidth;
105  bool m_bandwidthHasBeenSet;
106  Aws::String m_connectionName;
107  bool m_connectionNameHasBeenSet;
108  };
109 
110 } // namespace Model
111 } // namespace DirectConnect
112 } // namespace Aws
CreateConnectionRequest & WithBandwidth(Aws::String &&value)
CreateConnectionRequest & WithConnectionName(Aws::String &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
CreateConnectionRequest & WithLocation(const Aws::String &value)
#define AWS_DIRECTCONNECT_API
CreateConnectionRequest & WithConnectionName(const Aws::String &value)
CreateConnectionRequest & WithLocation(Aws::String &&value)
CreateConnectionRequest & WithLocation(const char *value)
CreateConnectionRequest & WithBandwidth(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
CreateConnectionRequest & WithConnectionName(const char *value)
CreateConnectionRequest & WithBandwidth(const Aws::String &value)
JSON (JavaScript Object Notation).