AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CacheParameterGroupStatus.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/elasticache/ElastiCache_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Xml {
17class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace ElastiCache {
21namespace Model {
22
29 public:
30 AWS_ELASTICACHE_API CacheParameterGroupStatus() = default;
31 AWS_ELASTICACHE_API CacheParameterGroupStatus(const Aws::Utils::Xml::XmlNode& xmlNode);
32 AWS_ELASTICACHE_API CacheParameterGroupStatus& 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 CacheParameterGroupStatus& WithCacheParameterGroupName(CacheParameterGroupNameT&& value) {
50 SetCacheParameterGroupName(std::forward<CacheParameterGroupNameT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetParameterApplyStatus() const { return m_parameterApplyStatus; }
60 inline bool ParameterApplyStatusHasBeenSet() const { return m_parameterApplyStatusHasBeenSet; }
61 template <typename ParameterApplyStatusT = Aws::String>
62 void SetParameterApplyStatus(ParameterApplyStatusT&& value) {
63 m_parameterApplyStatusHasBeenSet = true;
64 m_parameterApplyStatus = std::forward<ParameterApplyStatusT>(value);
65 }
66 template <typename ParameterApplyStatusT = Aws::String>
67 CacheParameterGroupStatus& WithParameterApplyStatus(ParameterApplyStatusT&& value) {
68 SetParameterApplyStatus(std::forward<ParameterApplyStatusT>(value));
69 return *this;
70 }
72
74
78 inline const Aws::Vector<Aws::String>& GetCacheNodeIdsToReboot() const { return m_cacheNodeIdsToReboot; }
79 inline bool CacheNodeIdsToRebootHasBeenSet() const { return m_cacheNodeIdsToRebootHasBeenSet; }
80 template <typename CacheNodeIdsToRebootT = Aws::Vector<Aws::String>>
81 void SetCacheNodeIdsToReboot(CacheNodeIdsToRebootT&& value) {
82 m_cacheNodeIdsToRebootHasBeenSet = true;
83 m_cacheNodeIdsToReboot = std::forward<CacheNodeIdsToRebootT>(value);
84 }
85 template <typename CacheNodeIdsToRebootT = Aws::Vector<Aws::String>>
86 CacheParameterGroupStatus& WithCacheNodeIdsToReboot(CacheNodeIdsToRebootT&& value) {
87 SetCacheNodeIdsToReboot(std::forward<CacheNodeIdsToRebootT>(value));
88 return *this;
89 }
90 template <typename CacheNodeIdsToRebootT = Aws::String>
91 CacheParameterGroupStatus& AddCacheNodeIdsToReboot(CacheNodeIdsToRebootT&& value) {
92 m_cacheNodeIdsToRebootHasBeenSet = true;
93 m_cacheNodeIdsToReboot.emplace_back(std::forward<CacheNodeIdsToRebootT>(value));
94 return *this;
95 }
97 private:
98 Aws::String m_cacheParameterGroupName;
99
100 Aws::String m_parameterApplyStatus;
101
102 Aws::Vector<Aws::String> m_cacheNodeIdsToReboot;
103 bool m_cacheParameterGroupNameHasBeenSet = false;
104 bool m_parameterApplyStatusHasBeenSet = false;
105 bool m_cacheNodeIdsToRebootHasBeenSet = false;
106};
107
108} // namespace Model
109} // namespace ElastiCache
110} // namespace Aws
AWS_ELASTICACHE_API CacheParameterGroupStatus()=default
CacheParameterGroupStatus & WithCacheNodeIdsToReboot(CacheNodeIdsToRebootT &&value)
AWS_ELASTICACHE_API void OutputToStream(Aws::OStream &oStream, const char *location) const
CacheParameterGroupStatus & AddCacheNodeIdsToReboot(CacheNodeIdsToRebootT &&value)
AWS_ELASTICACHE_API CacheParameterGroupStatus(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::Vector< Aws::String > & GetCacheNodeIdsToReboot() const
CacheParameterGroupStatus & WithParameterApplyStatus(ParameterApplyStatusT &&value)
AWS_ELASTICACHE_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
CacheParameterGroupStatus & WithCacheParameterGroupName(CacheParameterGroupNameT &&value)
void SetParameterApplyStatus(ParameterApplyStatusT &&value)
AWS_ELASTICACHE_API CacheParameterGroupStatus & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetCacheParameterGroupName(CacheParameterGroupNameT &&value)
void SetCacheNodeIdsToReboot(CacheNodeIdsToRebootT &&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