AWS SDK for C++  0.12.9
AWS SDK for C++
DefaultClusterParameters.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
21 
22 namespace Aws
23 {
24 namespace Utils
25 {
26 namespace Xml
27 {
28  class XmlNode;
29 } // namespace Xml
30 } // namespace Utils
31 namespace Redshift
32 {
33 namespace Model
34 {
35 
40  {
41  public:
44  DefaultClusterParameters& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
45 
46  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
47  void OutputToStream(Aws::OStream& oStream, const char* location) const;
48 
53  inline const Aws::String& GetParameterGroupFamily() const{ return m_parameterGroupFamily; }
54 
59  inline void SetParameterGroupFamily(const Aws::String& value) { m_parameterGroupFamilyHasBeenSet = true; m_parameterGroupFamily = value; }
60 
65  inline void SetParameterGroupFamily(Aws::String&& value) { m_parameterGroupFamilyHasBeenSet = true; m_parameterGroupFamily = value; }
66 
71  inline void SetParameterGroupFamily(const char* value) { m_parameterGroupFamilyHasBeenSet = true; m_parameterGroupFamily.assign(value); }
72 
77  inline DefaultClusterParameters& WithParameterGroupFamily(const Aws::String& value) { SetParameterGroupFamily(value); return *this;}
78 
83  inline DefaultClusterParameters& WithParameterGroupFamily(Aws::String&& value) { SetParameterGroupFamily(value); return *this;}
84 
89  inline DefaultClusterParameters& WithParameterGroupFamily(const char* value) { SetParameterGroupFamily(value); return *this;}
90 
99  inline const Aws::String& GetMarker() const{ return m_marker; }
100 
109  inline void SetMarker(const Aws::String& value) { m_markerHasBeenSet = true; m_marker = value; }
110 
119  inline void SetMarker(Aws::String&& value) { m_markerHasBeenSet = true; m_marker = value; }
120 
129  inline void SetMarker(const char* value) { m_markerHasBeenSet = true; m_marker.assign(value); }
130 
139  inline DefaultClusterParameters& WithMarker(const Aws::String& value) { SetMarker(value); return *this;}
140 
149  inline DefaultClusterParameters& WithMarker(Aws::String&& value) { SetMarker(value); return *this;}
150 
159  inline DefaultClusterParameters& WithMarker(const char* value) { SetMarker(value); return *this;}
160 
164  inline const Aws::Vector<Parameter>& GetParameters() const{ return m_parameters; }
165 
169  inline void SetParameters(const Aws::Vector<Parameter>& value) { m_parametersHasBeenSet = true; m_parameters = value; }
170 
174  inline void SetParameters(Aws::Vector<Parameter>&& value) { m_parametersHasBeenSet = true; m_parameters = value; }
175 
179  inline DefaultClusterParameters& WithParameters(const Aws::Vector<Parameter>& value) { SetParameters(value); return *this;}
180 
184  inline DefaultClusterParameters& WithParameters(Aws::Vector<Parameter>&& value) { SetParameters(value); return *this;}
185 
189  inline DefaultClusterParameters& AddParameters(const Parameter& value) { m_parametersHasBeenSet = true; m_parameters.push_back(value); return *this; }
190 
194  inline DefaultClusterParameters& AddParameters(Parameter&& value) { m_parametersHasBeenSet = true; m_parameters.push_back(value); return *this; }
195 
196  private:
197  Aws::String m_parameterGroupFamily;
198  bool m_parameterGroupFamilyHasBeenSet;
199  Aws::String m_marker;
200  bool m_markerHasBeenSet;
201  Aws::Vector<Parameter> m_parameters;
202  bool m_parametersHasBeenSet;
203  };
204 
205 } // namespace Model
206 } // namespace Redshift
207 } // namespace Aws
DefaultClusterParameters & WithParameterGroupFamily(const Aws::String &value)
DefaultClusterParameters & AddParameters(Parameter &&value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
DefaultClusterParameters & WithParameterGroupFamily(Aws::String &&value)
void SetParameters(const Aws::Vector< Parameter > &value)
DefaultClusterParameters & WithMarker(const Aws::String &value)
DefaultClusterParameters & AddParameters(const Parameter &value)
DefaultClusterParameters & WithParameterGroupFamily(const char *value)
#define AWS_REDSHIFT_API
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
DefaultClusterParameters & WithParameters(const Aws::Vector< Parameter > &value)
void SetParameters(Aws::Vector< Parameter > &&value)
DefaultClusterParameters & WithParameters(Aws::Vector< Parameter > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
const Aws::Vector< Parameter > & GetParameters() const
DefaultClusterParameters & WithMarker(const char *value)
JSON (JavaScript Object Notation).
DefaultClusterParameters & WithMarker(Aws::String &&value)