AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateWorkgroupRequest.h
1
6#pragma once
7#include <aws/redshift-serverless/RedshiftServerless_EXPORTS.h>
8#include <aws/redshift-serverless/RedshiftServerlessRequest.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/redshift-serverless/model/PerformanceTarget.h>
12#include <aws/redshift-serverless/model/ConfigParameter.h>
13#include <aws/redshift-serverless/model/Tag.h>
14#include <utility>
15
16namespace Aws
17{
18namespace RedshiftServerless
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_REDSHIFTSERVERLESS_API CreateWorkgroupRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateWorkgroup"; }
35
36 AWS_REDSHIFTSERVERLESS_API Aws::String SerializePayload() const override;
37
38 AWS_REDSHIFTSERVERLESS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
39
40
42
46 inline int GetBaseCapacity() const { return m_baseCapacity; }
47 inline bool BaseCapacityHasBeenSet() const { return m_baseCapacityHasBeenSet; }
48 inline void SetBaseCapacity(int value) { m_baseCapacityHasBeenSet = true; m_baseCapacity = value; }
49 inline CreateWorkgroupRequest& WithBaseCapacity(int value) { SetBaseCapacity(value); return *this;}
51
53
64 inline const Aws::Vector<ConfigParameter>& GetConfigParameters() const { return m_configParameters; }
65 inline bool ConfigParametersHasBeenSet() const { return m_configParametersHasBeenSet; }
66 template<typename ConfigParametersT = Aws::Vector<ConfigParameter>>
67 void SetConfigParameters(ConfigParametersT&& value) { m_configParametersHasBeenSet = true; m_configParameters = std::forward<ConfigParametersT>(value); }
68 template<typename ConfigParametersT = Aws::Vector<ConfigParameter>>
69 CreateWorkgroupRequest& WithConfigParameters(ConfigParametersT&& value) { SetConfigParameters(std::forward<ConfigParametersT>(value)); return *this;}
70 template<typename ConfigParametersT = ConfigParameter>
71 CreateWorkgroupRequest& AddConfigParameters(ConfigParametersT&& value) { m_configParametersHasBeenSet = true; m_configParameters.emplace_back(std::forward<ConfigParametersT>(value)); return *this; }
73
75
80 inline bool GetEnhancedVpcRouting() const { return m_enhancedVpcRouting; }
81 inline bool EnhancedVpcRoutingHasBeenSet() const { return m_enhancedVpcRoutingHasBeenSet; }
82 inline void SetEnhancedVpcRouting(bool value) { m_enhancedVpcRoutingHasBeenSet = true; m_enhancedVpcRouting = value; }
83 inline CreateWorkgroupRequest& WithEnhancedVpcRouting(bool value) { SetEnhancedVpcRouting(value); return *this;}
85
87
91 inline const Aws::String& GetIpAddressType() const { return m_ipAddressType; }
92 inline bool IpAddressTypeHasBeenSet() const { return m_ipAddressTypeHasBeenSet; }
93 template<typename IpAddressTypeT = Aws::String>
94 void SetIpAddressType(IpAddressTypeT&& value) { m_ipAddressTypeHasBeenSet = true; m_ipAddressType = std::forward<IpAddressTypeT>(value); }
95 template<typename IpAddressTypeT = Aws::String>
96 CreateWorkgroupRequest& WithIpAddressType(IpAddressTypeT&& value) { SetIpAddressType(std::forward<IpAddressTypeT>(value)); return *this;}
98
100
104 inline int GetMaxCapacity() const { return m_maxCapacity; }
105 inline bool MaxCapacityHasBeenSet() const { return m_maxCapacityHasBeenSet; }
106 inline void SetMaxCapacity(int value) { m_maxCapacityHasBeenSet = true; m_maxCapacity = value; }
107 inline CreateWorkgroupRequest& WithMaxCapacity(int value) { SetMaxCapacity(value); return *this;}
109
111
114 inline const Aws::String& GetNamespaceName() const { return m_namespaceName; }
115 inline bool NamespaceNameHasBeenSet() const { return m_namespaceNameHasBeenSet; }
116 template<typename NamespaceNameT = Aws::String>
117 void SetNamespaceName(NamespaceNameT&& value) { m_namespaceNameHasBeenSet = true; m_namespaceName = std::forward<NamespaceNameT>(value); }
118 template<typename NamespaceNameT = Aws::String>
119 CreateWorkgroupRequest& WithNamespaceName(NamespaceNameT&& value) { SetNamespaceName(std::forward<NamespaceNameT>(value)); return *this;}
121
123
127 inline int GetPort() const { return m_port; }
128 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
129 inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; }
130 inline CreateWorkgroupRequest& WithPort(int value) { SetPort(value); return *this;}
132
134
138 inline const PerformanceTarget& GetPricePerformanceTarget() const { return m_pricePerformanceTarget; }
139 inline bool PricePerformanceTargetHasBeenSet() const { return m_pricePerformanceTargetHasBeenSet; }
140 template<typename PricePerformanceTargetT = PerformanceTarget>
141 void SetPricePerformanceTarget(PricePerformanceTargetT&& value) { m_pricePerformanceTargetHasBeenSet = true; m_pricePerformanceTarget = std::forward<PricePerformanceTargetT>(value); }
142 template<typename PricePerformanceTargetT = PerformanceTarget>
143 CreateWorkgroupRequest& WithPricePerformanceTarget(PricePerformanceTargetT&& value) { SetPricePerformanceTarget(std::forward<PricePerformanceTargetT>(value)); return *this;}
145
147
151 inline bool GetPubliclyAccessible() const { return m_publiclyAccessible; }
152 inline bool PubliclyAccessibleHasBeenSet() const { return m_publiclyAccessibleHasBeenSet; }
153 inline void SetPubliclyAccessible(bool value) { m_publiclyAccessibleHasBeenSet = true; m_publiclyAccessible = value; }
154 inline CreateWorkgroupRequest& WithPubliclyAccessible(bool value) { SetPubliclyAccessible(value); return *this;}
156
158
161 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const { return m_securityGroupIds; }
162 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
163 template<typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
164 void SetSecurityGroupIds(SecurityGroupIdsT&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = std::forward<SecurityGroupIdsT>(value); }
165 template<typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
166 CreateWorkgroupRequest& WithSecurityGroupIds(SecurityGroupIdsT&& value) { SetSecurityGroupIds(std::forward<SecurityGroupIdsT>(value)); return *this;}
167 template<typename SecurityGroupIdsT = Aws::String>
168 CreateWorkgroupRequest& AddSecurityGroupIds(SecurityGroupIdsT&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.emplace_back(std::forward<SecurityGroupIdsT>(value)); return *this; }
170
172
175 inline const Aws::Vector<Aws::String>& GetSubnetIds() const { return m_subnetIds; }
176 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
177 template<typename SubnetIdsT = Aws::Vector<Aws::String>>
178 void SetSubnetIds(SubnetIdsT&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = std::forward<SubnetIdsT>(value); }
179 template<typename SubnetIdsT = Aws::Vector<Aws::String>>
180 CreateWorkgroupRequest& WithSubnetIds(SubnetIdsT&& value) { SetSubnetIds(std::forward<SubnetIdsT>(value)); return *this;}
181 template<typename SubnetIdsT = Aws::String>
182 CreateWorkgroupRequest& AddSubnetIds(SubnetIdsT&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value)); return *this; }
184
186
189 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
190 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
191 template<typename TagsT = Aws::Vector<Tag>>
192 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
193 template<typename TagsT = Aws::Vector<Tag>>
194 CreateWorkgroupRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
195 template<typename TagsT = Tag>
196 CreateWorkgroupRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
198
200
205 inline const Aws::String& GetTrackName() const { return m_trackName; }
206 inline bool TrackNameHasBeenSet() const { return m_trackNameHasBeenSet; }
207 template<typename TrackNameT = Aws::String>
208 void SetTrackName(TrackNameT&& value) { m_trackNameHasBeenSet = true; m_trackName = std::forward<TrackNameT>(value); }
209 template<typename TrackNameT = Aws::String>
210 CreateWorkgroupRequest& WithTrackName(TrackNameT&& value) { SetTrackName(std::forward<TrackNameT>(value)); return *this;}
212
214
217 inline const Aws::String& GetWorkgroupName() const { return m_workgroupName; }
218 inline bool WorkgroupNameHasBeenSet() const { return m_workgroupNameHasBeenSet; }
219 template<typename WorkgroupNameT = Aws::String>
220 void SetWorkgroupName(WorkgroupNameT&& value) { m_workgroupNameHasBeenSet = true; m_workgroupName = std::forward<WorkgroupNameT>(value); }
221 template<typename WorkgroupNameT = Aws::String>
222 CreateWorkgroupRequest& WithWorkgroupName(WorkgroupNameT&& value) { SetWorkgroupName(std::forward<WorkgroupNameT>(value)); return *this;}
224 private:
225
226 int m_baseCapacity{0};
227 bool m_baseCapacityHasBeenSet = false;
228
229 Aws::Vector<ConfigParameter> m_configParameters;
230 bool m_configParametersHasBeenSet = false;
231
232 bool m_enhancedVpcRouting{false};
233 bool m_enhancedVpcRoutingHasBeenSet = false;
234
235 Aws::String m_ipAddressType;
236 bool m_ipAddressTypeHasBeenSet = false;
237
238 int m_maxCapacity{0};
239 bool m_maxCapacityHasBeenSet = false;
240
241 Aws::String m_namespaceName;
242 bool m_namespaceNameHasBeenSet = false;
243
244 int m_port{0};
245 bool m_portHasBeenSet = false;
246
247 PerformanceTarget m_pricePerformanceTarget;
248 bool m_pricePerformanceTargetHasBeenSet = false;
249
250 bool m_publiclyAccessible{false};
251 bool m_publiclyAccessibleHasBeenSet = false;
252
253 Aws::Vector<Aws::String> m_securityGroupIds;
254 bool m_securityGroupIdsHasBeenSet = false;
255
256 Aws::Vector<Aws::String> m_subnetIds;
257 bool m_subnetIdsHasBeenSet = false;
258
259 Aws::Vector<Tag> m_tags;
260 bool m_tagsHasBeenSet = false;
261
262 Aws::String m_trackName;
263 bool m_trackNameHasBeenSet = false;
264
265 Aws::String m_workgroupName;
266 bool m_workgroupNameHasBeenSet = false;
267 };
268
269} // namespace Model
270} // namespace RedshiftServerless
271} // 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