AWS SDK for C++  1.9.104
AWS SDK for C++
ClusterParameterGroup.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <aws/redshift/model/Tag.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Xml
19 {
20  class XmlNode;
21 } // namespace Xml
22 } // namespace Utils
23 namespace Redshift
24 {
25 namespace Model
26 {
27 
34  {
35  public:
39 
40  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41  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 
72  inline ClusterParameterGroup& WithParameterGroupName(const Aws::String& value) { SetParameterGroupName(value); return *this;}
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 
119  inline ClusterParameterGroup& WithParameterGroupFamily(const Aws::String& value) { SetParameterGroupFamily(value); return *this;}
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;
219 
220  Aws::String m_parameterGroupFamily;
221  bool m_parameterGroupFamilyHasBeenSet;
222 
223  Aws::String m_description;
224  bool m_descriptionHasBeenSet;
225 
226  Aws::Vector<Tag> m_tags;
227  bool m_tagsHasBeenSet;
228  };
229 
230 } // namespace Model
231 } // namespace Redshift
232 } // namespace Aws
Aws::Redshift::Model::Tag
Definition: Tag.h:33
Aws::Redshift::Model::ClusterParameterGroup::WithDescription
ClusterParameterGroup & WithDescription(const Aws::String &value)
Definition: ClusterParameterGroup.h:162
Aws::Redshift::Model::ClusterParameterGroup::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: ClusterParameterGroup.h:142
Aws::Redshift::Model::ClusterParameterGroup::ClusterParameterGroup
ClusterParameterGroup()
Aws::Redshift::Model::ClusterParameterGroup::ClusterParameterGroup
ClusterParameterGroup(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::Redshift::Model::ClusterParameterGroup::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: ClusterParameterGroup.h:193
Aws::Redshift::Model::ClusterParameterGroup::WithDescription
ClusterParameterGroup & WithDescription(Aws::String &&value)
Definition: ClusterParameterGroup.h:167
Tag.h
Aws::Redshift::Model::ClusterParameterGroup::SetParameterGroupFamily
void SetParameterGroupFamily(const char *value)
Definition: ClusterParameterGroup.h:113
Aws::Redshift::Model::ClusterParameterGroup::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: ClusterParameterGroup.h:188
Aws::Redshift::Model::ClusterParameterGroup::GetParameterGroupName
const Aws::String & GetParameterGroupName() const
Definition: ClusterParameterGroup.h:47
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Redshift::Model::ClusterParameterGroup
Definition: ClusterParameterGroup.h:34
AWSStreamFwd.h
AWSVector.h
Aws::Redshift::Model::ClusterParameterGroup::ParameterGroupNameHasBeenSet
bool ParameterGroupNameHasBeenSet() const
Definition: ClusterParameterGroup.h:52
Aws::Redshift::Model::ClusterParameterGroup::WithTags
ClusterParameterGroup & WithTags(const Aws::Vector< Tag > &value)
Definition: ClusterParameterGroup.h:198
Aws::Redshift::Model::ClusterParameterGroup::SetDescription
void SetDescription(Aws::String &&value)
Definition: ClusterParameterGroup.h:152
Aws::Redshift::Model::ClusterParameterGroup::SetParameterGroupName
void SetParameterGroupName(const char *value)
Definition: ClusterParameterGroup.h:67
Aws::Redshift::Model::ClusterParameterGroup::WithParameterGroupFamily
ClusterParameterGroup & WithParameterGroupFamily(Aws::String &&value)
Definition: ClusterParameterGroup.h:125
Aws::Redshift::Model::ClusterParameterGroup::WithParameterGroupName
ClusterParameterGroup & WithParameterGroupName(const Aws::String &value)
Definition: ClusterParameterGroup.h:72
Aws::Redshift::Model::ClusterParameterGroup::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::Redshift::Model::ClusterParameterGroup::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::Redshift::Model::ClusterParameterGroup::WithParameterGroupName
ClusterParameterGroup & WithParameterGroupName(const char *value)
Definition: ClusterParameterGroup.h:82
AWS_REDSHIFT_API
#define AWS_REDSHIFT_API
Definition: Redshift_EXPORTS.h:28
Aws::Redshift::Model::ClusterParameterGroup::SetParameterGroupName
void SetParameterGroupName(Aws::String &&value)
Definition: ClusterParameterGroup.h:62
Aws::Redshift::Model::ClusterParameterGroup::operator=
ClusterParameterGroup & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWSString.h
Aws::Redshift::Model::ClusterParameterGroup::WithParameterGroupFamily
ClusterParameterGroup & WithParameterGroupFamily(const char *value)
Definition: ClusterParameterGroup.h:131
Aws::Redshift::Model::ClusterParameterGroup::ParameterGroupFamilyHasBeenSet
bool ParameterGroupFamilyHasBeenSet() const
Definition: ClusterParameterGroup.h:95
Aws::Redshift::Model::ClusterParameterGroup::WithParameterGroupFamily
ClusterParameterGroup & WithParameterGroupFamily(const Aws::String &value)
Definition: ClusterParameterGroup.h:119
Aws::Redshift::Model::ClusterParameterGroup::SetParameterGroupName
void SetParameterGroupName(const Aws::String &value)
Definition: ClusterParameterGroup.h:57
Aws::Redshift::Model::ClusterParameterGroup::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: ClusterParameterGroup.h:183
Aws::Redshift::Model::ClusterParameterGroup::WithParameterGroupName
ClusterParameterGroup & WithParameterGroupName(Aws::String &&value)
Definition: ClusterParameterGroup.h:77
Aws::Redshift::Model::ClusterParameterGroup::WithDescription
ClusterParameterGroup & WithDescription(const char *value)
Definition: ClusterParameterGroup.h:172
Aws::Redshift::Model::ClusterParameterGroup::SetParameterGroupFamily
void SetParameterGroupFamily(const Aws::String &value)
Definition: ClusterParameterGroup.h:101
Aws
Definition: AccessManagementClient.h:15
Redshift_EXPORTS.h
Aws::Redshift::Model::ClusterParameterGroup::SetDescription
void SetDescription(const char *value)
Definition: ClusterParameterGroup.h:157
Aws::Redshift::Model::ClusterParameterGroup::SetDescription
void SetDescription(const Aws::String &value)
Definition: ClusterParameterGroup.h:147
Aws::Redshift::Model::ClusterParameterGroup::WithTags
ClusterParameterGroup & WithTags(Aws::Vector< Tag > &&value)
Definition: ClusterParameterGroup.h:203
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Redshift::Model::ClusterParameterGroup::AddTags
ClusterParameterGroup & AddTags(const Tag &value)
Definition: ClusterParameterGroup.h:208
Aws::Redshift::Model::ClusterParameterGroup::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: ClusterParameterGroup.h:178
index
int index
Definition: cJSON.h:181
Aws::Redshift::Model::ClusterParameterGroup::SetParameterGroupFamily
void SetParameterGroupFamily(Aws::String &&value)
Definition: ClusterParameterGroup.h:107
Aws::Redshift::Model::ClusterParameterGroup::AddTags
ClusterParameterGroup & AddTags(Tag &&value)
Definition: ClusterParameterGroup.h:213
Aws::Redshift::Model::ClusterParameterGroup::GetDescription
const Aws::String & GetDescription() const
Definition: ClusterParameterGroup.h:137
Aws::Redshift::Model::ClusterParameterGroup::GetParameterGroupFamily
const Aws::String & GetParameterGroupFamily() const
Definition: ClusterParameterGroup.h:89