AWS SDK for C++  0.12.9
AWS SDK for C++
ClusterParameterGroup.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
20 #include <aws/redshift/model/Tag.h>
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  ClusterParameterGroup& 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 
52  inline const Aws::String& GetParameterGroupName() const{ return m_parameterGroupName; }
53 
57  inline void SetParameterGroupName(const Aws::String& value) { m_parameterGroupNameHasBeenSet = true; m_parameterGroupName = value; }
58 
62  inline void SetParameterGroupName(Aws::String&& value) { m_parameterGroupNameHasBeenSet = true; m_parameterGroupName = value; }
63 
67  inline void SetParameterGroupName(const char* value) { m_parameterGroupNameHasBeenSet = true; m_parameterGroupName.assign(value); }
68 
72  inline ClusterParameterGroup& WithParameterGroupName(const Aws::String& value) { SetParameterGroupName(value); return *this;}
73 
77  inline ClusterParameterGroup& WithParameterGroupName(Aws::String&& value) { SetParameterGroupName(value); return *this;}
78 
82  inline ClusterParameterGroup& WithParameterGroupName(const char* value) { SetParameterGroupName(value); return *this;}
83 
88  inline const Aws::String& GetParameterGroupFamily() const{ return m_parameterGroupFamily; }
89 
94  inline void SetParameterGroupFamily(const Aws::String& value) { m_parameterGroupFamilyHasBeenSet = true; m_parameterGroupFamily = value; }
95 
100  inline void SetParameterGroupFamily(Aws::String&& value) { m_parameterGroupFamilyHasBeenSet = true; m_parameterGroupFamily = value; }
101 
106  inline void SetParameterGroupFamily(const char* value) { m_parameterGroupFamilyHasBeenSet = true; m_parameterGroupFamily.assign(value); }
107 
112  inline ClusterParameterGroup& WithParameterGroupFamily(const Aws::String& value) { SetParameterGroupFamily(value); return *this;}
113 
118  inline ClusterParameterGroup& WithParameterGroupFamily(Aws::String&& value) { SetParameterGroupFamily(value); return *this;}
119 
124  inline ClusterParameterGroup& WithParameterGroupFamily(const char* value) { SetParameterGroupFamily(value); return *this;}
125 
129  inline const Aws::String& GetDescription() const{ return m_description; }
130 
134  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
135 
139  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = value; }
140 
144  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
145 
149  inline ClusterParameterGroup& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
150 
154  inline ClusterParameterGroup& WithDescription(Aws::String&& value) { SetDescription(value); return *this;}
155 
159  inline ClusterParameterGroup& WithDescription(const char* value) { SetDescription(value); return *this;}
160 
164  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
165 
169  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
170 
174  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = value; }
175 
179  inline ClusterParameterGroup& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
180 
184  inline ClusterParameterGroup& WithTags(Aws::Vector<Tag>&& value) { SetTags(value); return *this;}
185 
189  inline ClusterParameterGroup& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
190 
194  inline ClusterParameterGroup& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
195 
196  private:
197  Aws::String m_parameterGroupName;
198  bool m_parameterGroupNameHasBeenSet;
199  Aws::String m_parameterGroupFamily;
200  bool m_parameterGroupFamilyHasBeenSet;
201  Aws::String m_description;
202  bool m_descriptionHasBeenSet;
203  Aws::Vector<Tag> m_tags;
204  bool m_tagsHasBeenSet;
205  };
206 
207 } // namespace Model
208 } // namespace Redshift
209 } // namespace Aws
ClusterParameterGroup & WithParameterGroupFamily(Aws::String &&value)
ClusterParameterGroup & WithParameterGroupFamily(const char *value)
ClusterParameterGroup & AddTags(const Tag &value)
const Aws::String & GetParameterGroupName() const
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
ClusterParameterGroup & WithParameterGroupName(const char *value)
void SetParameterGroupFamily(const Aws::String &value)
const Aws::Vector< Tag > & GetTags() const
ClusterParameterGroup & WithTags(const Aws::Vector< Tag > &value)
ClusterParameterGroup & WithDescription(const char *value)
#define AWS_REDSHIFT_API
ClusterParameterGroup & WithParameterGroupName(const Aws::String &value)
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
ClusterParameterGroup & WithParameterGroupFamily(const Aws::String &value)
void SetTags(const Aws::Vector< Tag > &value)
const Aws::String & GetParameterGroupFamily() const
void SetParameterGroupName(const Aws::String &value)
ClusterParameterGroup & WithTags(Aws::Vector< Tag > &&value)
ClusterParameterGroup & WithDescription(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
ClusterParameterGroup & WithDescription(Aws::String &&value)
ClusterParameterGroup & AddTags(Tag &&value)
ClusterParameterGroup & WithParameterGroupName(Aws::String &&value)
JSON (JavaScript Object Notation).