AWS SDK for C++  1.9.66
AWS SDK for C++
CreateConnectionRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace DirectConnect
17 {
18 namespace Model
19 {
20 
24  {
25  public:
27 
28  // Service request name is the Operation name which will send this request out,
29  // each operation should has unique request name, so that we can get operation's name from this request.
30  // Note: this is not true for response, multiple operations may have the same response name,
31  // so we can not get operation's name from response.
32  inline virtual const char* GetServiceRequestName() const override { return "CreateConnection"; }
33 
34  Aws::String SerializePayload() const override;
35 
37 
38 
42  inline const Aws::String& GetLocation() const{ return m_location; }
43 
47  inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
48 
52  inline void SetLocation(const Aws::String& value) { m_locationHasBeenSet = true; m_location = value; }
53 
57  inline void SetLocation(Aws::String&& value) { m_locationHasBeenSet = true; m_location = std::move(value); }
58 
62  inline void SetLocation(const char* value) { m_locationHasBeenSet = true; m_location.assign(value); }
63 
67  inline CreateConnectionRequest& WithLocation(const Aws::String& value) { SetLocation(value); return *this;}
68 
72  inline CreateConnectionRequest& WithLocation(Aws::String&& value) { SetLocation(std::move(value)); return *this;}
73 
77  inline CreateConnectionRequest& WithLocation(const char* value) { SetLocation(value); return *this;}
78 
79 
83  inline const Aws::String& GetBandwidth() const{ return m_bandwidth; }
84 
88  inline bool BandwidthHasBeenSet() const { return m_bandwidthHasBeenSet; }
89 
93  inline void SetBandwidth(const Aws::String& value) { m_bandwidthHasBeenSet = true; m_bandwidth = value; }
94 
98  inline void SetBandwidth(Aws::String&& value) { m_bandwidthHasBeenSet = true; m_bandwidth = std::move(value); }
99 
103  inline void SetBandwidth(const char* value) { m_bandwidthHasBeenSet = true; m_bandwidth.assign(value); }
104 
108  inline CreateConnectionRequest& WithBandwidth(const Aws::String& value) { SetBandwidth(value); return *this;}
109 
113  inline CreateConnectionRequest& WithBandwidth(Aws::String&& value) { SetBandwidth(std::move(value)); return *this;}
114 
118  inline CreateConnectionRequest& WithBandwidth(const char* value) { SetBandwidth(value); return *this;}
119 
120 
124  inline const Aws::String& GetConnectionName() const{ return m_connectionName; }
125 
129  inline bool ConnectionNameHasBeenSet() const { return m_connectionNameHasBeenSet; }
130 
134  inline void SetConnectionName(const Aws::String& value) { m_connectionNameHasBeenSet = true; m_connectionName = value; }
135 
139  inline void SetConnectionName(Aws::String&& value) { m_connectionNameHasBeenSet = true; m_connectionName = std::move(value); }
140 
144  inline void SetConnectionName(const char* value) { m_connectionNameHasBeenSet = true; m_connectionName.assign(value); }
145 
149  inline CreateConnectionRequest& WithConnectionName(const Aws::String& value) { SetConnectionName(value); return *this;}
150 
154  inline CreateConnectionRequest& WithConnectionName(Aws::String&& value) { SetConnectionName(std::move(value)); return *this;}
155 
159  inline CreateConnectionRequest& WithConnectionName(const char* value) { SetConnectionName(value); return *this;}
160 
161 
165  inline const Aws::String& GetLagId() const{ return m_lagId; }
166 
170  inline bool LagIdHasBeenSet() const { return m_lagIdHasBeenSet; }
171 
175  inline void SetLagId(const Aws::String& value) { m_lagIdHasBeenSet = true; m_lagId = value; }
176 
180  inline void SetLagId(Aws::String&& value) { m_lagIdHasBeenSet = true; m_lagId = std::move(value); }
181 
185  inline void SetLagId(const char* value) { m_lagIdHasBeenSet = true; m_lagId.assign(value); }
186 
190  inline CreateConnectionRequest& WithLagId(const Aws::String& value) { SetLagId(value); return *this;}
191 
195  inline CreateConnectionRequest& WithLagId(Aws::String&& value) { SetLagId(std::move(value)); return *this;}
196 
200  inline CreateConnectionRequest& WithLagId(const char* value) { SetLagId(value); return *this;}
201 
202 
206  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
207 
211  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
212 
216  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
217 
221  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
222 
226  inline CreateConnectionRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
227 
231  inline CreateConnectionRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
232 
236  inline CreateConnectionRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
237 
241  inline CreateConnectionRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
242 
243 
248  inline const Aws::String& GetProviderName() const{ return m_providerName; }
249 
254  inline bool ProviderNameHasBeenSet() const { return m_providerNameHasBeenSet; }
255 
260  inline void SetProviderName(const Aws::String& value) { m_providerNameHasBeenSet = true; m_providerName = value; }
261 
266  inline void SetProviderName(Aws::String&& value) { m_providerNameHasBeenSet = true; m_providerName = std::move(value); }
267 
272  inline void SetProviderName(const char* value) { m_providerNameHasBeenSet = true; m_providerName.assign(value); }
273 
278  inline CreateConnectionRequest& WithProviderName(const Aws::String& value) { SetProviderName(value); return *this;}
279 
284  inline CreateConnectionRequest& WithProviderName(Aws::String&& value) { SetProviderName(std::move(value)); return *this;}
285 
290  inline CreateConnectionRequest& WithProviderName(const char* value) { SetProviderName(value); return *this;}
291 
292 
300  inline bool GetRequestMACSec() const{ return m_requestMACSec; }
301 
309  inline bool RequestMACSecHasBeenSet() const { return m_requestMACSecHasBeenSet; }
310 
318  inline void SetRequestMACSec(bool value) { m_requestMACSecHasBeenSet = true; m_requestMACSec = value; }
319 
327  inline CreateConnectionRequest& WithRequestMACSec(bool value) { SetRequestMACSec(value); return *this;}
328 
329  private:
330 
331  Aws::String m_location;
332  bool m_locationHasBeenSet;
333 
334  Aws::String m_bandwidth;
335  bool m_bandwidthHasBeenSet;
336 
337  Aws::String m_connectionName;
338  bool m_connectionNameHasBeenSet;
339 
340  Aws::String m_lagId;
341  bool m_lagIdHasBeenSet;
342 
343  Aws::Vector<Tag> m_tags;
344  bool m_tagsHasBeenSet;
345 
346  Aws::String m_providerName;
347  bool m_providerNameHasBeenSet;
348 
349  bool m_requestMACSec;
350  bool m_requestMACSecHasBeenSet;
351  };
352 
353 } // namespace Model
354 } // namespace DirectConnect
355 } // namespace Aws
Aws::DirectConnect::Model::CreateConnectionRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::DirectConnect::Model::CreateConnectionRequest::WithConnectionName
CreateConnectionRequest & WithConnectionName(Aws::String &&value)
Definition: CreateConnectionRequest.h:154
Aws::DirectConnect::Model::CreateConnectionRequest::GetConnectionName
const Aws::String & GetConnectionName() const
Definition: CreateConnectionRequest.h:124
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::DirectConnect::Model::CreateConnectionRequest::SetLocation
void SetLocation(Aws::String &&value)
Definition: CreateConnectionRequest.h:57
Aws::DirectConnect::Model::CreateConnectionRequest::WithConnectionName
CreateConnectionRequest & WithConnectionName(const Aws::String &value)
Definition: CreateConnectionRequest.h:149
Aws::DirectConnect::Model::CreateConnectionRequest::WithLagId
CreateConnectionRequest & WithLagId(const char *value)
Definition: CreateConnectionRequest.h:200
Aws::DirectConnect::Model::CreateConnectionRequest
Definition: CreateConnectionRequest.h:24
Aws::DirectConnect::Model::CreateConnectionRequest::SetBandwidth
void SetBandwidth(const char *value)
Definition: CreateConnectionRequest.h:103
Aws::DirectConnect::Model::CreateConnectionRequest::RequestMACSecHasBeenSet
bool RequestMACSecHasBeenSet() const
Definition: CreateConnectionRequest.h:309
Aws::DirectConnect::Model::Tag
Definition: Tag.h:32
Aws::DirectConnect::Model::CreateConnectionRequest::SetBandwidth
void SetBandwidth(Aws::String &&value)
Definition: CreateConnectionRequest.h:98
Aws::DirectConnect::Model::CreateConnectionRequest::WithTags
CreateConnectionRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: CreateConnectionRequest.h:226
Aws::DirectConnect::Model::CreateConnectionRequest::WithProviderName
CreateConnectionRequest & WithProviderName(const char *value)
Definition: CreateConnectionRequest.h:290
Aws::DirectConnect::Model::CreateConnectionRequest::SetProviderName
void SetProviderName(const Aws::String &value)
Definition: CreateConnectionRequest.h:260
Aws::DirectConnect::Model::CreateConnectionRequest::ConnectionNameHasBeenSet
bool ConnectionNameHasBeenSet() const
Definition: CreateConnectionRequest.h:129
Aws::DirectConnect::Model::CreateConnectionRequest::AddTags
CreateConnectionRequest & AddTags(const Tag &value)
Definition: CreateConnectionRequest.h:236
Aws::DirectConnect::Model::CreateConnectionRequest::SetRequestMACSec
void SetRequestMACSec(bool value)
Definition: CreateConnectionRequest.h:318
Aws::DirectConnect::Model::CreateConnectionRequest::GetLocation
const Aws::String & GetLocation() const
Definition: CreateConnectionRequest.h:42
Aws::DirectConnect::Model::CreateConnectionRequest::GetProviderName
const Aws::String & GetProviderName() const
Definition: CreateConnectionRequest.h:248
Aws::DirectConnect::Model::CreateConnectionRequest::SetLagId
void SetLagId(const Aws::String &value)
Definition: CreateConnectionRequest.h:175
Aws::DirectConnect::Model::CreateConnectionRequest::CreateConnectionRequest
CreateConnectionRequest()
Aws::DirectConnect::Model::CreateConnectionRequest::WithLocation
CreateConnectionRequest & WithLocation(Aws::String &&value)
Definition: CreateConnectionRequest.h:72
Aws::DirectConnect::DirectConnectRequest
Definition: DirectConnectRequest.h:17
Aws::DirectConnect::Model::CreateConnectionRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateConnectionRequest.h:211
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
DirectConnect_EXPORTS.h
Aws::DirectConnect::Model::CreateConnectionRequest::SetBandwidth
void SetBandwidth(const Aws::String &value)
Definition: CreateConnectionRequest.h:93
Aws::DirectConnect::Model::CreateConnectionRequest::SetConnectionName
void SetConnectionName(const Aws::String &value)
Definition: CreateConnectionRequest.h:134
Aws::DirectConnect::Model::CreateConnectionRequest::WithTags
CreateConnectionRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: CreateConnectionRequest.h:231
Aws::DirectConnect::Model::CreateConnectionRequest::WithLagId
CreateConnectionRequest & WithLagId(Aws::String &&value)
Definition: CreateConnectionRequest.h:195
AWSVector.h
Aws::DirectConnect::Model::CreateConnectionRequest::WithBandwidth
CreateConnectionRequest & WithBandwidth(const char *value)
Definition: CreateConnectionRequest.h:118
Aws::DirectConnect::Model::CreateConnectionRequest::SetLagId
void SetLagId(Aws::String &&value)
Definition: CreateConnectionRequest.h:180
Aws::DirectConnect::Model::CreateConnectionRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: CreateConnectionRequest.h:206
Tag.h
Aws::DirectConnect::Model::CreateConnectionRequest::SetLagId
void SetLagId(const char *value)
Definition: CreateConnectionRequest.h:185
Aws::DirectConnect::Model::CreateConnectionRequest::SetProviderName
void SetProviderName(Aws::String &&value)
Definition: CreateConnectionRequest.h:266
Aws::DirectConnect::Model::CreateConnectionRequest::AddTags
CreateConnectionRequest & AddTags(Tag &&value)
Definition: CreateConnectionRequest.h:241
Aws::DirectConnect::Model::CreateConnectionRequest::WithConnectionName
CreateConnectionRequest & WithConnectionName(const char *value)
Definition: CreateConnectionRequest.h:159
Aws::DirectConnect::Model::CreateConnectionRequest::SetConnectionName
void SetConnectionName(const char *value)
Definition: CreateConnectionRequest.h:144
Aws::DirectConnect::Model::CreateConnectionRequest::LagIdHasBeenSet
bool LagIdHasBeenSet() const
Definition: CreateConnectionRequest.h:170
AWSString.h
Aws::DirectConnect::Model::CreateConnectionRequest::ProviderNameHasBeenSet
bool ProviderNameHasBeenSet() const
Definition: CreateConnectionRequest.h:254
Aws::DirectConnect::Model::CreateConnectionRequest::GetRequestMACSec
bool GetRequestMACSec() const
Definition: CreateConnectionRequest.h:300
Aws::DirectConnect::Model::CreateConnectionRequest::WithLagId
CreateConnectionRequest & WithLagId(const Aws::String &value)
Definition: CreateConnectionRequest.h:190
Aws::DirectConnect::Model::CreateConnectionRequest::SetProviderName
void SetProviderName(const char *value)
Definition: CreateConnectionRequest.h:272
Aws::DirectConnect::Model::CreateConnectionRequest::SetConnectionName
void SetConnectionName(Aws::String &&value)
Definition: CreateConnectionRequest.h:139
Aws::DirectConnect::Model::CreateConnectionRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateConnectionRequest.h:32
Aws::DirectConnect::Model::CreateConnectionRequest::WithProviderName
CreateConnectionRequest & WithProviderName(Aws::String &&value)
Definition: CreateConnectionRequest.h:284
Aws::DirectConnect::Model::CreateConnectionRequest::WithBandwidth
CreateConnectionRequest & WithBandwidth(Aws::String &&value)
Definition: CreateConnectionRequest.h:113
Aws::DirectConnect::Model::CreateConnectionRequest::LocationHasBeenSet
bool LocationHasBeenSet() const
Definition: CreateConnectionRequest.h:47
Aws::DirectConnect::Model::CreateConnectionRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::DirectConnect::Model::CreateConnectionRequest::WithLocation
CreateConnectionRequest & WithLocation(const char *value)
Definition: CreateConnectionRequest.h:77
Aws::DirectConnect::Model::CreateConnectionRequest::WithBandwidth
CreateConnectionRequest & WithBandwidth(const Aws::String &value)
Definition: CreateConnectionRequest.h:108
Aws::DirectConnect::Model::CreateConnectionRequest::SetLocation
void SetLocation(const Aws::String &value)
Definition: CreateConnectionRequest.h:52
Aws
Definition: AccessManagementClient.h:15
Aws::DirectConnect::Model::CreateConnectionRequest::WithProviderName
CreateConnectionRequest & WithProviderName(const Aws::String &value)
Definition: CreateConnectionRequest.h:278
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::DirectConnect::Model::CreateConnectionRequest::GetLagId
const Aws::String & GetLagId() const
Definition: CreateConnectionRequest.h:165
Aws::DirectConnect::Model::CreateConnectionRequest::GetBandwidth
const Aws::String & GetBandwidth() const
Definition: CreateConnectionRequest.h:83
Aws::DirectConnect::Model::CreateConnectionRequest::WithLocation
CreateConnectionRequest & WithLocation(const Aws::String &value)
Definition: CreateConnectionRequest.h:67
Aws::DirectConnect::Model::CreateConnectionRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: CreateConnectionRequest.h:216
Aws::DirectConnect::Model::CreateConnectionRequest::SetLocation
void SetLocation(const char *value)
Definition: CreateConnectionRequest.h:62
AWS_DIRECTCONNECT_API
#define AWS_DIRECTCONNECT_API
Definition: DirectConnect_EXPORTS.h:28
Aws::DirectConnect::Model::CreateConnectionRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: CreateConnectionRequest.h:221
Aws::DirectConnect::Model::CreateConnectionRequest::WithRequestMACSec
CreateConnectionRequest & WithRequestMACSec(bool value)
Definition: CreateConnectionRequest.h:327
Aws::DirectConnect::Model::CreateConnectionRequest::BandwidthHasBeenSet
bool BandwidthHasBeenSet() const
Definition: CreateConnectionRequest.h:88
DirectConnectRequest.h