AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UpdateWorkgroupRequest.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 <utility>
14
15namespace Aws
16{
17namespace RedshiftServerless
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_REDSHIFTSERVERLESS_API UpdateWorkgroupRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "UpdateWorkgroup"; }
34
35 AWS_REDSHIFTSERVERLESS_API Aws::String SerializePayload() const override;
36
37 AWS_REDSHIFTSERVERLESS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38
39
41
44 inline int GetBaseCapacity() const { return m_baseCapacity; }
45 inline bool BaseCapacityHasBeenSet() const { return m_baseCapacityHasBeenSet; }
46 inline void SetBaseCapacity(int value) { m_baseCapacityHasBeenSet = true; m_baseCapacity = value; }
47 inline UpdateWorkgroupRequest& WithBaseCapacity(int value) { SetBaseCapacity(value); return *this;}
49
51
62 inline const Aws::Vector<ConfigParameter>& GetConfigParameters() const { return m_configParameters; }
63 inline bool ConfigParametersHasBeenSet() const { return m_configParametersHasBeenSet; }
64 template<typename ConfigParametersT = Aws::Vector<ConfigParameter>>
65 void SetConfigParameters(ConfigParametersT&& value) { m_configParametersHasBeenSet = true; m_configParameters = std::forward<ConfigParametersT>(value); }
66 template<typename ConfigParametersT = Aws::Vector<ConfigParameter>>
67 UpdateWorkgroupRequest& WithConfigParameters(ConfigParametersT&& value) { SetConfigParameters(std::forward<ConfigParametersT>(value)); return *this;}
68 template<typename ConfigParametersT = ConfigParameter>
69 UpdateWorkgroupRequest& AddConfigParameters(ConfigParametersT&& value) { m_configParametersHasBeenSet = true; m_configParameters.emplace_back(std::forward<ConfigParametersT>(value)); return *this; }
71
73
78 inline bool GetEnhancedVpcRouting() const { return m_enhancedVpcRouting; }
79 inline bool EnhancedVpcRoutingHasBeenSet() const { return m_enhancedVpcRoutingHasBeenSet; }
80 inline void SetEnhancedVpcRouting(bool value) { m_enhancedVpcRoutingHasBeenSet = true; m_enhancedVpcRouting = value; }
81 inline UpdateWorkgroupRequest& WithEnhancedVpcRouting(bool value) { SetEnhancedVpcRouting(value); return *this;}
83
85
89 inline const Aws::String& GetIpAddressType() const { return m_ipAddressType; }
90 inline bool IpAddressTypeHasBeenSet() const { return m_ipAddressTypeHasBeenSet; }
91 template<typename IpAddressTypeT = Aws::String>
92 void SetIpAddressType(IpAddressTypeT&& value) { m_ipAddressTypeHasBeenSet = true; m_ipAddressType = std::forward<IpAddressTypeT>(value); }
93 template<typename IpAddressTypeT = Aws::String>
94 UpdateWorkgroupRequest& WithIpAddressType(IpAddressTypeT&& value) { SetIpAddressType(std::forward<IpAddressTypeT>(value)); return *this;}
96
98
102 inline int GetMaxCapacity() const { return m_maxCapacity; }
103 inline bool MaxCapacityHasBeenSet() const { return m_maxCapacityHasBeenSet; }
104 inline void SetMaxCapacity(int value) { m_maxCapacityHasBeenSet = true; m_maxCapacity = value; }
105 inline UpdateWorkgroupRequest& WithMaxCapacity(int value) { SetMaxCapacity(value); return *this;}
107
109
113 inline int GetPort() const { return m_port; }
114 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
115 inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; }
116 inline UpdateWorkgroupRequest& WithPort(int value) { SetPort(value); return *this;}
118
120
124 inline const PerformanceTarget& GetPricePerformanceTarget() const { return m_pricePerformanceTarget; }
125 inline bool PricePerformanceTargetHasBeenSet() const { return m_pricePerformanceTargetHasBeenSet; }
126 template<typename PricePerformanceTargetT = PerformanceTarget>
127 void SetPricePerformanceTarget(PricePerformanceTargetT&& value) { m_pricePerformanceTargetHasBeenSet = true; m_pricePerformanceTarget = std::forward<PricePerformanceTargetT>(value); }
128 template<typename PricePerformanceTargetT = PerformanceTarget>
129 UpdateWorkgroupRequest& WithPricePerformanceTarget(PricePerformanceTargetT&& value) { SetPricePerformanceTarget(std::forward<PricePerformanceTargetT>(value)); return *this;}
131
133
137 inline bool GetPubliclyAccessible() const { return m_publiclyAccessible; }
138 inline bool PubliclyAccessibleHasBeenSet() const { return m_publiclyAccessibleHasBeenSet; }
139 inline void SetPubliclyAccessible(bool value) { m_publiclyAccessibleHasBeenSet = true; m_publiclyAccessible = value; }
140 inline UpdateWorkgroupRequest& WithPubliclyAccessible(bool value) { SetPubliclyAccessible(value); return *this;}
142
144
147 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const { return m_securityGroupIds; }
148 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
149 template<typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
150 void SetSecurityGroupIds(SecurityGroupIdsT&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = std::forward<SecurityGroupIdsT>(value); }
151 template<typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
152 UpdateWorkgroupRequest& WithSecurityGroupIds(SecurityGroupIdsT&& value) { SetSecurityGroupIds(std::forward<SecurityGroupIdsT>(value)); return *this;}
153 template<typename SecurityGroupIdsT = Aws::String>
154 UpdateWorkgroupRequest& AddSecurityGroupIds(SecurityGroupIdsT&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.emplace_back(std::forward<SecurityGroupIdsT>(value)); return *this; }
156
158
161 inline const Aws::Vector<Aws::String>& GetSubnetIds() const { return m_subnetIds; }
162 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
163 template<typename SubnetIdsT = Aws::Vector<Aws::String>>
164 void SetSubnetIds(SubnetIdsT&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = std::forward<SubnetIdsT>(value); }
165 template<typename SubnetIdsT = Aws::Vector<Aws::String>>
166 UpdateWorkgroupRequest& WithSubnetIds(SubnetIdsT&& value) { SetSubnetIds(std::forward<SubnetIdsT>(value)); return *this;}
167 template<typename SubnetIdsT = Aws::String>
168 UpdateWorkgroupRequest& AddSubnetIds(SubnetIdsT&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value)); return *this; }
170
172
177 inline const Aws::String& GetTrackName() const { return m_trackName; }
178 inline bool TrackNameHasBeenSet() const { return m_trackNameHasBeenSet; }
179 template<typename TrackNameT = Aws::String>
180 void SetTrackName(TrackNameT&& value) { m_trackNameHasBeenSet = true; m_trackName = std::forward<TrackNameT>(value); }
181 template<typename TrackNameT = Aws::String>
182 UpdateWorkgroupRequest& WithTrackName(TrackNameT&& value) { SetTrackName(std::forward<TrackNameT>(value)); return *this;}
184
186
190 inline const Aws::String& GetWorkgroupName() const { return m_workgroupName; }
191 inline bool WorkgroupNameHasBeenSet() const { return m_workgroupNameHasBeenSet; }
192 template<typename WorkgroupNameT = Aws::String>
193 void SetWorkgroupName(WorkgroupNameT&& value) { m_workgroupNameHasBeenSet = true; m_workgroupName = std::forward<WorkgroupNameT>(value); }
194 template<typename WorkgroupNameT = Aws::String>
195 UpdateWorkgroupRequest& WithWorkgroupName(WorkgroupNameT&& value) { SetWorkgroupName(std::forward<WorkgroupNameT>(value)); return *this;}
197 private:
198
199 int m_baseCapacity{0};
200 bool m_baseCapacityHasBeenSet = false;
201
202 Aws::Vector<ConfigParameter> m_configParameters;
203 bool m_configParametersHasBeenSet = false;
204
205 bool m_enhancedVpcRouting{false};
206 bool m_enhancedVpcRoutingHasBeenSet = false;
207
208 Aws::String m_ipAddressType;
209 bool m_ipAddressTypeHasBeenSet = false;
210
211 int m_maxCapacity{0};
212 bool m_maxCapacityHasBeenSet = false;
213
214 int m_port{0};
215 bool m_portHasBeenSet = false;
216
217 PerformanceTarget m_pricePerformanceTarget;
218 bool m_pricePerformanceTargetHasBeenSet = false;
219
220 bool m_publiclyAccessible{false};
221 bool m_publiclyAccessibleHasBeenSet = false;
222
223 Aws::Vector<Aws::String> m_securityGroupIds;
224 bool m_securityGroupIdsHasBeenSet = false;
225
226 Aws::Vector<Aws::String> m_subnetIds;
227 bool m_subnetIdsHasBeenSet = false;
228
229 Aws::String m_trackName;
230 bool m_trackNameHasBeenSet = false;
231
232 Aws::String m_workgroupName;
233 bool m_workgroupNameHasBeenSet = false;
234 };
235
236} // namespace Model
237} // namespace RedshiftServerless
238} // namespace Aws
AWS_REDSHIFTSERVERLESS_API UpdateWorkgroupRequest()=default
UpdateWorkgroupRequest & AddSubnetIds(SubnetIdsT &&value)
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
UpdateWorkgroupRequest & AddConfigParameters(ConfigParametersT &&value)
UpdateWorkgroupRequest & WithSecurityGroupIds(SecurityGroupIdsT &&value)
UpdateWorkgroupRequest & WithPricePerformanceTarget(PricePerformanceTargetT &&value)
UpdateWorkgroupRequest & WithTrackName(TrackNameT &&value)
const Aws::Vector< Aws::String > & GetSubnetIds() const
const Aws::Vector< ConfigParameter > & GetConfigParameters() const
UpdateWorkgroupRequest & WithEnhancedVpcRouting(bool value)
UpdateWorkgroupRequest & WithWorkgroupName(WorkgroupNameT &&value)
AWS_REDSHIFTSERVERLESS_API Aws::String SerializePayload() const override
UpdateWorkgroupRequest & WithConfigParameters(ConfigParametersT &&value)
UpdateWorkgroupRequest & AddSecurityGroupIds(SecurityGroupIdsT &&value)
virtual const char * GetServiceRequestName() const override
UpdateWorkgroupRequest & WithSubnetIds(SubnetIdsT &&value)
UpdateWorkgroupRequest & WithIpAddressType(IpAddressTypeT &&value)
AWS_REDSHIFTSERVERLESS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetPricePerformanceTarget(PricePerformanceTargetT &&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