AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
EngineDefaults.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 <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/elasticache/model/Parameter.h>
12#include <aws/elasticache/model/CacheNodeTypeSpecificParameter.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Xml
20{
21 class XmlNode;
22} // namespace Xml
23} // namespace Utils
24namespace ElastiCache
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_ELASTICACHE_API EngineDefaults() = default;
39 AWS_ELASTICACHE_API EngineDefaults(const Aws::Utils::Xml::XmlNode& xmlNode);
40 AWS_ELASTICACHE_API EngineDefaults& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
41
42 AWS_ELASTICACHE_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
43 AWS_ELASTICACHE_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
44
45
47
55 inline const Aws::String& GetCacheParameterGroupFamily() const { return m_cacheParameterGroupFamily; }
56 inline bool CacheParameterGroupFamilyHasBeenSet() const { return m_cacheParameterGroupFamilyHasBeenSet; }
57 template<typename CacheParameterGroupFamilyT = Aws::String>
58 void SetCacheParameterGroupFamily(CacheParameterGroupFamilyT&& value) { m_cacheParameterGroupFamilyHasBeenSet = true; m_cacheParameterGroupFamily = std::forward<CacheParameterGroupFamilyT>(value); }
59 template<typename CacheParameterGroupFamilyT = Aws::String>
60 EngineDefaults& WithCacheParameterGroupFamily(CacheParameterGroupFamilyT&& value) { SetCacheParameterGroupFamily(std::forward<CacheParameterGroupFamilyT>(value)); return *this;}
62
64
67 inline const Aws::String& GetMarker() const { return m_marker; }
68 inline bool MarkerHasBeenSet() const { return m_markerHasBeenSet; }
69 template<typename MarkerT = Aws::String>
70 void SetMarker(MarkerT&& value) { m_markerHasBeenSet = true; m_marker = std::forward<MarkerT>(value); }
71 template<typename MarkerT = Aws::String>
72 EngineDefaults& WithMarker(MarkerT&& value) { SetMarker(std::forward<MarkerT>(value)); return *this;}
74
76
79 inline const Aws::Vector<Parameter>& GetParameters() const { return m_parameters; }
80 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
81 template<typename ParametersT = Aws::Vector<Parameter>>
82 void SetParameters(ParametersT&& value) { m_parametersHasBeenSet = true; m_parameters = std::forward<ParametersT>(value); }
83 template<typename ParametersT = Aws::Vector<Parameter>>
84 EngineDefaults& WithParameters(ParametersT&& value) { SetParameters(std::forward<ParametersT>(value)); return *this;}
85 template<typename ParametersT = Parameter>
86 EngineDefaults& AddParameters(ParametersT&& value) { m_parametersHasBeenSet = true; m_parameters.emplace_back(std::forward<ParametersT>(value)); return *this; }
88
90
94 inline const Aws::Vector<CacheNodeTypeSpecificParameter>& GetCacheNodeTypeSpecificParameters() const { return m_cacheNodeTypeSpecificParameters; }
95 inline bool CacheNodeTypeSpecificParametersHasBeenSet() const { return m_cacheNodeTypeSpecificParametersHasBeenSet; }
96 template<typename CacheNodeTypeSpecificParametersT = Aws::Vector<CacheNodeTypeSpecificParameter>>
97 void SetCacheNodeTypeSpecificParameters(CacheNodeTypeSpecificParametersT&& value) { m_cacheNodeTypeSpecificParametersHasBeenSet = true; m_cacheNodeTypeSpecificParameters = std::forward<CacheNodeTypeSpecificParametersT>(value); }
98 template<typename CacheNodeTypeSpecificParametersT = Aws::Vector<CacheNodeTypeSpecificParameter>>
99 EngineDefaults& WithCacheNodeTypeSpecificParameters(CacheNodeTypeSpecificParametersT&& value) { SetCacheNodeTypeSpecificParameters(std::forward<CacheNodeTypeSpecificParametersT>(value)); return *this;}
100 template<typename CacheNodeTypeSpecificParametersT = CacheNodeTypeSpecificParameter>
101 EngineDefaults& AddCacheNodeTypeSpecificParameters(CacheNodeTypeSpecificParametersT&& value) { m_cacheNodeTypeSpecificParametersHasBeenSet = true; m_cacheNodeTypeSpecificParameters.emplace_back(std::forward<CacheNodeTypeSpecificParametersT>(value)); return *this; }
103 private:
104
105 Aws::String m_cacheParameterGroupFamily;
106 bool m_cacheParameterGroupFamilyHasBeenSet = false;
107
108 Aws::String m_marker;
109 bool m_markerHasBeenSet = false;
110
111 Aws::Vector<Parameter> m_parameters;
112 bool m_parametersHasBeenSet = false;
113
114 Aws::Vector<CacheNodeTypeSpecificParameter> m_cacheNodeTypeSpecificParameters;
115 bool m_cacheNodeTypeSpecificParametersHasBeenSet = false;
116 };
117
118} // namespace Model
119} // namespace ElastiCache
120} // namespace Aws
AWS_ELASTICACHE_API EngineDefaults()=default
void SetCacheNodeTypeSpecificParameters(CacheNodeTypeSpecificParametersT &&value)
EngineDefaults & AddParameters(ParametersT &&value)
const Aws::String & GetCacheParameterGroupFamily() const
AWS_ELASTICACHE_API EngineDefaults & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetParameters(ParametersT &&value)
AWS_ELASTICACHE_API void OutputToStream(Aws::OStream &oStream, const char *location) const
EngineDefaults & AddCacheNodeTypeSpecificParameters(CacheNodeTypeSpecificParametersT &&value)
void SetCacheParameterGroupFamily(CacheParameterGroupFamilyT &&value)
EngineDefaults & WithCacheNodeTypeSpecificParameters(CacheNodeTypeSpecificParametersT &&value)
EngineDefaults & WithMarker(MarkerT &&value)
const Aws::Vector< CacheNodeTypeSpecificParameter > & GetCacheNodeTypeSpecificParameters() const
AWS_ELASTICACHE_API EngineDefaults(const Aws::Utils::Xml::XmlNode &xmlNode)
EngineDefaults & WithCacheParameterGroupFamily(CacheParameterGroupFamilyT &&value)
const Aws::String & GetMarker() const
const Aws::Vector< Parameter > & GetParameters() const
EngineDefaults & WithParameters(ParametersT &&value)
AWS_ELASTICACHE_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
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