AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
ClusterParameterGroup.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/redshift/Redshift_EXPORTS.h>
11#include <aws/redshift/model/Tag.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Xml {
18class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace Redshift {
22namespace Model {
23
30 public:
31 AWS_REDSHIFT_API ClusterParameterGroup() = default;
32 AWS_REDSHIFT_API ClusterParameterGroup(const Aws::Utils::Xml::XmlNode& xmlNode);
33 AWS_REDSHIFT_API ClusterParameterGroup& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
34
35 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
36 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
37
39
42 inline const Aws::String& GetParameterGroupName() const { return m_parameterGroupName; }
43 inline bool ParameterGroupNameHasBeenSet() const { return m_parameterGroupNameHasBeenSet; }
44 template <typename ParameterGroupNameT = Aws::String>
45 void SetParameterGroupName(ParameterGroupNameT&& value) {
46 m_parameterGroupNameHasBeenSet = true;
47 m_parameterGroupName = std::forward<ParameterGroupNameT>(value);
48 }
49 template <typename ParameterGroupNameT = Aws::String>
50 ClusterParameterGroup& WithParameterGroupName(ParameterGroupNameT&& value) {
51 SetParameterGroupName(std::forward<ParameterGroupNameT>(value));
52 return *this;
53 }
55
57
61 inline const Aws::String& GetParameterGroupFamily() const { return m_parameterGroupFamily; }
62 inline bool ParameterGroupFamilyHasBeenSet() const { return m_parameterGroupFamilyHasBeenSet; }
63 template <typename ParameterGroupFamilyT = Aws::String>
64 void SetParameterGroupFamily(ParameterGroupFamilyT&& value) {
65 m_parameterGroupFamilyHasBeenSet = true;
66 m_parameterGroupFamily = std::forward<ParameterGroupFamilyT>(value);
67 }
68 template <typename ParameterGroupFamilyT = Aws::String>
69 ClusterParameterGroup& WithParameterGroupFamily(ParameterGroupFamilyT&& value) {
70 SetParameterGroupFamily(std::forward<ParameterGroupFamilyT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetDescription() const { return m_description; }
80 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
81 template <typename DescriptionT = Aws::String>
82 void SetDescription(DescriptionT&& value) {
83 m_descriptionHasBeenSet = true;
84 m_description = std::forward<DescriptionT>(value);
85 }
86 template <typename DescriptionT = Aws::String>
87 ClusterParameterGroup& WithDescription(DescriptionT&& value) {
88 SetDescription(std::forward<DescriptionT>(value));
89 return *this;
90 }
92
94
97 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
98 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
99 template <typename TagsT = Aws::Vector<Tag>>
100 void SetTags(TagsT&& value) {
101 m_tagsHasBeenSet = true;
102 m_tags = std::forward<TagsT>(value);
103 }
104 template <typename TagsT = Aws::Vector<Tag>>
106 SetTags(std::forward<TagsT>(value));
107 return *this;
108 }
109 template <typename TagsT = Tag>
111 m_tagsHasBeenSet = true;
112 m_tags.emplace_back(std::forward<TagsT>(value));
113 return *this;
114 }
116 private:
117 Aws::String m_parameterGroupName;
118
119 Aws::String m_parameterGroupFamily;
120
121 Aws::String m_description;
122
123 Aws::Vector<Tag> m_tags;
124 bool m_parameterGroupNameHasBeenSet = false;
125 bool m_parameterGroupFamilyHasBeenSet = false;
126 bool m_descriptionHasBeenSet = false;
127 bool m_tagsHasBeenSet = false;
128};
129
130} // namespace Model
131} // namespace Redshift
132} // namespace Aws
ClusterParameterGroup & WithTags(TagsT &&value)
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_REDSHIFT_API ClusterParameterGroup(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::Vector< Tag > & GetTags() const
void SetParameterGroupFamily(ParameterGroupFamilyT &&value)
ClusterParameterGroup & WithParameterGroupName(ParameterGroupNameT &&value)
ClusterParameterGroup & WithDescription(DescriptionT &&value)
AWS_REDSHIFT_API ClusterParameterGroup()=default
ClusterParameterGroup & WithParameterGroupFamily(ParameterGroupFamilyT &&value)
void SetParameterGroupName(ParameterGroupNameT &&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 & AddTags(TagsT &&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