AWS SDK for C++  1.9.110
AWS SDK for C++
ResizeClusterRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Redshift
15 {
16 namespace 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 
36  Aws::String SerializePayload() const override;
37 
38  protected:
39  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  private:
228 
229  Aws::String m_clusterIdentifier;
230  bool m_clusterIdentifierHasBeenSet;
231 
232  Aws::String m_clusterType;
233  bool m_clusterTypeHasBeenSet;
234 
235  Aws::String m_nodeType;
236  bool m_nodeTypeHasBeenSet;
237 
238  int m_numberOfNodes;
239  bool m_numberOfNodesHasBeenSet;
240 
241  bool m_classic;
242  bool m_classicHasBeenSet;
243  };
244 
245 } // namespace Model
246 } // namespace Redshift
247 } // namespace Aws
Aws::Redshift::Model::ResizeClusterRequest::GetNumberOfNodes
int GetNumberOfNodes() const
Definition: ResizeClusterRequest.h:178
Aws::Http::URI
Definition: URI.h:32
Aws::Redshift::Model::ResizeClusterRequest::WithNodeType
ResizeClusterRequest & WithNodeType(const Aws::String &value)
Definition: ResizeClusterRequest.h:159
Aws::Redshift::Model::ResizeClusterRequest::GetNodeType
const Aws::String & GetNodeType() const
Definition: ResizeClusterRequest.h:129
Aws::Redshift::Model::ResizeClusterRequest::SetClusterIdentifier
void SetClusterIdentifier(Aws::String &&value)
Definition: ResizeClusterRequest.h:61
Aws::Redshift::Model::ResizeClusterRequest::ClusterTypeHasBeenSet
bool ClusterTypeHasBeenSet() const
Definition: ResizeClusterRequest.h:92
Aws::Redshift::Model::ResizeClusterRequest::WithClusterType
ResizeClusterRequest & WithClusterType(const Aws::String &value)
Definition: ResizeClusterRequest.h:112
Aws::Redshift::Model::ResizeClusterRequest::WithNumberOfNodes
ResizeClusterRequest & WithNumberOfNodes(int value)
Definition: ResizeClusterRequest.h:196
Aws::Redshift::Model::ResizeClusterRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Redshift::Model::ResizeClusterRequest::SetClassic
void SetClassic(bool value)
Definition: ResizeClusterRequest.h:218
Aws::Redshift::Model::ResizeClusterRequest
Definition: ResizeClusterRequest.h:26
Aws::Redshift::Model::ResizeClusterRequest::GetClassic
bool GetClassic() const
Definition: ResizeClusterRequest.h:204
Aws::Redshift::Model::ResizeClusterRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ResizeClusterRequest.h:34
Aws::Redshift::Model::ResizeClusterRequest::GetClusterType
const Aws::String & GetClusterType() const
Definition: ResizeClusterRequest.h:87
RedshiftRequest.h
Aws::Redshift::Model::ResizeClusterRequest::GetClusterIdentifier
const Aws::String & GetClusterIdentifier() const
Definition: ResizeClusterRequest.h:46
Aws::Redshift::Model::ResizeClusterRequest::SetNumberOfNodes
void SetNumberOfNodes(int value)
Definition: ResizeClusterRequest.h:190
Aws::Redshift::Model::ResizeClusterRequest::ResizeClusterRequest
ResizeClusterRequest()
Aws::Redshift::Model::ResizeClusterRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::Redshift::Model::ResizeClusterRequest::WithClusterType
ResizeClusterRequest & WithClusterType(const char *value)
Definition: ResizeClusterRequest.h:122
Aws::Redshift::Model::ResizeClusterRequest::SetClusterIdentifier
void SetClusterIdentifier(const char *value)
Definition: ResizeClusterRequest.h:66
Aws::Redshift::Model::ResizeClusterRequest::ClassicHasBeenSet
bool ClassicHasBeenSet() const
Definition: ResizeClusterRequest.h:211
Aws::Redshift::Model::ResizeClusterRequest::NodeTypeHasBeenSet
bool NodeTypeHasBeenSet() const
Definition: ResizeClusterRequest.h:135
Aws::Redshift::Model::ResizeClusterRequest::SetClusterIdentifier
void SetClusterIdentifier(const Aws::String &value)
Definition: ResizeClusterRequest.h:56
Aws::Redshift::Model::ResizeClusterRequest::WithClusterIdentifier
ResizeClusterRequest & WithClusterIdentifier(Aws::String &&value)
Definition: ResizeClusterRequest.h:76
Aws::Redshift::Model::ResizeClusterRequest::WithClusterType
ResizeClusterRequest & WithClusterType(Aws::String &&value)
Definition: ResizeClusterRequest.h:117
AWS_REDSHIFT_API
#define AWS_REDSHIFT_API
Definition: Redshift_EXPORTS.h:28
Aws::Redshift::Model::ResizeClusterRequest::SetNodeType
void SetNodeType(Aws::String &&value)
Definition: ResizeClusterRequest.h:147
Aws::Redshift::Model::ResizeClusterRequest::WithClusterIdentifier
ResizeClusterRequest & WithClusterIdentifier(const Aws::String &value)
Definition: ResizeClusterRequest.h:71
Aws::Redshift::RedshiftRequest
Definition: RedshiftRequest.h:17
Aws::Redshift::Model::ResizeClusterRequest::SetClusterType
void SetClusterType(Aws::String &&value)
Definition: ResizeClusterRequest.h:102
AWSString.h
Aws::Redshift::Model::ResizeClusterRequest::WithNodeType
ResizeClusterRequest & WithNodeType(Aws::String &&value)
Definition: ResizeClusterRequest.h:165
Aws::Redshift::Model::ResizeClusterRequest::SetClusterType
void SetClusterType(const char *value)
Definition: ResizeClusterRequest.h:107
Aws::Redshift::Model::ResizeClusterRequest::SetNodeType
void SetNodeType(const Aws::String &value)
Definition: ResizeClusterRequest.h:141
Aws::Redshift::Model::ResizeClusterRequest::WithClassic
ResizeClusterRequest & WithClassic(bool value)
Definition: ResizeClusterRequest.h:225
Aws::Redshift::Model::ResizeClusterRequest::WithNodeType
ResizeClusterRequest & WithNodeType(const char *value)
Definition: ResizeClusterRequest.h:171
Aws::Redshift::Model::ResizeClusterRequest::SetClusterType
void SetClusterType(const Aws::String &value)
Definition: ResizeClusterRequest.h:97
Aws
Definition: AccessManagementClient.h:15
Redshift_EXPORTS.h
Aws::Redshift::Model::ResizeClusterRequest::SetNodeType
void SetNodeType(const char *value)
Definition: ResizeClusterRequest.h:153
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Redshift::Model::ResizeClusterRequest::NumberOfNodesHasBeenSet
bool NumberOfNodesHasBeenSet() const
Definition: ResizeClusterRequest.h:184
Aws::Redshift::Model::ResizeClusterRequest::WithClusterIdentifier
ResizeClusterRequest & WithClusterIdentifier(const char *value)
Definition: ResizeClusterRequest.h:81
Aws::Redshift::Model::ResizeClusterRequest::ClusterIdentifierHasBeenSet
bool ClusterIdentifierHasBeenSet() const
Definition: ResizeClusterRequest.h:51