AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
ResizeClusterRequest.h
Go to the documentation of this file.
1
6#pragma once
10#include <utility>
11
12namespace Aws
13{
14namespace Redshift
15{
16namespace Model
17{
18
26 {
27 public:
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 "ResizeCluster"; }
35
37
38 protected:
39 AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
40
41 public:
42
46 inline const Aws::String& GetClusterIdentifier() const{ return m_clusterIdentifier; }
47
51 inline bool ClusterIdentifierHasBeenSet() const { return m_clusterIdentifierHasBeenSet; }
52
56 inline void SetClusterIdentifier(const Aws::String& value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier = value; }
57
61 inline void SetClusterIdentifier(Aws::String&& value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier = std::move(value); }
62
66 inline void SetClusterIdentifier(const char* value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier.assign(value); }
67
71 inline ResizeClusterRequest& WithClusterIdentifier(const Aws::String& value) { SetClusterIdentifier(value); return *this;}
72
76 inline ResizeClusterRequest& WithClusterIdentifier(Aws::String&& value) { SetClusterIdentifier(std::move(value)); return *this;}
77
81 inline ResizeClusterRequest& WithClusterIdentifier(const char* value) { SetClusterIdentifier(value); return *this;}
82
83
87 inline const Aws::String& GetClusterType() const{ return m_clusterType; }
88
92 inline bool ClusterTypeHasBeenSet() const { return m_clusterTypeHasBeenSet; }
93
97 inline void SetClusterType(const Aws::String& value) { m_clusterTypeHasBeenSet = true; m_clusterType = value; }
98
102 inline void SetClusterType(Aws::String&& value) { m_clusterTypeHasBeenSet = true; m_clusterType = std::move(value); }
103
107 inline void SetClusterType(const char* value) { m_clusterTypeHasBeenSet = true; m_clusterType.assign(value); }
108
112 inline ResizeClusterRequest& WithClusterType(const Aws::String& value) { SetClusterType(value); return *this;}
113
117 inline ResizeClusterRequest& WithClusterType(Aws::String&& value) { SetClusterType(std::move(value)); return *this;}
118
122 inline ResizeClusterRequest& WithClusterType(const char* value) { SetClusterType(value); return *this;}
123
124
129 inline const Aws::String& GetNodeType() const{ return m_nodeType; }
130
135 inline bool NodeTypeHasBeenSet() const { return m_nodeTypeHasBeenSet; }
136
141 inline void SetNodeType(const Aws::String& value) { m_nodeTypeHasBeenSet = true; m_nodeType = value; }
142
147 inline void SetNodeType(Aws::String&& value) { m_nodeTypeHasBeenSet = true; m_nodeType = std::move(value); }
148
153 inline void SetNodeType(const char* value) { m_nodeTypeHasBeenSet = true; m_nodeType.assign(value); }
154
159 inline ResizeClusterRequest& WithNodeType(const Aws::String& value) { SetNodeType(value); return *this;}
160
165 inline ResizeClusterRequest& WithNodeType(Aws::String&& value) { SetNodeType(std::move(value)); return *this;}
166
171 inline ResizeClusterRequest& WithNodeType(const char* value) { SetNodeType(value); return *this;}
172
173
178 inline int GetNumberOfNodes() const{ return m_numberOfNodes; }
179
184 inline bool NumberOfNodesHasBeenSet() const { return m_numberOfNodesHasBeenSet; }
185
190 inline void SetNumberOfNodes(int value) { m_numberOfNodesHasBeenSet = true; m_numberOfNodes = value; }
191
196 inline ResizeClusterRequest& WithNumberOfNodes(int value) { SetNumberOfNodes(value); return *this;}
197
198
204 inline bool GetClassic() const{ return m_classic; }
205
211 inline bool ClassicHasBeenSet() const { return m_classicHasBeenSet; }
212
218 inline void SetClassic(bool value) { m_classicHasBeenSet = true; m_classic = value; }
219
225 inline ResizeClusterRequest& WithClassic(bool value) { SetClassic(value); return *this;}
226
227
231 inline const Aws::String& GetReservedNodeId() const{ return m_reservedNodeId; }
232
236 inline bool ReservedNodeIdHasBeenSet() const { return m_reservedNodeIdHasBeenSet; }
237
241 inline void SetReservedNodeId(const Aws::String& value) { m_reservedNodeIdHasBeenSet = true; m_reservedNodeId = value; }
242
246 inline void SetReservedNodeId(Aws::String&& value) { m_reservedNodeIdHasBeenSet = true; m_reservedNodeId = std::move(value); }
247
251 inline void SetReservedNodeId(const char* value) { m_reservedNodeIdHasBeenSet = true; m_reservedNodeId.assign(value); }
252
256 inline ResizeClusterRequest& WithReservedNodeId(const Aws::String& value) { SetReservedNodeId(value); return *this;}
257
261 inline ResizeClusterRequest& WithReservedNodeId(Aws::String&& value) { SetReservedNodeId(std::move(value)); return *this;}
262
266 inline ResizeClusterRequest& WithReservedNodeId(const char* value) { SetReservedNodeId(value); return *this;}
267
268
272 inline const Aws::String& GetTargetReservedNodeOfferingId() const{ return m_targetReservedNodeOfferingId; }
273
277 inline bool TargetReservedNodeOfferingIdHasBeenSet() const { return m_targetReservedNodeOfferingIdHasBeenSet; }
278
282 inline void SetTargetReservedNodeOfferingId(const Aws::String& value) { m_targetReservedNodeOfferingIdHasBeenSet = true; m_targetReservedNodeOfferingId = value; }
283
287 inline void SetTargetReservedNodeOfferingId(Aws::String&& value) { m_targetReservedNodeOfferingIdHasBeenSet = true; m_targetReservedNodeOfferingId = std::move(value); }
288
292 inline void SetTargetReservedNodeOfferingId(const char* value) { m_targetReservedNodeOfferingIdHasBeenSet = true; m_targetReservedNodeOfferingId.assign(value); }
293
298
303
308
309 private:
310
311 Aws::String m_clusterIdentifier;
312 bool m_clusterIdentifierHasBeenSet = false;
313
314 Aws::String m_clusterType;
315 bool m_clusterTypeHasBeenSet = false;
316
317 Aws::String m_nodeType;
318 bool m_nodeTypeHasBeenSet = false;
319
320 int m_numberOfNodes;
321 bool m_numberOfNodesHasBeenSet = false;
322
323 bool m_classic;
324 bool m_classicHasBeenSet = false;
325
326 Aws::String m_reservedNodeId;
327 bool m_reservedNodeIdHasBeenSet = false;
328
329 Aws::String m_targetReservedNodeOfferingId;
330 bool m_targetReservedNodeOfferingIdHasBeenSet = false;
331 };
332
333} // namespace Model
334} // namespace Redshift
335} // namespace Aws
#define AWS_REDSHIFT_API
void SetReservedNodeId(const Aws::String &value)
AWS_REDSHIFT_API Aws::String SerializePayload() const override
AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
ResizeClusterRequest & WithTargetReservedNodeOfferingId(Aws::String &&value)
ResizeClusterRequest & WithClusterIdentifier(const char *value)
ResizeClusterRequest & WithClusterIdentifier(Aws::String &&value)
ResizeClusterRequest & WithNodeType(const Aws::String &value)
void SetClusterType(const Aws::String &value)
void SetClusterIdentifier(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
ResizeClusterRequest & WithClassic(bool value)
void SetTargetReservedNodeOfferingId(const Aws::String &value)
ResizeClusterRequest & WithReservedNodeId(const char *value)
void SetNodeType(const Aws::String &value)
ResizeClusterRequest & WithNodeType(Aws::String &&value)
ResizeClusterRequest & WithClusterIdentifier(const Aws::String &value)
ResizeClusterRequest & WithReservedNodeId(const Aws::String &value)
void SetTargetReservedNodeOfferingId(Aws::String &&value)
ResizeClusterRequest & WithReservedNodeId(Aws::String &&value)
ResizeClusterRequest & WithClusterType(const char *value)
ResizeClusterRequest & WithTargetReservedNodeOfferingId(const char *value)
ResizeClusterRequest & WithNumberOfNodes(int value)
const Aws::String & GetClusterIdentifier() const
const Aws::String & GetTargetReservedNodeOfferingId() const
ResizeClusterRequest & WithTargetReservedNodeOfferingId(const Aws::String &value)
ResizeClusterRequest & WithNodeType(const char *value)
ResizeClusterRequest & WithClusterType(Aws::String &&value)
ResizeClusterRequest & WithClusterType(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String