AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CreateWorkgroupRequest.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/redshift-serverless/RedshiftServerlessRequest.h>
10#include <aws/redshift-serverless/RedshiftServerless_EXPORTS.h>
11#include <aws/redshift-serverless/model/ConfigParameter.h>
12#include <aws/redshift-serverless/model/PerformanceTarget.h>
13#include <aws/redshift-serverless/model/Tag.h>
14
15#include <utility>
16
17namespace Aws {
18namespace RedshiftServerless {
19namespace Model {
20
24 public:
25 AWS_REDSHIFTSERVERLESS_API CreateWorkgroupRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateWorkgroup"; }
32
33 AWS_REDSHIFTSERVERLESS_API Aws::String SerializePayload() const override;
34
35 AWS_REDSHIFTSERVERLESS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36
38
42 inline int GetBaseCapacity() const { return m_baseCapacity; }
43 inline bool BaseCapacityHasBeenSet() const { return m_baseCapacityHasBeenSet; }
44 inline void SetBaseCapacity(int value) {
45 m_baseCapacityHasBeenSet = true;
46 m_baseCapacity = value;
47 }
49 SetBaseCapacity(value);
50 return *this;
51 }
53
55
66 inline const Aws::Vector<ConfigParameter>& GetConfigParameters() const { return m_configParameters; }
67 inline bool ConfigParametersHasBeenSet() const { return m_configParametersHasBeenSet; }
68 template <typename ConfigParametersT = Aws::Vector<ConfigParameter>>
69 void SetConfigParameters(ConfigParametersT&& value) {
70 m_configParametersHasBeenSet = true;
71 m_configParameters = std::forward<ConfigParametersT>(value);
72 }
73 template <typename ConfigParametersT = Aws::Vector<ConfigParameter>>
74 CreateWorkgroupRequest& WithConfigParameters(ConfigParametersT&& value) {
75 SetConfigParameters(std::forward<ConfigParametersT>(value));
76 return *this;
77 }
78 template <typename ConfigParametersT = ConfigParameter>
79 CreateWorkgroupRequest& AddConfigParameters(ConfigParametersT&& value) {
80 m_configParametersHasBeenSet = true;
81 m_configParameters.emplace_back(std::forward<ConfigParametersT>(value));
82 return *this;
83 }
85
87
92 inline bool GetEnhancedVpcRouting() const { return m_enhancedVpcRouting; }
93 inline bool EnhancedVpcRoutingHasBeenSet() const { return m_enhancedVpcRoutingHasBeenSet; }
94 inline void SetEnhancedVpcRouting(bool value) {
95 m_enhancedVpcRoutingHasBeenSet = true;
96 m_enhancedVpcRouting = value;
97 }
100 return *this;
101 }
103
105
109 inline const Aws::String& GetIpAddressType() const { return m_ipAddressType; }
110 inline bool IpAddressTypeHasBeenSet() const { return m_ipAddressTypeHasBeenSet; }
111 template <typename IpAddressTypeT = Aws::String>
112 void SetIpAddressType(IpAddressTypeT&& value) {
113 m_ipAddressTypeHasBeenSet = true;
114 m_ipAddressType = std::forward<IpAddressTypeT>(value);
115 }
116 template <typename IpAddressTypeT = Aws::String>
117 CreateWorkgroupRequest& WithIpAddressType(IpAddressTypeT&& value) {
118 SetIpAddressType(std::forward<IpAddressTypeT>(value));
119 return *this;
120 }
122
124
128 inline int GetMaxCapacity() const { return m_maxCapacity; }
129 inline bool MaxCapacityHasBeenSet() const { return m_maxCapacityHasBeenSet; }
130 inline void SetMaxCapacity(int value) {
131 m_maxCapacityHasBeenSet = true;
132 m_maxCapacity = value;
133 }
135 SetMaxCapacity(value);
136 return *this;
137 }
139
141
144 inline const Aws::String& GetNamespaceName() const { return m_namespaceName; }
145 inline bool NamespaceNameHasBeenSet() const { return m_namespaceNameHasBeenSet; }
146 template <typename NamespaceNameT = Aws::String>
147 void SetNamespaceName(NamespaceNameT&& value) {
148 m_namespaceNameHasBeenSet = true;
149 m_namespaceName = std::forward<NamespaceNameT>(value);
150 }
151 template <typename NamespaceNameT = Aws::String>
152 CreateWorkgroupRequest& WithNamespaceName(NamespaceNameT&& value) {
153 SetNamespaceName(std::forward<NamespaceNameT>(value));
154 return *this;
155 }
157
159
163 inline int GetPort() const { return m_port; }
164 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
165 inline void SetPort(int value) {
166 m_portHasBeenSet = true;
167 m_port = value;
168 }
169 inline CreateWorkgroupRequest& WithPort(int value) {
170 SetPort(value);
171 return *this;
172 }
174
176
180 inline const PerformanceTarget& GetPricePerformanceTarget() const { return m_pricePerformanceTarget; }
181 inline bool PricePerformanceTargetHasBeenSet() const { return m_pricePerformanceTargetHasBeenSet; }
182 template <typename PricePerformanceTargetT = PerformanceTarget>
183 void SetPricePerformanceTarget(PricePerformanceTargetT&& value) {
184 m_pricePerformanceTargetHasBeenSet = true;
185 m_pricePerformanceTarget = std::forward<PricePerformanceTargetT>(value);
186 }
187 template <typename PricePerformanceTargetT = PerformanceTarget>
188 CreateWorkgroupRequest& WithPricePerformanceTarget(PricePerformanceTargetT&& value) {
189 SetPricePerformanceTarget(std::forward<PricePerformanceTargetT>(value));
190 return *this;
191 }
193
195
199 inline bool GetPubliclyAccessible() const { return m_publiclyAccessible; }
200 inline bool PubliclyAccessibleHasBeenSet() const { return m_publiclyAccessibleHasBeenSet; }
201 inline void SetPubliclyAccessible(bool value) {
202 m_publiclyAccessibleHasBeenSet = true;
203 m_publiclyAccessible = value;
204 }
207 return *this;
208 }
210
212
215 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const { return m_securityGroupIds; }
216 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
217 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
218 void SetSecurityGroupIds(SecurityGroupIdsT&& value) {
219 m_securityGroupIdsHasBeenSet = true;
220 m_securityGroupIds = std::forward<SecurityGroupIdsT>(value);
221 }
222 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
223 CreateWorkgroupRequest& WithSecurityGroupIds(SecurityGroupIdsT&& value) {
224 SetSecurityGroupIds(std::forward<SecurityGroupIdsT>(value));
225 return *this;
226 }
227 template <typename SecurityGroupIdsT = Aws::String>
228 CreateWorkgroupRequest& AddSecurityGroupIds(SecurityGroupIdsT&& value) {
229 m_securityGroupIdsHasBeenSet = true;
230 m_securityGroupIds.emplace_back(std::forward<SecurityGroupIdsT>(value));
231 return *this;
232 }
234
236
239 inline const Aws::Vector<Aws::String>& GetSubnetIds() const { return m_subnetIds; }
240 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
241 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
242 void SetSubnetIds(SubnetIdsT&& value) {
243 m_subnetIdsHasBeenSet = true;
244 m_subnetIds = std::forward<SubnetIdsT>(value);
245 }
246 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
248 SetSubnetIds(std::forward<SubnetIdsT>(value));
249 return *this;
250 }
251 template <typename SubnetIdsT = Aws::String>
253 m_subnetIdsHasBeenSet = true;
254 m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value));
255 return *this;
256 }
258
260
263 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
264 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
265 template <typename TagsT = Aws::Vector<Tag>>
266 void SetTags(TagsT&& value) {
267 m_tagsHasBeenSet = true;
268 m_tags = std::forward<TagsT>(value);
269 }
270 template <typename TagsT = Aws::Vector<Tag>>
272 SetTags(std::forward<TagsT>(value));
273 return *this;
274 }
275 template <typename TagsT = Tag>
277 m_tagsHasBeenSet = true;
278 m_tags.emplace_back(std::forward<TagsT>(value));
279 return *this;
280 }
282
284
289 inline const Aws::String& GetTrackName() const { return m_trackName; }
290 inline bool TrackNameHasBeenSet() const { return m_trackNameHasBeenSet; }
291 template <typename TrackNameT = Aws::String>
292 void SetTrackName(TrackNameT&& value) {
293 m_trackNameHasBeenSet = true;
294 m_trackName = std::forward<TrackNameT>(value);
295 }
296 template <typename TrackNameT = Aws::String>
298 SetTrackName(std::forward<TrackNameT>(value));
299 return *this;
300 }
302
304
307 inline const Aws::String& GetWorkgroupName() const { return m_workgroupName; }
308 inline bool WorkgroupNameHasBeenSet() const { return m_workgroupNameHasBeenSet; }
309 template <typename WorkgroupNameT = Aws::String>
310 void SetWorkgroupName(WorkgroupNameT&& value) {
311 m_workgroupNameHasBeenSet = true;
312 m_workgroupName = std::forward<WorkgroupNameT>(value);
313 }
314 template <typename WorkgroupNameT = Aws::String>
315 CreateWorkgroupRequest& WithWorkgroupName(WorkgroupNameT&& value) {
316 SetWorkgroupName(std::forward<WorkgroupNameT>(value));
317 return *this;
318 }
320 private:
321 int m_baseCapacity{0};
322
323 Aws::Vector<ConfigParameter> m_configParameters;
324
325 bool m_enhancedVpcRouting{false};
326
327 Aws::String m_ipAddressType;
328
329 int m_maxCapacity{0};
330
331 Aws::String m_namespaceName;
332
333 int m_port{0};
334
335 PerformanceTarget m_pricePerformanceTarget;
336
337 bool m_publiclyAccessible{false};
338
339 Aws::Vector<Aws::String> m_securityGroupIds;
340
341 Aws::Vector<Aws::String> m_subnetIds;
342
343 Aws::Vector<Tag> m_tags;
344
345 Aws::String m_trackName;
346
347 Aws::String m_workgroupName;
348 bool m_baseCapacityHasBeenSet = false;
349 bool m_configParametersHasBeenSet = false;
350 bool m_enhancedVpcRoutingHasBeenSet = false;
351 bool m_ipAddressTypeHasBeenSet = false;
352 bool m_maxCapacityHasBeenSet = false;
353 bool m_namespaceNameHasBeenSet = false;
354 bool m_portHasBeenSet = false;
355 bool m_pricePerformanceTargetHasBeenSet = false;
356 bool m_publiclyAccessibleHasBeenSet = false;
357 bool m_securityGroupIdsHasBeenSet = false;
358 bool m_subnetIdsHasBeenSet = false;
359 bool m_tagsHasBeenSet = false;
360 bool m_trackNameHasBeenSet = false;
361 bool m_workgroupNameHasBeenSet = false;
362};
363
364} // namespace Model
365} // namespace RedshiftServerless
366} // namespace Aws
CreateWorkgroupRequest & WithNamespaceName(NamespaceNameT &&value)
CreateWorkgroupRequest & WithConfigParameters(ConfigParametersT &&value)
AWS_REDSHIFTSERVERLESS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetPricePerformanceTarget(PricePerformanceTargetT &&value)
const Aws::Vector< Aws::String > & GetSubnetIds() const
CreateWorkgroupRequest & AddSubnetIds(SubnetIdsT &&value)
CreateWorkgroupRequest & WithPricePerformanceTarget(PricePerformanceTargetT &&value)
CreateWorkgroupRequest & WithWorkgroupName(WorkgroupNameT &&value)
AWS_REDSHIFTSERVERLESS_API Aws::String SerializePayload() const override
const Aws::Vector< ConfigParameter > & GetConfigParameters() const
AWS_REDSHIFTSERVERLESS_API CreateWorkgroupRequest()=default
CreateWorkgroupRequest & AddSecurityGroupIds(SecurityGroupIdsT &&value)
virtual const char * GetServiceRequestName() const override
CreateWorkgroupRequest & WithTrackName(TrackNameT &&value)
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
CreateWorkgroupRequest & WithSecurityGroupIds(SecurityGroupIdsT &&value)
CreateWorkgroupRequest & WithEnhancedVpcRouting(bool value)
CreateWorkgroupRequest & WithIpAddressType(IpAddressTypeT &&value)
CreateWorkgroupRequest & WithSubnetIds(SubnetIdsT &&value)
CreateWorkgroupRequest & AddConfigParameters(ConfigParametersT &&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