AWS SDK for C++

AWS SDK for C++ Version 1.11.895

Loading...
Searching...
No Matches
CreateLagRequest.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 CreateLagRequest() = 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 "CreateLag"; }
31
32 AWS_DIRECTCONNECT_API Aws::String SerializePayload() const override;
33
34 AWS_DIRECTCONNECT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
35
37
42 inline int GetNumberOfConnections() const { return m_numberOfConnections; }
43 inline bool NumberOfConnectionsHasBeenSet() const { return m_numberOfConnectionsHasBeenSet; }
44 inline void SetNumberOfConnections(int value) {
45 m_numberOfConnectionsHasBeenSet = true;
46 m_numberOfConnections = value;
47 }
50 return *this;
51 }
53
55
58 inline const Aws::String& GetLocation() const { return m_location; }
59 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
60 template <typename LocationT = Aws::String>
61 void SetLocation(LocationT&& value) {
62 m_locationHasBeenSet = true;
63 m_location = std::forward<LocationT>(value);
64 }
65 template <typename LocationT = Aws::String>
66 CreateLagRequest& WithLocation(LocationT&& value) {
67 SetLocation(std::forward<LocationT>(value));
68 return *this;
69 }
71
73
77 inline const Aws::String& GetConnectionsBandwidth() const { return m_connectionsBandwidth; }
78 inline bool ConnectionsBandwidthHasBeenSet() const { return m_connectionsBandwidthHasBeenSet; }
79 template <typename ConnectionsBandwidthT = Aws::String>
80 void SetConnectionsBandwidth(ConnectionsBandwidthT&& value) {
81 m_connectionsBandwidthHasBeenSet = true;
82 m_connectionsBandwidth = std::forward<ConnectionsBandwidthT>(value);
83 }
84 template <typename ConnectionsBandwidthT = Aws::String>
85 CreateLagRequest& WithConnectionsBandwidth(ConnectionsBandwidthT&& value) {
86 SetConnectionsBandwidth(std::forward<ConnectionsBandwidthT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::String& GetLagName() const { return m_lagName; }
96 inline bool LagNameHasBeenSet() const { return m_lagNameHasBeenSet; }
97 template <typename LagNameT = Aws::String>
98 void SetLagName(LagNameT&& value) {
99 m_lagNameHasBeenSet = true;
100 m_lagName = std::forward<LagNameT>(value);
101 }
102 template <typename LagNameT = Aws::String>
103 CreateLagRequest& WithLagName(LagNameT&& value) {
104 SetLagName(std::forward<LagNameT>(value));
105 return *this;
106 }
108
110
113 inline const Aws::String& GetConnectionId() const { return m_connectionId; }
114 inline bool ConnectionIdHasBeenSet() const { return m_connectionIdHasBeenSet; }
115 template <typename ConnectionIdT = Aws::String>
116 void SetConnectionId(ConnectionIdT&& value) {
117 m_connectionIdHasBeenSet = true;
118 m_connectionId = std::forward<ConnectionIdT>(value);
119 }
120 template <typename ConnectionIdT = Aws::String>
121 CreateLagRequest& WithConnectionId(ConnectionIdT&& value) {
122 SetConnectionId(std::forward<ConnectionIdT>(value));
123 return *this;
124 }
126
128
131 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
132 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
133 template <typename TagsT = Aws::Vector<Tag>>
134 void SetTags(TagsT&& value) {
135 m_tagsHasBeenSet = true;
136 m_tags = std::forward<TagsT>(value);
137 }
138 template <typename TagsT = Aws::Vector<Tag>>
139 CreateLagRequest& WithTags(TagsT&& value) {
140 SetTags(std::forward<TagsT>(value));
141 return *this;
142 }
143 template <typename TagsT = Tag>
144 CreateLagRequest& AddTags(TagsT&& value) {
145 m_tagsHasBeenSet = true;
146 m_tags.emplace_back(std::forward<TagsT>(value));
147 return *this;
148 }
150
152
155 inline const Aws::Vector<Tag>& GetChildConnectionTags() const { return m_childConnectionTags; }
156 inline bool ChildConnectionTagsHasBeenSet() const { return m_childConnectionTagsHasBeenSet; }
157 template <typename ChildConnectionTagsT = Aws::Vector<Tag>>
158 void SetChildConnectionTags(ChildConnectionTagsT&& value) {
159 m_childConnectionTagsHasBeenSet = true;
160 m_childConnectionTags = std::forward<ChildConnectionTagsT>(value);
161 }
162 template <typename ChildConnectionTagsT = Aws::Vector<Tag>>
163 CreateLagRequest& WithChildConnectionTags(ChildConnectionTagsT&& value) {
164 SetChildConnectionTags(std::forward<ChildConnectionTagsT>(value));
165 return *this;
166 }
167 template <typename ChildConnectionTagsT = Tag>
168 CreateLagRequest& AddChildConnectionTags(ChildConnectionTagsT&& value) {
169 m_childConnectionTagsHasBeenSet = true;
170 m_childConnectionTags.emplace_back(std::forward<ChildConnectionTagsT>(value));
171 return *this;
172 }
174
176
179 inline const Aws::String& GetProviderName() const { return m_providerName; }
180 inline bool ProviderNameHasBeenSet() const { return m_providerNameHasBeenSet; }
181 template <typename ProviderNameT = Aws::String>
182 void SetProviderName(ProviderNameT&& value) {
183 m_providerNameHasBeenSet = true;
184 m_providerName = std::forward<ProviderNameT>(value);
185 }
186 template <typename ProviderNameT = Aws::String>
187 CreateLagRequest& WithProviderName(ProviderNameT&& value) {
188 SetProviderName(std::forward<ProviderNameT>(value));
189 return *this;
190 }
192
194
201 inline bool GetRequestMACSec() const { return m_requestMACSec; }
202 inline bool RequestMACSecHasBeenSet() const { return m_requestMACSecHasBeenSet; }
203 inline void SetRequestMACSec(bool value) {
204 m_requestMACSecHasBeenSet = true;
205 m_requestMACSec = value;
206 }
208 SetRequestMACSec(value);
209 return *this;
210 }
212
214
217 inline RequestBillingMode GetBillingMode() const { return m_billingMode; }
218 inline bool BillingModeHasBeenSet() const { return m_billingModeHasBeenSet; }
220 m_billingModeHasBeenSet = true;
221 m_billingMode = value;
222 }
224 SetBillingMode(value);
225 return *this;
226 }
228 private:
229 int m_numberOfConnections{0};
230
231 Aws::String m_location;
232
233 Aws::String m_connectionsBandwidth;
234
235 Aws::String m_lagName;
236
237 Aws::String m_connectionId;
238
239 Aws::Vector<Tag> m_tags;
240
241 Aws::Vector<Tag> m_childConnectionTags;
242
243 Aws::String m_providerName;
244
245 bool m_requestMACSec{false};
246
248 bool m_numberOfConnectionsHasBeenSet = false;
249 bool m_locationHasBeenSet = false;
250 bool m_connectionsBandwidthHasBeenSet = false;
251 bool m_lagNameHasBeenSet = false;
252 bool m_connectionIdHasBeenSet = false;
253 bool m_tagsHasBeenSet = false;
254 bool m_childConnectionTagsHasBeenSet = false;
255 bool m_providerNameHasBeenSet = false;
256 bool m_requestMACSecHasBeenSet = false;
257 bool m_billingModeHasBeenSet = false;
258};
259
260} // namespace Model
261} // namespace DirectConnect
262} // namespace Aws
const Aws::Vector< Tag > & GetChildConnectionTags() const
CreateLagRequest & WithBillingMode(RequestBillingMode value)
CreateLagRequest & AddChildConnectionTags(ChildConnectionTagsT &&value)
CreateLagRequest & WithNumberOfConnections(int value)
AWS_DIRECTCONNECT_API CreateLagRequest()=default
CreateLagRequest & WithConnectionsBandwidth(ConnectionsBandwidthT &&value)
const Aws::String & GetConnectionsBandwidth() const
CreateLagRequest & WithTags(TagsT &&value)
void SetBillingMode(RequestBillingMode value)
void SetConnectionsBandwidth(ConnectionsBandwidthT &&value)
CreateLagRequest & WithRequestMACSec(bool value)
AWS_DIRECTCONNECT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateLagRequest & WithChildConnectionTags(ChildConnectionTagsT &&value)
CreateLagRequest & WithConnectionId(ConnectionIdT &&value)
CreateLagRequest & WithProviderName(ProviderNameT &&value)
void SetChildConnectionTags(ChildConnectionTagsT &&value)
virtual const char * GetServiceRequestName() const override
CreateLagRequest & WithLagName(LagNameT &&value)
AWS_DIRECTCONNECT_API Aws::String SerializePayload() const override
const Aws::Vector< Tag > & GetTags() const
CreateLagRequest & WithLocation(LocationT &&value)
CreateLagRequest & AddTags(TagsT &&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