AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CacheParameterGroup.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/elasticache/ElastiCache_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace ElastiCache {
20namespace Model {
21
29 public:
30 AWS_ELASTICACHE_API CacheParameterGroup() = default;
31 AWS_ELASTICACHE_API CacheParameterGroup(const Aws::Utils::Xml::XmlNode& xmlNode);
32 AWS_ELASTICACHE_API CacheParameterGroup& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
33
34 AWS_ELASTICACHE_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
35 AWS_ELASTICACHE_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
36
38
41 inline const Aws::String& GetCacheParameterGroupName() const { return m_cacheParameterGroupName; }
42 inline bool CacheParameterGroupNameHasBeenSet() const { return m_cacheParameterGroupNameHasBeenSet; }
43 template <typename CacheParameterGroupNameT = Aws::String>
44 void SetCacheParameterGroupName(CacheParameterGroupNameT&& value) {
45 m_cacheParameterGroupNameHasBeenSet = true;
46 m_cacheParameterGroupName = std::forward<CacheParameterGroupNameT>(value);
47 }
48 template <typename CacheParameterGroupNameT = Aws::String>
49 CacheParameterGroup& WithCacheParameterGroupName(CacheParameterGroupNameT&& value) {
50 SetCacheParameterGroupName(std::forward<CacheParameterGroupNameT>(value));
51 return *this;
52 }
54
56
63 inline const Aws::String& GetCacheParameterGroupFamily() const { return m_cacheParameterGroupFamily; }
64 inline bool CacheParameterGroupFamilyHasBeenSet() const { return m_cacheParameterGroupFamilyHasBeenSet; }
65 template <typename CacheParameterGroupFamilyT = Aws::String>
66 void SetCacheParameterGroupFamily(CacheParameterGroupFamilyT&& value) {
67 m_cacheParameterGroupFamilyHasBeenSet = true;
68 m_cacheParameterGroupFamily = std::forward<CacheParameterGroupFamilyT>(value);
69 }
70 template <typename CacheParameterGroupFamilyT = Aws::String>
71 CacheParameterGroup& WithCacheParameterGroupFamily(CacheParameterGroupFamilyT&& value) {
72 SetCacheParameterGroupFamily(std::forward<CacheParameterGroupFamilyT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::String& GetDescription() const { return m_description; }
82 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
83 template <typename DescriptionT = Aws::String>
84 void SetDescription(DescriptionT&& value) {
85 m_descriptionHasBeenSet = true;
86 m_description = std::forward<DescriptionT>(value);
87 }
88 template <typename DescriptionT = Aws::String>
89 CacheParameterGroup& WithDescription(DescriptionT&& value) {
90 SetDescription(std::forward<DescriptionT>(value));
91 return *this;
92 }
94
96
100 inline bool GetIsGlobal() const { return m_isGlobal; }
101 inline bool IsGlobalHasBeenSet() const { return m_isGlobalHasBeenSet; }
102 inline void SetIsGlobal(bool value) {
103 m_isGlobalHasBeenSet = true;
104 m_isGlobal = value;
105 }
106 inline CacheParameterGroup& WithIsGlobal(bool value) {
107 SetIsGlobal(value);
108 return *this;
109 }
111
113
116 inline const Aws::String& GetARN() const { return m_aRN; }
117 inline bool ARNHasBeenSet() const { return m_aRNHasBeenSet; }
118 template <typename ARNT = Aws::String>
119 void SetARN(ARNT&& value) {
120 m_aRNHasBeenSet = true;
121 m_aRN = std::forward<ARNT>(value);
122 }
123 template <typename ARNT = Aws::String>
125 SetARN(std::forward<ARNT>(value));
126 return *this;
127 }
129 private:
130 Aws::String m_cacheParameterGroupName;
131
132 Aws::String m_cacheParameterGroupFamily;
133
134 Aws::String m_description;
135
136 bool m_isGlobal{false};
137
138 Aws::String m_aRN;
139 bool m_cacheParameterGroupNameHasBeenSet = false;
140 bool m_cacheParameterGroupFamilyHasBeenSet = false;
141 bool m_descriptionHasBeenSet = false;
142 bool m_isGlobalHasBeenSet = false;
143 bool m_aRNHasBeenSet = false;
144};
145
146} // namespace Model
147} // namespace ElastiCache
148} // namespace Aws
AWS_ELASTICACHE_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_ELASTICACHE_API CacheParameterGroup & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetCacheParameterGroupFamily() const
CacheParameterGroup & WithIsGlobal(bool value)
void SetCacheParameterGroupName(CacheParameterGroupNameT &&value)
const Aws::String & GetCacheParameterGroupName() const
void SetCacheParameterGroupFamily(CacheParameterGroupFamilyT &&value)
AWS_ELASTICACHE_API CacheParameterGroup(const Aws::Utils::Xml::XmlNode &xmlNode)
CacheParameterGroup & WithDescription(DescriptionT &&value)
CacheParameterGroup & WithARN(ARNT &&value)
AWS_ELASTICACHE_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
CacheParameterGroup & WithCacheParameterGroupFamily(CacheParameterGroupFamilyT &&value)
AWS_ELASTICACHE_API CacheParameterGroup()=default
CacheParameterGroup & WithCacheParameterGroupName(CacheParameterGroupNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream