AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
ClusterParameterGroup.h
Go to the documentation of this file.
1
6#pragma once
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Xml
19{
20 class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace Redshift
24{
25namespace Model
26{
27
34 {
35 public:
39
40 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
42
43
47 inline const Aws::String& GetParameterGroupName() const{ return m_parameterGroupName; }
48
52 inline bool ParameterGroupNameHasBeenSet() const { return m_parameterGroupNameHasBeenSet; }
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 = std::move(value); }
63
67 inline void SetParameterGroupName(const char* value) { m_parameterGroupNameHasBeenSet = true; m_parameterGroupName.assign(value); }
68
73
77 inline ClusterParameterGroup& WithParameterGroupName(Aws::String&& value) { SetParameterGroupName(std::move(value)); return *this;}
78
82 inline ClusterParameterGroup& WithParameterGroupName(const char* value) { SetParameterGroupName(value); return *this;}
83
84
89 inline const Aws::String& GetParameterGroupFamily() const{ return m_parameterGroupFamily; }
90
95 inline bool ParameterGroupFamilyHasBeenSet() const { return m_parameterGroupFamilyHasBeenSet; }
96
101 inline void SetParameterGroupFamily(const Aws::String& value) { m_parameterGroupFamilyHasBeenSet = true; m_parameterGroupFamily = value; }
102
107 inline void SetParameterGroupFamily(Aws::String&& value) { m_parameterGroupFamilyHasBeenSet = true; m_parameterGroupFamily = std::move(value); }
108
113 inline void SetParameterGroupFamily(const char* value) { m_parameterGroupFamilyHasBeenSet = true; m_parameterGroupFamily.assign(value); }
114
120
125 inline ClusterParameterGroup& WithParameterGroupFamily(Aws::String&& value) { SetParameterGroupFamily(std::move(value)); return *this;}
126
131 inline ClusterParameterGroup& WithParameterGroupFamily(const char* value) { SetParameterGroupFamily(value); return *this;}
132
133
137 inline const Aws::String& GetDescription() const{ return m_description; }
138
142 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
143
147 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
148
152 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
153
157 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
158
162 inline ClusterParameterGroup& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
163
167 inline ClusterParameterGroup& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
168
172 inline ClusterParameterGroup& WithDescription(const char* value) { SetDescription(value); return *this;}
173
174
178 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
179
183 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
184
188 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
189
193 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
194
198 inline ClusterParameterGroup& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
199
203 inline ClusterParameterGroup& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
204
208 inline ClusterParameterGroup& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
209
213 inline ClusterParameterGroup& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
214
215 private:
216
217 Aws::String m_parameterGroupName;
218 bool m_parameterGroupNameHasBeenSet = false;
219
220 Aws::String m_parameterGroupFamily;
221 bool m_parameterGroupFamilyHasBeenSet = false;
222
223 Aws::String m_description;
224 bool m_descriptionHasBeenSet = false;
225
226 Aws::Vector<Tag> m_tags;
227 bool m_tagsHasBeenSet = false;
228 };
229
230} // namespace Model
231} // namespace Redshift
232} // namespace Aws
#define AWS_REDSHIFT_API
ClusterParameterGroup & WithParameterGroupName(const Aws::String &value)
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
ClusterParameterGroup & AddTags(const Tag &value)
ClusterParameterGroup & WithTags(const Aws::Vector< Tag > &value)
const Aws::String & GetParameterGroupFamily() const
AWS_REDSHIFT_API ClusterParameterGroup(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::Vector< Tag > & GetTags() const
ClusterParameterGroup & WithTags(Aws::Vector< Tag > &&value)
ClusterParameterGroup & AddTags(Tag &&value)
void SetParameterGroupName(const Aws::String &value)
ClusterParameterGroup & WithParameterGroupName(Aws::String &&value)
ClusterParameterGroup & WithParameterGroupFamily(const char *value)
void SetTags(const Aws::Vector< Tag > &value)
ClusterParameterGroup & WithParameterGroupFamily(const Aws::String &value)
ClusterParameterGroup & WithDescription(const Aws::String &value)
ClusterParameterGroup & WithDescription(Aws::String &&value)
ClusterParameterGroup & WithDescription(const char *value)
AWS_REDSHIFT_API ClusterParameterGroup & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &oStream, const char *location) const
ClusterParameterGroup & WithParameterGroupName(const char *value)
void SetParameterGroupFamily(const Aws::String &value)
ClusterParameterGroup & WithParameterGroupFamily(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream