AWS SDK for C++  0.14.3
AWS SDK for C++
PendingModifiedValues.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
19 
20 namespace Aws
21 {
22 namespace Utils
23 {
24 namespace Xml
25 {
26  class XmlNode;
27 } // namespace Xml
28 } // namespace Utils
29 namespace Redshift
30 {
31 namespace Model
32 {
33 
39  {
40  public:
43  PendingModifiedValues& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
44 
45  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
46  void OutputToStream(Aws::OStream& oStream, const char* location) const;
47 
52  inline const Aws::String& GetMasterUserPassword() const{ return m_masterUserPassword; }
53 
58  inline void SetMasterUserPassword(const Aws::String& value) { m_masterUserPasswordHasBeenSet = true; m_masterUserPassword = value; }
59 
64  inline void SetMasterUserPassword(Aws::String&& value) { m_masterUserPasswordHasBeenSet = true; m_masterUserPassword = value; }
65 
70  inline void SetMasterUserPassword(const char* value) { m_masterUserPasswordHasBeenSet = true; m_masterUserPassword.assign(value); }
71 
76  inline PendingModifiedValues& WithMasterUserPassword(const Aws::String& value) { SetMasterUserPassword(value); return *this;}
77 
82  inline PendingModifiedValues& WithMasterUserPassword(Aws::String&& value) { SetMasterUserPassword(value); return *this;}
83 
88  inline PendingModifiedValues& WithMasterUserPassword(const char* value) { SetMasterUserPassword(value); return *this;}
89 
93  inline const Aws::String& GetNodeType() const{ return m_nodeType; }
94 
98  inline void SetNodeType(const Aws::String& value) { m_nodeTypeHasBeenSet = true; m_nodeType = value; }
99 
103  inline void SetNodeType(Aws::String&& value) { m_nodeTypeHasBeenSet = true; m_nodeType = value; }
104 
108  inline void SetNodeType(const char* value) { m_nodeTypeHasBeenSet = true; m_nodeType.assign(value); }
109 
113  inline PendingModifiedValues& WithNodeType(const Aws::String& value) { SetNodeType(value); return *this;}
114 
118  inline PendingModifiedValues& WithNodeType(Aws::String&& value) { SetNodeType(value); return *this;}
119 
123  inline PendingModifiedValues& WithNodeType(const char* value) { SetNodeType(value); return *this;}
124 
129  inline int GetNumberOfNodes() const{ return m_numberOfNodes; }
130 
135  inline void SetNumberOfNodes(int value) { m_numberOfNodesHasBeenSet = true; m_numberOfNodes = value; }
136 
141  inline PendingModifiedValues& WithNumberOfNodes(int value) { SetNumberOfNodes(value); return *this;}
142 
146  inline const Aws::String& GetClusterType() const{ return m_clusterType; }
147 
151  inline void SetClusterType(const Aws::String& value) { m_clusterTypeHasBeenSet = true; m_clusterType = value; }
152 
156  inline void SetClusterType(Aws::String&& value) { m_clusterTypeHasBeenSet = true; m_clusterType = value; }
157 
161  inline void SetClusterType(const char* value) { m_clusterTypeHasBeenSet = true; m_clusterType.assign(value); }
162 
166  inline PendingModifiedValues& WithClusterType(const Aws::String& value) { SetClusterType(value); return *this;}
167 
171  inline PendingModifiedValues& WithClusterType(Aws::String&& value) { SetClusterType(value); return *this;}
172 
176  inline PendingModifiedValues& WithClusterType(const char* value) { SetClusterType(value); return *this;}
177 
181  inline const Aws::String& GetClusterVersion() const{ return m_clusterVersion; }
182 
186  inline void SetClusterVersion(const Aws::String& value) { m_clusterVersionHasBeenSet = true; m_clusterVersion = value; }
187 
191  inline void SetClusterVersion(Aws::String&& value) { m_clusterVersionHasBeenSet = true; m_clusterVersion = value; }
192 
196  inline void SetClusterVersion(const char* value) { m_clusterVersionHasBeenSet = true; m_clusterVersion.assign(value); }
197 
201  inline PendingModifiedValues& WithClusterVersion(const Aws::String& value) { SetClusterVersion(value); return *this;}
202 
206  inline PendingModifiedValues& WithClusterVersion(Aws::String&& value) { SetClusterVersion(value); return *this;}
207 
211  inline PendingModifiedValues& WithClusterVersion(const char* value) { SetClusterVersion(value); return *this;}
212 
217  inline int GetAutomatedSnapshotRetentionPeriod() const{ return m_automatedSnapshotRetentionPeriod; }
218 
223  inline void SetAutomatedSnapshotRetentionPeriod(int value) { m_automatedSnapshotRetentionPeriodHasBeenSet = true; m_automatedSnapshotRetentionPeriod = value; }
224 
229  inline PendingModifiedValues& WithAutomatedSnapshotRetentionPeriod(int value) { SetAutomatedSnapshotRetentionPeriod(value); return *this;}
230 
234  inline const Aws::String& GetClusterIdentifier() const{ return m_clusterIdentifier; }
235 
239  inline void SetClusterIdentifier(const Aws::String& value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier = value; }
240 
244  inline void SetClusterIdentifier(Aws::String&& value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier = value; }
245 
249  inline void SetClusterIdentifier(const char* value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier.assign(value); }
250 
254  inline PendingModifiedValues& WithClusterIdentifier(const Aws::String& value) { SetClusterIdentifier(value); return *this;}
255 
259  inline PendingModifiedValues& WithClusterIdentifier(Aws::String&& value) { SetClusterIdentifier(value); return *this;}
260 
264  inline PendingModifiedValues& WithClusterIdentifier(const char* value) { SetClusterIdentifier(value); return *this;}
265 
270  inline bool GetPubliclyAccessible() const{ return m_publiclyAccessible; }
271 
276  inline void SetPubliclyAccessible(bool value) { m_publiclyAccessibleHasBeenSet = true; m_publiclyAccessible = value; }
277 
282  inline PendingModifiedValues& WithPubliclyAccessible(bool value) { SetPubliclyAccessible(value); return *this;}
283 
284  private:
285  Aws::String m_masterUserPassword;
286  bool m_masterUserPasswordHasBeenSet;
287  Aws::String m_nodeType;
288  bool m_nodeTypeHasBeenSet;
289  int m_numberOfNodes;
290  bool m_numberOfNodesHasBeenSet;
291  Aws::String m_clusterType;
292  bool m_clusterTypeHasBeenSet;
293  Aws::String m_clusterVersion;
294  bool m_clusterVersionHasBeenSet;
295  int m_automatedSnapshotRetentionPeriod;
296  bool m_automatedSnapshotRetentionPeriodHasBeenSet;
297  Aws::String m_clusterIdentifier;
298  bool m_clusterIdentifierHasBeenSet;
299  bool m_publiclyAccessible;
300  bool m_publiclyAccessibleHasBeenSet;
301  };
302 
303 } // namespace Model
304 } // namespace Redshift
305 } // namespace Aws
PendingModifiedValues & WithAutomatedSnapshotRetentionPeriod(int value)
PendingModifiedValues & WithMasterUserPassword(const Aws::String &value)
PendingModifiedValues & WithClusterType(const char *value)
PendingModifiedValues & WithClusterType(const Aws::String &value)
PendingModifiedValues & WithMasterUserPassword(Aws::String &&value)
void SetClusterVersion(const Aws::String &value)
PendingModifiedValues & WithClusterIdentifier(Aws::String &&value)
PendingModifiedValues & WithNodeType(const Aws::String &value)
void SetClusterIdentifier(const Aws::String &value)
const Aws::String & GetMasterUserPassword() const
PendingModifiedValues & WithNumberOfNodes(int value)
PendingModifiedValues & WithClusterIdentifier(const char *value)
PendingModifiedValues & WithClusterType(Aws::String &&value)
PendingModifiedValues & WithMasterUserPassword(const char *value)
PendingModifiedValues & WithClusterVersion(Aws::String &&value)
PendingModifiedValues & WithNodeType(const char *value)
#define AWS_REDSHIFT_API
PendingModifiedValues & WithNodeType(Aws::String &&value)
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
void SetMasterUserPassword(const Aws::String &value)
PendingModifiedValues & WithClusterVersion(const Aws::String &value)
PendingModifiedValues & WithPubliclyAccessible(bool value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
PendingModifiedValues & WithClusterIdentifier(const Aws::String &value)
PendingModifiedValues & WithClusterVersion(const char *value)
JSON (JavaScript Object Notation).