AWS SDK for C++  0.14.3
AWS SDK for C++
ClusterVersion.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  ClusterVersion& 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 
51  inline const Aws::String& GetClusterVersion() const{ return m_clusterVersion; }
52 
56  inline void SetClusterVersion(const Aws::String& value) { m_clusterVersionHasBeenSet = true; m_clusterVersion = value; }
57 
61  inline void SetClusterVersion(Aws::String&& value) { m_clusterVersionHasBeenSet = true; m_clusterVersion = value; }
62 
66  inline void SetClusterVersion(const char* value) { m_clusterVersionHasBeenSet = true; m_clusterVersion.assign(value); }
67 
71  inline ClusterVersion& WithClusterVersion(const Aws::String& value) { SetClusterVersion(value); return *this;}
72 
76  inline ClusterVersion& WithClusterVersion(Aws::String&& value) { SetClusterVersion(value); return *this;}
77 
81  inline ClusterVersion& WithClusterVersion(const char* value) { SetClusterVersion(value); return *this;}
82 
86  inline const Aws::String& GetClusterParameterGroupFamily() const{ return m_clusterParameterGroupFamily; }
87 
91  inline void SetClusterParameterGroupFamily(const Aws::String& value) { m_clusterParameterGroupFamilyHasBeenSet = true; m_clusterParameterGroupFamily = value; }
92 
96  inline void SetClusterParameterGroupFamily(Aws::String&& value) { m_clusterParameterGroupFamilyHasBeenSet = true; m_clusterParameterGroupFamily = value; }
97 
101  inline void SetClusterParameterGroupFamily(const char* value) { m_clusterParameterGroupFamilyHasBeenSet = true; m_clusterParameterGroupFamily.assign(value); }
102 
106  inline ClusterVersion& WithClusterParameterGroupFamily(const Aws::String& value) { SetClusterParameterGroupFamily(value); return *this;}
107 
111  inline ClusterVersion& WithClusterParameterGroupFamily(Aws::String&& value) { SetClusterParameterGroupFamily(value); return *this;}
112 
116  inline ClusterVersion& WithClusterParameterGroupFamily(const char* value) { SetClusterParameterGroupFamily(value); return *this;}
117 
121  inline const Aws::String& GetDescription() const{ return m_description; }
122 
126  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
127 
131  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = value; }
132 
136  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
137 
141  inline ClusterVersion& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
142 
146  inline ClusterVersion& WithDescription(Aws::String&& value) { SetDescription(value); return *this;}
147 
151  inline ClusterVersion& WithDescription(const char* value) { SetDescription(value); return *this;}
152 
153  private:
154  Aws::String m_clusterVersion;
155  bool m_clusterVersionHasBeenSet;
156  Aws::String m_clusterParameterGroupFamily;
157  bool m_clusterParameterGroupFamilyHasBeenSet;
158  Aws::String m_description;
159  bool m_descriptionHasBeenSet;
160  };
161 
162 } // namespace Model
163 } // namespace Redshift
164 } // namespace Aws
const Aws::String & GetDescription() const
ClusterVersion & WithDescription(Aws::String &&value)
void SetClusterVersion(const char *value)
ClusterVersion & WithDescription(const Aws::String &value)
ClusterVersion & WithClusterParameterGroupFamily(const char *value)
void SetClusterParameterGroupFamily(const Aws::String &value)
void SetClusterParameterGroupFamily(const char *value)
ClusterVersion & WithDescription(const char *value)
#define AWS_REDSHIFT_API
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
void SetDescription(Aws::String &&value)
const Aws::String & GetClusterVersion() const
ClusterVersion & WithClusterVersion(Aws::String &&value)
ClusterVersion & WithClusterVersion(const char *value)
void SetClusterVersion(const Aws::String &value)
const Aws::String & GetClusterParameterGroupFamily() const
ClusterVersion & WithClusterParameterGroupFamily(Aws::String &&value)
void SetDescription(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
ClusterVersion & WithClusterVersion(const Aws::String &value)
void SetClusterVersion(Aws::String &&value)
void SetDescription(const Aws::String &value)
ClusterVersion & WithClusterParameterGroupFamily(const Aws::String &value)
void SetClusterParameterGroupFamily(Aws::String &&value)
JSON (JavaScript Object Notation).