AWS SDK for C++

AWS SDK for C++ Version 1.11.743

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/Tag.h>
12
13#include <utility>
14
15namespace Aws {
16namespace DirectConnect {
17namespace Model {
18
22 public:
23 AWS_DIRECTCONNECT_API CreateLagRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "CreateLag"; }
30
31 AWS_DIRECTCONNECT_API Aws::String SerializePayload() const override;
32
33 AWS_DIRECTCONNECT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
34
36
41 inline int GetNumberOfConnections() const { return m_numberOfConnections; }
42 inline bool NumberOfConnectionsHasBeenSet() const { return m_numberOfConnectionsHasBeenSet; }
43 inline void SetNumberOfConnections(int value) {
44 m_numberOfConnectionsHasBeenSet = true;
45 m_numberOfConnections = value;
46 }
49 return *this;
50 }
52
54
57 inline const Aws::String& GetLocation() const { return m_location; }
58 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
59 template <typename LocationT = Aws::String>
60 void SetLocation(LocationT&& value) {
61 m_locationHasBeenSet = true;
62 m_location = std::forward<LocationT>(value);
63 }
64 template <typename LocationT = Aws::String>
65 CreateLagRequest& WithLocation(LocationT&& value) {
66 SetLocation(std::forward<LocationT>(value));
67 return *this;
68 }
70
72
76 inline const Aws::String& GetConnectionsBandwidth() const { return m_connectionsBandwidth; }
77 inline bool ConnectionsBandwidthHasBeenSet() const { return m_connectionsBandwidthHasBeenSet; }
78 template <typename ConnectionsBandwidthT = Aws::String>
79 void SetConnectionsBandwidth(ConnectionsBandwidthT&& value) {
80 m_connectionsBandwidthHasBeenSet = true;
81 m_connectionsBandwidth = std::forward<ConnectionsBandwidthT>(value);
82 }
83 template <typename ConnectionsBandwidthT = Aws::String>
84 CreateLagRequest& WithConnectionsBandwidth(ConnectionsBandwidthT&& value) {
85 SetConnectionsBandwidth(std::forward<ConnectionsBandwidthT>(value));
86 return *this;
87 }
89
91
94 inline const Aws::String& GetLagName() const { return m_lagName; }
95 inline bool LagNameHasBeenSet() const { return m_lagNameHasBeenSet; }
96 template <typename LagNameT = Aws::String>
97 void SetLagName(LagNameT&& value) {
98 m_lagNameHasBeenSet = true;
99 m_lagName = std::forward<LagNameT>(value);
100 }
101 template <typename LagNameT = Aws::String>
102 CreateLagRequest& WithLagName(LagNameT&& value) {
103 SetLagName(std::forward<LagNameT>(value));
104 return *this;
105 }
107
109
112 inline const Aws::String& GetConnectionId() const { return m_connectionId; }
113 inline bool ConnectionIdHasBeenSet() const { return m_connectionIdHasBeenSet; }
114 template <typename ConnectionIdT = Aws::String>
115 void SetConnectionId(ConnectionIdT&& value) {
116 m_connectionIdHasBeenSet = true;
117 m_connectionId = std::forward<ConnectionIdT>(value);
118 }
119 template <typename ConnectionIdT = Aws::String>
120 CreateLagRequest& WithConnectionId(ConnectionIdT&& value) {
121 SetConnectionId(std::forward<ConnectionIdT>(value));
122 return *this;
123 }
125
127
130 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
131 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
132 template <typename TagsT = Aws::Vector<Tag>>
133 void SetTags(TagsT&& value) {
134 m_tagsHasBeenSet = true;
135 m_tags = std::forward<TagsT>(value);
136 }
137 template <typename TagsT = Aws::Vector<Tag>>
138 CreateLagRequest& WithTags(TagsT&& value) {
139 SetTags(std::forward<TagsT>(value));
140 return *this;
141 }
142 template <typename TagsT = Tag>
143 CreateLagRequest& AddTags(TagsT&& value) {
144 m_tagsHasBeenSet = true;
145 m_tags.emplace_back(std::forward<TagsT>(value));
146 return *this;
147 }
149
151
154 inline const Aws::Vector<Tag>& GetChildConnectionTags() const { return m_childConnectionTags; }
155 inline bool ChildConnectionTagsHasBeenSet() const { return m_childConnectionTagsHasBeenSet; }
156 template <typename ChildConnectionTagsT = Aws::Vector<Tag>>
157 void SetChildConnectionTags(ChildConnectionTagsT&& value) {
158 m_childConnectionTagsHasBeenSet = true;
159 m_childConnectionTags = std::forward<ChildConnectionTagsT>(value);
160 }
161 template <typename ChildConnectionTagsT = Aws::Vector<Tag>>
162 CreateLagRequest& WithChildConnectionTags(ChildConnectionTagsT&& value) {
163 SetChildConnectionTags(std::forward<ChildConnectionTagsT>(value));
164 return *this;
165 }
166 template <typename ChildConnectionTagsT = Tag>
167 CreateLagRequest& AddChildConnectionTags(ChildConnectionTagsT&& value) {
168 m_childConnectionTagsHasBeenSet = true;
169 m_childConnectionTags.emplace_back(std::forward<ChildConnectionTagsT>(value));
170 return *this;
171 }
173
175
178 inline const Aws::String& GetProviderName() const { return m_providerName; }
179 inline bool ProviderNameHasBeenSet() const { return m_providerNameHasBeenSet; }
180 template <typename ProviderNameT = Aws::String>
181 void SetProviderName(ProviderNameT&& value) {
182 m_providerNameHasBeenSet = true;
183 m_providerName = std::forward<ProviderNameT>(value);
184 }
185 template <typename ProviderNameT = Aws::String>
186 CreateLagRequest& WithProviderName(ProviderNameT&& value) {
187 SetProviderName(std::forward<ProviderNameT>(value));
188 return *this;
189 }
191
193
200 inline bool GetRequestMACSec() const { return m_requestMACSec; }
201 inline bool RequestMACSecHasBeenSet() const { return m_requestMACSecHasBeenSet; }
202 inline void SetRequestMACSec(bool value) {
203 m_requestMACSecHasBeenSet = true;
204 m_requestMACSec = value;
205 }
207 SetRequestMACSec(value);
208 return *this;
209 }
211 private:
212 int m_numberOfConnections{0};
213
214 Aws::String m_location;
215
216 Aws::String m_connectionsBandwidth;
217
218 Aws::String m_lagName;
219
220 Aws::String m_connectionId;
221
222 Aws::Vector<Tag> m_tags;
223
224 Aws::Vector<Tag> m_childConnectionTags;
225
226 Aws::String m_providerName;
227
228 bool m_requestMACSec{false};
229 bool m_numberOfConnectionsHasBeenSet = false;
230 bool m_locationHasBeenSet = false;
231 bool m_connectionsBandwidthHasBeenSet = false;
232 bool m_lagNameHasBeenSet = false;
233 bool m_connectionIdHasBeenSet = false;
234 bool m_tagsHasBeenSet = false;
235 bool m_childConnectionTagsHasBeenSet = false;
236 bool m_providerNameHasBeenSet = false;
237 bool m_requestMACSecHasBeenSet = false;
238};
239
240} // namespace Model
241} // namespace DirectConnect
242} // namespace Aws
const Aws::Vector< Tag > & GetChildConnectionTags() const
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 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