AWS SDK for C++

AWS SDK for C++ Version 1.11.895

Loading...
Searching...
No Matches
CreateConnectionRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/directconnect/DirectConnectRequest.h>
10#include <aws/directconnect/DirectConnect_EXPORTS.h>
11#include <aws/directconnect/model/RequestBillingMode.h>
12#include <aws/directconnect/model/Tag.h>
13
14#include <utility>
15
16namespace Aws {
17namespace DirectConnect {
18namespace Model {
19
23 public:
24 AWS_DIRECTCONNECT_API CreateConnectionRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "CreateConnection"; }
31
32 AWS_DIRECTCONNECT_API Aws::String SerializePayload() const override;
33
34 AWS_DIRECTCONNECT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
35
37
40 inline const Aws::String& GetLocation() const { return m_location; }
41 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
42 template <typename LocationT = Aws::String>
43 void SetLocation(LocationT&& value) {
44 m_locationHasBeenSet = true;
45 m_location = std::forward<LocationT>(value);
46 }
47 template <typename LocationT = Aws::String>
49 SetLocation(std::forward<LocationT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetBandwidth() const { return m_bandwidth; }
59 inline bool BandwidthHasBeenSet() const { return m_bandwidthHasBeenSet; }
60 template <typename BandwidthT = Aws::String>
61 void SetBandwidth(BandwidthT&& value) {
62 m_bandwidthHasBeenSet = true;
63 m_bandwidth = std::forward<BandwidthT>(value);
64 }
65 template <typename BandwidthT = Aws::String>
67 SetBandwidth(std::forward<BandwidthT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetConnectionName() const { return m_connectionName; }
77 inline bool ConnectionNameHasBeenSet() const { return m_connectionNameHasBeenSet; }
78 template <typename ConnectionNameT = Aws::String>
79 void SetConnectionName(ConnectionNameT&& value) {
80 m_connectionNameHasBeenSet = true;
81 m_connectionName = std::forward<ConnectionNameT>(value);
82 }
83 template <typename ConnectionNameT = Aws::String>
84 CreateConnectionRequest& WithConnectionName(ConnectionNameT&& value) {
85 SetConnectionName(std::forward<ConnectionNameT>(value));
86 return *this;
87 }
89
91
94 inline const Aws::String& GetLagId() const { return m_lagId; }
95 inline bool LagIdHasBeenSet() const { return m_lagIdHasBeenSet; }
96 template <typename LagIdT = Aws::String>
97 void SetLagId(LagIdT&& value) {
98 m_lagIdHasBeenSet = true;
99 m_lagId = std::forward<LagIdT>(value);
100 }
101 template <typename LagIdT = Aws::String>
103 SetLagId(std::forward<LagIdT>(value));
104 return *this;
105 }
107
109
112 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
113 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
114 template <typename TagsT = Aws::Vector<Tag>>
115 void SetTags(TagsT&& value) {
116 m_tagsHasBeenSet = true;
117 m_tags = std::forward<TagsT>(value);
118 }
119 template <typename TagsT = Aws::Vector<Tag>>
121 SetTags(std::forward<TagsT>(value));
122 return *this;
123 }
124 template <typename TagsT = Tag>
126 m_tagsHasBeenSet = true;
127 m_tags.emplace_back(std::forward<TagsT>(value));
128 return *this;
129 }
131
133
137 inline const Aws::String& GetProviderName() const { return m_providerName; }
138 inline bool ProviderNameHasBeenSet() const { return m_providerNameHasBeenSet; }
139 template <typename ProviderNameT = Aws::String>
140 void SetProviderName(ProviderNameT&& value) {
141 m_providerNameHasBeenSet = true;
142 m_providerName = std::forward<ProviderNameT>(value);
143 }
144 template <typename ProviderNameT = Aws::String>
146 SetProviderName(std::forward<ProviderNameT>(value));
147 return *this;
148 }
150
152
159 inline bool GetRequestMACSec() const { return m_requestMACSec; }
160 inline bool RequestMACSecHasBeenSet() const { return m_requestMACSecHasBeenSet; }
161 inline void SetRequestMACSec(bool value) {
162 m_requestMACSecHasBeenSet = true;
163 m_requestMACSec = value;
164 }
166 SetRequestMACSec(value);
167 return *this;
168 }
170
172
175 inline RequestBillingMode GetBillingMode() const { return m_billingMode; }
176 inline bool BillingModeHasBeenSet() const { return m_billingModeHasBeenSet; }
178 m_billingModeHasBeenSet = true;
179 m_billingMode = value;
180 }
182 SetBillingMode(value);
183 return *this;
184 }
186 private:
187 Aws::String m_location;
188
189 Aws::String m_bandwidth;
190
191 Aws::String m_connectionName;
192
193 Aws::String m_lagId;
194
195 Aws::Vector<Tag> m_tags;
196
197 Aws::String m_providerName;
198
199 bool m_requestMACSec{false};
200
202 bool m_locationHasBeenSet = false;
203 bool m_bandwidthHasBeenSet = false;
204 bool m_connectionNameHasBeenSet = false;
205 bool m_lagIdHasBeenSet = false;
206 bool m_tagsHasBeenSet = false;
207 bool m_providerNameHasBeenSet = false;
208 bool m_requestMACSecHasBeenSet = false;
209 bool m_billingModeHasBeenSet = false;
210};
211
212} // namespace Model
213} // namespace DirectConnect
214} // namespace Aws
CreateConnectionRequest & WithRequestMACSec(bool value)
AWS_DIRECTCONNECT_API CreateConnectionRequest()=default
CreateConnectionRequest & WithTags(TagsT &&value)
CreateConnectionRequest & AddTags(TagsT &&value)
CreateConnectionRequest & WithConnectionName(ConnectionNameT &&value)
CreateConnectionRequest & WithBillingMode(RequestBillingMode value)
CreateConnectionRequest & WithBandwidth(BandwidthT &&value)
AWS_DIRECTCONNECT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_DIRECTCONNECT_API Aws::String SerializePayload() const override
CreateConnectionRequest & WithProviderName(ProviderNameT &&value)
virtual const char * GetServiceRequestName() const override
CreateConnectionRequest & WithLagId(LagIdT &&value)
CreateConnectionRequest & WithLocation(LocationT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector