AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetConfigParameters(const Aws::Vector<ConfigParameter>& value) { m_configParametersHasBeenSet = true; m_configParameters = value; }
65 inline void SetConfigParameters(Aws::Vector<ConfigParameter>&& value) { m_configParametersHasBeenSet = true; m_configParameters = std::move(value); }
68 inline UpdateWorkgroupRequest& AddConfigParameters(const ConfigParameter& value) { m_configParametersHasBeenSet = true; m_configParameters.push_back(value); return *this; }
69 inline UpdateWorkgroupRequest& AddConfigParameters(ConfigParameter&& value) { m_configParametersHasBeenSet = true; m_configParameters.push_back(std::move(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 inline void SetIpAddressType(const Aws::String& value) { m_ipAddressTypeHasBeenSet = true; m_ipAddressType = value; }
92 inline void SetIpAddressType(Aws::String&& value) { m_ipAddressTypeHasBeenSet = true; m_ipAddressType = std::move(value); }
93 inline void SetIpAddressType(const char* value) { m_ipAddressTypeHasBeenSet = true; m_ipAddressType.assign(value); }
94 inline UpdateWorkgroupRequest& WithIpAddressType(const Aws::String& value) { SetIpAddressType(value); return *this;}
95 inline UpdateWorkgroupRequest& WithIpAddressType(Aws::String&& value) { SetIpAddressType(std::move(value)); return *this;}
96 inline UpdateWorkgroupRequest& WithIpAddressType(const char* value) { SetIpAddressType(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 UpdateWorkgroupRequest& WithMaxCapacity(int value) { SetMaxCapacity(value); return *this;}
109
111
115 inline int GetPort() const{ return m_port; }
116 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
117 inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; }
118 inline UpdateWorkgroupRequest& WithPort(int value) { SetPort(value); return *this;}
120
122
126 inline const PerformanceTarget& GetPricePerformanceTarget() const{ return m_pricePerformanceTarget; }
127 inline bool PricePerformanceTargetHasBeenSet() const { return m_pricePerformanceTargetHasBeenSet; }
128 inline void SetPricePerformanceTarget(const PerformanceTarget& value) { m_pricePerformanceTargetHasBeenSet = true; m_pricePerformanceTarget = value; }
129 inline void SetPricePerformanceTarget(PerformanceTarget&& value) { m_pricePerformanceTargetHasBeenSet = true; m_pricePerformanceTarget = std::move(value); }
133
135
139 inline bool GetPubliclyAccessible() const{ return m_publiclyAccessible; }
140 inline bool PubliclyAccessibleHasBeenSet() const { return m_publiclyAccessibleHasBeenSet; }
141 inline void SetPubliclyAccessible(bool value) { m_publiclyAccessibleHasBeenSet = true; m_publiclyAccessible = value; }
142 inline UpdateWorkgroupRequest& WithPubliclyAccessible(bool value) { SetPubliclyAccessible(value); return *this;}
144
146
149 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const{ return m_securityGroupIds; }
150 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
151 inline void SetSecurityGroupIds(const Aws::Vector<Aws::String>& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = value; }
152 inline void SetSecurityGroupIds(Aws::Vector<Aws::String>&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = std::move(value); }
155 inline UpdateWorkgroupRequest& AddSecurityGroupIds(const Aws::String& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; }
156 inline UpdateWorkgroupRequest& AddSecurityGroupIds(Aws::String&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(std::move(value)); return *this; }
157 inline UpdateWorkgroupRequest& AddSecurityGroupIds(const char* value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; }
159
161
164 inline const Aws::Vector<Aws::String>& GetSubnetIds() const{ return m_subnetIds; }
165 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
166 inline void SetSubnetIds(const Aws::Vector<Aws::String>& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = value; }
167 inline void SetSubnetIds(Aws::Vector<Aws::String>&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = std::move(value); }
168 inline UpdateWorkgroupRequest& WithSubnetIds(const Aws::Vector<Aws::String>& value) { SetSubnetIds(value); return *this;}
169 inline UpdateWorkgroupRequest& WithSubnetIds(Aws::Vector<Aws::String>&& value) { SetSubnetIds(std::move(value)); return *this;}
170 inline UpdateWorkgroupRequest& AddSubnetIds(const Aws::String& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; }
171 inline UpdateWorkgroupRequest& AddSubnetIds(Aws::String&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(std::move(value)); return *this; }
172 inline UpdateWorkgroupRequest& AddSubnetIds(const char* value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; }
174
176
180 inline const Aws::String& GetWorkgroupName() const{ return m_workgroupName; }
181 inline bool WorkgroupNameHasBeenSet() const { return m_workgroupNameHasBeenSet; }
182 inline void SetWorkgroupName(const Aws::String& value) { m_workgroupNameHasBeenSet = true; m_workgroupName = value; }
183 inline void SetWorkgroupName(Aws::String&& value) { m_workgroupNameHasBeenSet = true; m_workgroupName = std::move(value); }
184 inline void SetWorkgroupName(const char* value) { m_workgroupNameHasBeenSet = true; m_workgroupName.assign(value); }
185 inline UpdateWorkgroupRequest& WithWorkgroupName(const Aws::String& value) { SetWorkgroupName(value); return *this;}
186 inline UpdateWorkgroupRequest& WithWorkgroupName(Aws::String&& value) { SetWorkgroupName(std::move(value)); return *this;}
187 inline UpdateWorkgroupRequest& WithWorkgroupName(const char* value) { SetWorkgroupName(value); return *this;}
189 private:
190
191 int m_baseCapacity;
192 bool m_baseCapacityHasBeenSet = false;
193
194 Aws::Vector<ConfigParameter> m_configParameters;
195 bool m_configParametersHasBeenSet = false;
196
197 bool m_enhancedVpcRouting;
198 bool m_enhancedVpcRoutingHasBeenSet = false;
199
200 Aws::String m_ipAddressType;
201 bool m_ipAddressTypeHasBeenSet = false;
202
203 int m_maxCapacity;
204 bool m_maxCapacityHasBeenSet = false;
205
206 int m_port;
207 bool m_portHasBeenSet = false;
208
209 PerformanceTarget m_pricePerformanceTarget;
210 bool m_pricePerformanceTargetHasBeenSet = false;
211
212 bool m_publiclyAccessible;
213 bool m_publiclyAccessibleHasBeenSet = false;
214
215 Aws::Vector<Aws::String> m_securityGroupIds;
216 bool m_securityGroupIdsHasBeenSet = false;
217
218 Aws::Vector<Aws::String> m_subnetIds;
219 bool m_subnetIdsHasBeenSet = false;
220
221 Aws::String m_workgroupName;
222 bool m_workgroupNameHasBeenSet = false;
223 };
224
225} // namespace Model
226} // namespace RedshiftServerless
227} // namespace Aws
void SetSubnetIds(Aws::Vector< Aws::String > &&value)
void SetSecurityGroupIds(const Aws::Vector< Aws::String > &value)
UpdateWorkgroupRequest & WithSecurityGroupIds(Aws::Vector< Aws::String > &&value)
void SetConfigParameters(Aws::Vector< ConfigParameter > &&value)
UpdateWorkgroupRequest & AddSubnetIds(const Aws::String &value)
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
UpdateWorkgroupRequest & WithIpAddressType(const Aws::String &value)
UpdateWorkgroupRequest & AddConfigParameters(ConfigParameter &&value)
UpdateWorkgroupRequest & AddConfigParameters(const ConfigParameter &value)
UpdateWorkgroupRequest & WithSecurityGroupIds(const Aws::Vector< Aws::String > &value)
UpdateWorkgroupRequest & AddSecurityGroupIds(Aws::String &&value)
UpdateWorkgroupRequest & WithIpAddressType(const char *value)
UpdateWorkgroupRequest & WithWorkgroupName(const char *value)
UpdateWorkgroupRequest & WithConfigParameters(const Aws::Vector< ConfigParameter > &value)
UpdateWorkgroupRequest & WithWorkgroupName(const Aws::String &value)
const Aws::Vector< Aws::String > & GetSubnetIds() const
UpdateWorkgroupRequest & AddSecurityGroupIds(const Aws::String &value)
const Aws::Vector< ConfigParameter > & GetConfigParameters() const
void SetPricePerformanceTarget(const PerformanceTarget &value)
UpdateWorkgroupRequest & WithWorkgroupName(Aws::String &&value)
UpdateWorkgroupRequest & WithEnhancedVpcRouting(bool value)
UpdateWorkgroupRequest & WithPricePerformanceTarget(const PerformanceTarget &value)
void SetConfigParameters(const Aws::Vector< ConfigParameter > &value)
AWS_REDSHIFTSERVERLESS_API Aws::String SerializePayload() const override
UpdateWorkgroupRequest & WithConfigParameters(Aws::Vector< ConfigParameter > &&value)
void SetSubnetIds(const Aws::Vector< Aws::String > &value)
UpdateWorkgroupRequest & WithIpAddressType(Aws::String &&value)
UpdateWorkgroupRequest & AddSubnetIds(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
UpdateWorkgroupRequest & WithSubnetIds(const Aws::Vector< Aws::String > &value)
void SetSecurityGroupIds(Aws::Vector< Aws::String > &&value)
UpdateWorkgroupRequest & AddSecurityGroupIds(const char *value)
UpdateWorkgroupRequest & WithPricePerformanceTarget(PerformanceTarget &&value)
UpdateWorkgroupRequest & WithSubnetIds(Aws::Vector< Aws::String > &&value)
UpdateWorkgroupRequest & AddSubnetIds(const char *value)
AWS_REDSHIFTSERVERLESS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
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