AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ServerlessCacheConfiguration.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 ServerlessCacheConfiguration();
36 AWS_ELASTICACHE_API ServerlessCacheConfiguration(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& GetServerlessCacheName() const{ return m_serverlessCacheName; }
48 inline bool ServerlessCacheNameHasBeenSet() const { return m_serverlessCacheNameHasBeenSet; }
49 inline void SetServerlessCacheName(const Aws::String& value) { m_serverlessCacheNameHasBeenSet = true; m_serverlessCacheName = value; }
50 inline void SetServerlessCacheName(Aws::String&& value) { m_serverlessCacheNameHasBeenSet = true; m_serverlessCacheName = std::move(value); }
51 inline void SetServerlessCacheName(const char* value) { m_serverlessCacheNameHasBeenSet = true; m_serverlessCacheName.assign(value); }
54 inline ServerlessCacheConfiguration& WithServerlessCacheName(const char* value) { SetServerlessCacheName(value); return *this;}
56
58
61 inline const Aws::String& GetEngine() const{ return m_engine; }
62 inline bool EngineHasBeenSet() const { return m_engineHasBeenSet; }
63 inline void SetEngine(const Aws::String& value) { m_engineHasBeenSet = true; m_engine = value; }
64 inline void SetEngine(Aws::String&& value) { m_engineHasBeenSet = true; m_engine = std::move(value); }
65 inline void SetEngine(const char* value) { m_engineHasBeenSet = true; m_engine.assign(value); }
66 inline ServerlessCacheConfiguration& WithEngine(const Aws::String& value) { SetEngine(value); return *this;}
67 inline ServerlessCacheConfiguration& WithEngine(Aws::String&& value) { SetEngine(std::move(value)); return *this;}
68 inline ServerlessCacheConfiguration& WithEngine(const char* value) { SetEngine(value); return *this;}
70
72
75 inline const Aws::String& GetMajorEngineVersion() const{ return m_majorEngineVersion; }
76 inline bool MajorEngineVersionHasBeenSet() const { return m_majorEngineVersionHasBeenSet; }
77 inline void SetMajorEngineVersion(const Aws::String& value) { m_majorEngineVersionHasBeenSet = true; m_majorEngineVersion = value; }
78 inline void SetMajorEngineVersion(Aws::String&& value) { m_majorEngineVersionHasBeenSet = true; m_majorEngineVersion = std::move(value); }
79 inline void SetMajorEngineVersion(const char* value) { m_majorEngineVersionHasBeenSet = true; m_majorEngineVersion.assign(value); }
81 inline ServerlessCacheConfiguration& WithMajorEngineVersion(Aws::String&& value) { SetMajorEngineVersion(std::move(value)); return *this;}
82 inline ServerlessCacheConfiguration& WithMajorEngineVersion(const char* value) { SetMajorEngineVersion(value); return *this;}
84 private:
85
86 Aws::String m_serverlessCacheName;
87 bool m_serverlessCacheNameHasBeenSet = false;
88
89 Aws::String m_engine;
90 bool m_engineHasBeenSet = false;
91
92 Aws::String m_majorEngineVersion;
93 bool m_majorEngineVersionHasBeenSet = false;
94 };
95
96} // namespace Model
97} // namespace ElastiCache
98} // namespace Aws
ServerlessCacheConfiguration & WithMajorEngineVersion(const char *value)
ServerlessCacheConfiguration & WithEngine(const char *value)
ServerlessCacheConfiguration & WithMajorEngineVersion(const Aws::String &value)
ServerlessCacheConfiguration & WithEngine(const Aws::String &value)
ServerlessCacheConfiguration & WithServerlessCacheName(const Aws::String &value)
ServerlessCacheConfiguration & WithMajorEngineVersion(Aws::String &&value)
ServerlessCacheConfiguration & WithServerlessCacheName(const char *value)
AWS_ELASTICACHE_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_ELASTICACHE_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_ELASTICACHE_API ServerlessCacheConfiguration(const Aws::Utils::Xml::XmlNode &xmlNode)
ServerlessCacheConfiguration & WithEngine(Aws::String &&value)
AWS_ELASTICACHE_API ServerlessCacheConfiguration & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
ServerlessCacheConfiguration & WithServerlessCacheName(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream