AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ResizeClusterRequest.h
1
6#pragma once
7#include <aws/redshift/Redshift_EXPORTS.h>
8#include <aws/redshift/RedshiftRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Redshift
15{
16namespace Model
17{
18
26 {
27 public:
28 AWS_REDSHIFT_API ResizeClusterRequest();
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
36 AWS_REDSHIFT_API Aws::String SerializePayload() const override;
37
38 protected:
39 AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
40
41 public:
42
44
47 inline const Aws::String& GetClusterIdentifier() const{ return m_clusterIdentifier; }
48 inline bool ClusterIdentifierHasBeenSet() const { return m_clusterIdentifierHasBeenSet; }
49 inline void SetClusterIdentifier(const Aws::String& value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier = value; }
50 inline void SetClusterIdentifier(Aws::String&& value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier = std::move(value); }
51 inline void SetClusterIdentifier(const char* value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier.assign(value); }
52 inline ResizeClusterRequest& WithClusterIdentifier(const Aws::String& value) { SetClusterIdentifier(value); return *this;}
53 inline ResizeClusterRequest& WithClusterIdentifier(Aws::String&& value) { SetClusterIdentifier(std::move(value)); return *this;}
54 inline ResizeClusterRequest& WithClusterIdentifier(const char* value) { SetClusterIdentifier(value); return *this;}
56
58
61 inline const Aws::String& GetClusterType() const{ return m_clusterType; }
62 inline bool ClusterTypeHasBeenSet() const { return m_clusterTypeHasBeenSet; }
63 inline void SetClusterType(const Aws::String& value) { m_clusterTypeHasBeenSet = true; m_clusterType = value; }
64 inline void SetClusterType(Aws::String&& value) { m_clusterTypeHasBeenSet = true; m_clusterType = std::move(value); }
65 inline void SetClusterType(const char* value) { m_clusterTypeHasBeenSet = true; m_clusterType.assign(value); }
66 inline ResizeClusterRequest& WithClusterType(const Aws::String& value) { SetClusterType(value); return *this;}
67 inline ResizeClusterRequest& WithClusterType(Aws::String&& value) { SetClusterType(std::move(value)); return *this;}
68 inline ResizeClusterRequest& WithClusterType(const char* value) { SetClusterType(value); return *this;}
70
72
76 inline const Aws::String& GetNodeType() const{ return m_nodeType; }
77 inline bool NodeTypeHasBeenSet() const { return m_nodeTypeHasBeenSet; }
78 inline void SetNodeType(const Aws::String& value) { m_nodeTypeHasBeenSet = true; m_nodeType = value; }
79 inline void SetNodeType(Aws::String&& value) { m_nodeTypeHasBeenSet = true; m_nodeType = std::move(value); }
80 inline void SetNodeType(const char* value) { m_nodeTypeHasBeenSet = true; m_nodeType.assign(value); }
81 inline ResizeClusterRequest& WithNodeType(const Aws::String& value) { SetNodeType(value); return *this;}
82 inline ResizeClusterRequest& WithNodeType(Aws::String&& value) { SetNodeType(std::move(value)); return *this;}
83 inline ResizeClusterRequest& WithNodeType(const char* value) { SetNodeType(value); return *this;}
85
87
91 inline int GetNumberOfNodes() const{ return m_numberOfNodes; }
92 inline bool NumberOfNodesHasBeenSet() const { return m_numberOfNodesHasBeenSet; }
93 inline void SetNumberOfNodes(int value) { m_numberOfNodesHasBeenSet = true; m_numberOfNodes = value; }
94 inline ResizeClusterRequest& WithNumberOfNodes(int value) { SetNumberOfNodes(value); return *this;}
96
98
103 inline bool GetClassic() const{ return m_classic; }
104 inline bool ClassicHasBeenSet() const { return m_classicHasBeenSet; }
105 inline void SetClassic(bool value) { m_classicHasBeenSet = true; m_classic = value; }
106 inline ResizeClusterRequest& WithClassic(bool value) { SetClassic(value); return *this;}
108
110
113 inline const Aws::String& GetReservedNodeId() const{ return m_reservedNodeId; }
114 inline bool ReservedNodeIdHasBeenSet() const { return m_reservedNodeIdHasBeenSet; }
115 inline void SetReservedNodeId(const Aws::String& value) { m_reservedNodeIdHasBeenSet = true; m_reservedNodeId = value; }
116 inline void SetReservedNodeId(Aws::String&& value) { m_reservedNodeIdHasBeenSet = true; m_reservedNodeId = std::move(value); }
117 inline void SetReservedNodeId(const char* value) { m_reservedNodeIdHasBeenSet = true; m_reservedNodeId.assign(value); }
118 inline ResizeClusterRequest& WithReservedNodeId(const Aws::String& value) { SetReservedNodeId(value); return *this;}
119 inline ResizeClusterRequest& WithReservedNodeId(Aws::String&& value) { SetReservedNodeId(std::move(value)); return *this;}
120 inline ResizeClusterRequest& WithReservedNodeId(const char* value) { SetReservedNodeId(value); return *this;}
122
124
127 inline const Aws::String& GetTargetReservedNodeOfferingId() const{ return m_targetReservedNodeOfferingId; }
128 inline bool TargetReservedNodeOfferingIdHasBeenSet() const { return m_targetReservedNodeOfferingIdHasBeenSet; }
129 inline void SetTargetReservedNodeOfferingId(const Aws::String& value) { m_targetReservedNodeOfferingIdHasBeenSet = true; m_targetReservedNodeOfferingId = value; }
130 inline void SetTargetReservedNodeOfferingId(Aws::String&& value) { m_targetReservedNodeOfferingIdHasBeenSet = true; m_targetReservedNodeOfferingId = std::move(value); }
131 inline void SetTargetReservedNodeOfferingId(const char* value) { m_targetReservedNodeOfferingIdHasBeenSet = true; m_targetReservedNodeOfferingId.assign(value); }
136 private:
137
138 Aws::String m_clusterIdentifier;
139 bool m_clusterIdentifierHasBeenSet = false;
140
141 Aws::String m_clusterType;
142 bool m_clusterTypeHasBeenSet = false;
143
144 Aws::String m_nodeType;
145 bool m_nodeTypeHasBeenSet = false;
146
147 int m_numberOfNodes;
148 bool m_numberOfNodesHasBeenSet = false;
149
150 bool m_classic;
151 bool m_classicHasBeenSet = false;
152
153 Aws::String m_reservedNodeId;
154 bool m_reservedNodeIdHasBeenSet = false;
155
156 Aws::String m_targetReservedNodeOfferingId;
157 bool m_targetReservedNodeOfferingIdHasBeenSet = false;
158 };
159
160} // namespace Model
161} // namespace Redshift
162} // namespace Aws
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)
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 & 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