AWS SDK for C++

AWS SDK for C++ Version 1.11.743

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
72 inline const Aws::Vector<ConfigParameter>& GetConfigParameters() const { return m_configParameters; }
73 inline bool ConfigParametersHasBeenSet() const { return m_configParametersHasBeenSet; }
74 template <typename ConfigParametersT = Aws::Vector<ConfigParameter>>
75 void SetConfigParameters(ConfigParametersT&& value) {
76 m_configParametersHasBeenSet = true;
77 m_configParameters = std::forward<ConfigParametersT>(value);
78 }
79 template <typename ConfigParametersT = Aws::Vector<ConfigParameter>>
80 CreateWorkgroupRequest& WithConfigParameters(ConfigParametersT&& value) {
81 SetConfigParameters(std::forward<ConfigParametersT>(value));
82 return *this;
83 }
84 template <typename ConfigParametersT = ConfigParameter>
85 CreateWorkgroupRequest& AddConfigParameters(ConfigParametersT&& value) {
86 m_configParametersHasBeenSet = true;
87 m_configParameters.emplace_back(std::forward<ConfigParametersT>(value));
88 return *this;
89 }
91
93
98 inline bool GetEnhancedVpcRouting() const { return m_enhancedVpcRouting; }
99 inline bool EnhancedVpcRoutingHasBeenSet() const { return m_enhancedVpcRoutingHasBeenSet; }
100 inline void SetEnhancedVpcRouting(bool value) {
101 m_enhancedVpcRoutingHasBeenSet = true;
102 m_enhancedVpcRouting = value;
103 }
106 return *this;
107 }
109
111
115 inline bool GetExtraComputeForAutomaticOptimization() const { return m_extraComputeForAutomaticOptimization; }
116 inline bool ExtraComputeForAutomaticOptimizationHasBeenSet() const { return m_extraComputeForAutomaticOptimizationHasBeenSet; }
118 m_extraComputeForAutomaticOptimizationHasBeenSet = true;
119 m_extraComputeForAutomaticOptimization = value;
120 }
123 return *this;
124 }
126
128
132 inline const Aws::String& GetIpAddressType() const { return m_ipAddressType; }
133 inline bool IpAddressTypeHasBeenSet() const { return m_ipAddressTypeHasBeenSet; }
134 template <typename IpAddressTypeT = Aws::String>
135 void SetIpAddressType(IpAddressTypeT&& value) {
136 m_ipAddressTypeHasBeenSet = true;
137 m_ipAddressType = std::forward<IpAddressTypeT>(value);
138 }
139 template <typename IpAddressTypeT = Aws::String>
140 CreateWorkgroupRequest& WithIpAddressType(IpAddressTypeT&& value) {
141 SetIpAddressType(std::forward<IpAddressTypeT>(value));
142 return *this;
143 }
145
147
151 inline int GetMaxCapacity() const { return m_maxCapacity; }
152 inline bool MaxCapacityHasBeenSet() const { return m_maxCapacityHasBeenSet; }
153 inline void SetMaxCapacity(int value) {
154 m_maxCapacityHasBeenSet = true;
155 m_maxCapacity = value;
156 }
158 SetMaxCapacity(value);
159 return *this;
160 }
162
164
167 inline const Aws::String& GetNamespaceName() const { return m_namespaceName; }
168 inline bool NamespaceNameHasBeenSet() const { return m_namespaceNameHasBeenSet; }
169 template <typename NamespaceNameT = Aws::String>
170 void SetNamespaceName(NamespaceNameT&& value) {
171 m_namespaceNameHasBeenSet = true;
172 m_namespaceName = std::forward<NamespaceNameT>(value);
173 }
174 template <typename NamespaceNameT = Aws::String>
175 CreateWorkgroupRequest& WithNamespaceName(NamespaceNameT&& value) {
176 SetNamespaceName(std::forward<NamespaceNameT>(value));
177 return *this;
178 }
180
182
186 inline int GetPort() const { return m_port; }
187 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
188 inline void SetPort(int value) {
189 m_portHasBeenSet = true;
190 m_port = value;
191 }
192 inline CreateWorkgroupRequest& WithPort(int value) {
193 SetPort(value);
194 return *this;
195 }
197
199
203 inline const PerformanceTarget& GetPricePerformanceTarget() const { return m_pricePerformanceTarget; }
204 inline bool PricePerformanceTargetHasBeenSet() const { return m_pricePerformanceTargetHasBeenSet; }
205 template <typename PricePerformanceTargetT = PerformanceTarget>
206 void SetPricePerformanceTarget(PricePerformanceTargetT&& value) {
207 m_pricePerformanceTargetHasBeenSet = true;
208 m_pricePerformanceTarget = std::forward<PricePerformanceTargetT>(value);
209 }
210 template <typename PricePerformanceTargetT = PerformanceTarget>
211 CreateWorkgroupRequest& WithPricePerformanceTarget(PricePerformanceTargetT&& value) {
212 SetPricePerformanceTarget(std::forward<PricePerformanceTargetT>(value));
213 return *this;
214 }
216
218
222 inline bool GetPubliclyAccessible() const { return m_publiclyAccessible; }
223 inline bool PubliclyAccessibleHasBeenSet() const { return m_publiclyAccessibleHasBeenSet; }
224 inline void SetPubliclyAccessible(bool value) {
225 m_publiclyAccessibleHasBeenSet = true;
226 m_publiclyAccessible = value;
227 }
230 return *this;
231 }
233
235
238 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const { return m_securityGroupIds; }
239 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
240 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
241 void SetSecurityGroupIds(SecurityGroupIdsT&& value) {
242 m_securityGroupIdsHasBeenSet = true;
243 m_securityGroupIds = std::forward<SecurityGroupIdsT>(value);
244 }
245 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
246 CreateWorkgroupRequest& WithSecurityGroupIds(SecurityGroupIdsT&& value) {
247 SetSecurityGroupIds(std::forward<SecurityGroupIdsT>(value));
248 return *this;
249 }
250 template <typename SecurityGroupIdsT = Aws::String>
251 CreateWorkgroupRequest& AddSecurityGroupIds(SecurityGroupIdsT&& value) {
252 m_securityGroupIdsHasBeenSet = true;
253 m_securityGroupIds.emplace_back(std::forward<SecurityGroupIdsT>(value));
254 return *this;
255 }
257
259
262 inline const Aws::Vector<Aws::String>& GetSubnetIds() const { return m_subnetIds; }
263 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
264 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
265 void SetSubnetIds(SubnetIdsT&& value) {
266 m_subnetIdsHasBeenSet = true;
267 m_subnetIds = std::forward<SubnetIdsT>(value);
268 }
269 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
271 SetSubnetIds(std::forward<SubnetIdsT>(value));
272 return *this;
273 }
274 template <typename SubnetIdsT = Aws::String>
276 m_subnetIdsHasBeenSet = true;
277 m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value));
278 return *this;
279 }
281
283
286 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
287 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
288 template <typename TagsT = Aws::Vector<Tag>>
289 void SetTags(TagsT&& value) {
290 m_tagsHasBeenSet = true;
291 m_tags = std::forward<TagsT>(value);
292 }
293 template <typename TagsT = Aws::Vector<Tag>>
295 SetTags(std::forward<TagsT>(value));
296 return *this;
297 }
298 template <typename TagsT = Tag>
300 m_tagsHasBeenSet = true;
301 m_tags.emplace_back(std::forward<TagsT>(value));
302 return *this;
303 }
305
307
312 inline const Aws::String& GetTrackName() const { return m_trackName; }
313 inline bool TrackNameHasBeenSet() const { return m_trackNameHasBeenSet; }
314 template <typename TrackNameT = Aws::String>
315 void SetTrackName(TrackNameT&& value) {
316 m_trackNameHasBeenSet = true;
317 m_trackName = std::forward<TrackNameT>(value);
318 }
319 template <typename TrackNameT = Aws::String>
321 SetTrackName(std::forward<TrackNameT>(value));
322 return *this;
323 }
325
327
330 inline const Aws::String& GetWorkgroupName() const { return m_workgroupName; }
331 inline bool WorkgroupNameHasBeenSet() const { return m_workgroupNameHasBeenSet; }
332 template <typename WorkgroupNameT = Aws::String>
333 void SetWorkgroupName(WorkgroupNameT&& value) {
334 m_workgroupNameHasBeenSet = true;
335 m_workgroupName = std::forward<WorkgroupNameT>(value);
336 }
337 template <typename WorkgroupNameT = Aws::String>
338 CreateWorkgroupRequest& WithWorkgroupName(WorkgroupNameT&& value) {
339 SetWorkgroupName(std::forward<WorkgroupNameT>(value));
340 return *this;
341 }
343 private:
344 int m_baseCapacity{0};
345
346 Aws::Vector<ConfigParameter> m_configParameters;
347
348 bool m_enhancedVpcRouting{false};
349
350 bool m_extraComputeForAutomaticOptimization{false};
351
352 Aws::String m_ipAddressType;
353
354 int m_maxCapacity{0};
355
356 Aws::String m_namespaceName;
357
358 int m_port{0};
359
360 PerformanceTarget m_pricePerformanceTarget;
361
362 bool m_publiclyAccessible{false};
363
364 Aws::Vector<Aws::String> m_securityGroupIds;
365
366 Aws::Vector<Aws::String> m_subnetIds;
367
368 Aws::Vector<Tag> m_tags;
369
370 Aws::String m_trackName;
371
372 Aws::String m_workgroupName;
373 bool m_baseCapacityHasBeenSet = false;
374 bool m_configParametersHasBeenSet = false;
375 bool m_enhancedVpcRoutingHasBeenSet = false;
376 bool m_extraComputeForAutomaticOptimizationHasBeenSet = false;
377 bool m_ipAddressTypeHasBeenSet = false;
378 bool m_maxCapacityHasBeenSet = false;
379 bool m_namespaceNameHasBeenSet = false;
380 bool m_portHasBeenSet = false;
381 bool m_pricePerformanceTargetHasBeenSet = false;
382 bool m_publiclyAccessibleHasBeenSet = false;
383 bool m_securityGroupIdsHasBeenSet = false;
384 bool m_subnetIdsHasBeenSet = false;
385 bool m_tagsHasBeenSet = false;
386 bool m_trackNameHasBeenSet = false;
387 bool m_workgroupNameHasBeenSet = false;
388};
389
390} // namespace Model
391} // namespace RedshiftServerless
392} // 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 & WithExtraComputeForAutomaticOptimization(bool value)
CreateWorkgroupRequest & WithTrackName(TrackNameT &&value)
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
CreateWorkgroupRequest & WithSecurityGroupIds(SecurityGroupIdsT &&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