AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CacheParameterGroup.h
1
6#pragma once
7#include <aws/elasticache/ElastiCache_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace ElastiCache
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_ELASTICACHE_API CacheParameterGroup() = default;
36 AWS_ELASTICACHE_API CacheParameterGroup(const Aws::Utils::Xml::XmlNode& xmlNode);
37 AWS_ELASTICACHE_API CacheParameterGroup& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
38
39 AWS_ELASTICACHE_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40 AWS_ELASTICACHE_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
41
42
44
47 inline const Aws::String& GetCacheParameterGroupName() const { return m_cacheParameterGroupName; }
48 inline bool CacheParameterGroupNameHasBeenSet() const { return m_cacheParameterGroupNameHasBeenSet; }
49 template<typename CacheParameterGroupNameT = Aws::String>
50 void SetCacheParameterGroupName(CacheParameterGroupNameT&& value) { m_cacheParameterGroupNameHasBeenSet = true; m_cacheParameterGroupName = std::forward<CacheParameterGroupNameT>(value); }
51 template<typename CacheParameterGroupNameT = Aws::String>
52 CacheParameterGroup& WithCacheParameterGroupName(CacheParameterGroupNameT&& value) { SetCacheParameterGroupName(std::forward<CacheParameterGroupNameT>(value)); return *this;}
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) { m_cacheParameterGroupFamilyHasBeenSet = true; m_cacheParameterGroupFamily = std::forward<CacheParameterGroupFamilyT>(value); }
67 template<typename CacheParameterGroupFamilyT = Aws::String>
68 CacheParameterGroup& WithCacheParameterGroupFamily(CacheParameterGroupFamilyT&& value) { SetCacheParameterGroupFamily(std::forward<CacheParameterGroupFamilyT>(value)); return *this;}
70
72
75 inline const Aws::String& GetDescription() const { return m_description; }
76 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
77 template<typename DescriptionT = Aws::String>
78 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
79 template<typename DescriptionT = Aws::String>
80 CacheParameterGroup& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
82
84
88 inline bool GetIsGlobal() const { return m_isGlobal; }
89 inline bool IsGlobalHasBeenSet() const { return m_isGlobalHasBeenSet; }
90 inline void SetIsGlobal(bool value) { m_isGlobalHasBeenSet = true; m_isGlobal = value; }
91 inline CacheParameterGroup& WithIsGlobal(bool value) { SetIsGlobal(value); return *this;}
93
95
98 inline const Aws::String& GetARN() const { return m_aRN; }
99 inline bool ARNHasBeenSet() const { return m_aRNHasBeenSet; }
100 template<typename ARNT = Aws::String>
101 void SetARN(ARNT&& value) { m_aRNHasBeenSet = true; m_aRN = std::forward<ARNT>(value); }
102 template<typename ARNT = Aws::String>
103 CacheParameterGroup& WithARN(ARNT&& value) { SetARN(std::forward<ARNT>(value)); return *this;}
105 private:
106
107 Aws::String m_cacheParameterGroupName;
108 bool m_cacheParameterGroupNameHasBeenSet = false;
109
110 Aws::String m_cacheParameterGroupFamily;
111 bool m_cacheParameterGroupFamilyHasBeenSet = false;
112
113 Aws::String m_description;
114 bool m_descriptionHasBeenSet = false;
115
116 bool m_isGlobal{false};
117 bool m_isGlobalHasBeenSet = false;
118
119 Aws::String m_aRN;
120 bool m_aRNHasBeenSet = false;
121 };
122
123} // namespace Model
124} // namespace ElastiCache
125} // 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