AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CacheUsageLimits.h
1
6#pragma once
7#include <aws/elasticache/ElastiCache_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/elasticache/model/DataStorage.h>
10#include <aws/elasticache/model/ECPUPerSecond.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace ElastiCache
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_ELASTICACHE_API CacheUsageLimits();
37 AWS_ELASTICACHE_API CacheUsageLimits(const Aws::Utils::Xml::XmlNode& xmlNode);
38 AWS_ELASTICACHE_API CacheUsageLimits& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
39
40 AWS_ELASTICACHE_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41 AWS_ELASTICACHE_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
42
43
45
48 inline const DataStorage& GetDataStorage() const{ return m_dataStorage; }
49 inline bool DataStorageHasBeenSet() const { return m_dataStorageHasBeenSet; }
50 inline void SetDataStorage(const DataStorage& value) { m_dataStorageHasBeenSet = true; m_dataStorage = value; }
51 inline void SetDataStorage(DataStorage&& value) { m_dataStorageHasBeenSet = true; m_dataStorage = std::move(value); }
52 inline CacheUsageLimits& WithDataStorage(const DataStorage& value) { SetDataStorage(value); return *this;}
53 inline CacheUsageLimits& WithDataStorage(DataStorage&& value) { SetDataStorage(std::move(value)); return *this;}
55
57
58 inline const ECPUPerSecond& GetECPUPerSecond() const{ return m_eCPUPerSecond; }
59 inline bool ECPUPerSecondHasBeenSet() const { return m_eCPUPerSecondHasBeenSet; }
60 inline void SetECPUPerSecond(const ECPUPerSecond& value) { m_eCPUPerSecondHasBeenSet = true; m_eCPUPerSecond = value; }
61 inline void SetECPUPerSecond(ECPUPerSecond&& value) { m_eCPUPerSecondHasBeenSet = true; m_eCPUPerSecond = std::move(value); }
62 inline CacheUsageLimits& WithECPUPerSecond(const ECPUPerSecond& value) { SetECPUPerSecond(value); return *this;}
63 inline CacheUsageLimits& WithECPUPerSecond(ECPUPerSecond&& value) { SetECPUPerSecond(std::move(value)); return *this;}
65 private:
66
67 DataStorage m_dataStorage;
68 bool m_dataStorageHasBeenSet = false;
69
70 ECPUPerSecond m_eCPUPerSecond;
71 bool m_eCPUPerSecondHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace ElastiCache
76} // namespace Aws
CacheUsageLimits & WithECPUPerSecond(const ECPUPerSecond &value)
AWS_ELASTICACHE_API CacheUsageLimits & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_ELASTICACHE_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
CacheUsageLimits & WithDataStorage(DataStorage &&value)
void SetECPUPerSecond(const ECPUPerSecond &value)
void SetDataStorage(const DataStorage &value)
AWS_ELASTICACHE_API CacheUsageLimits(const Aws::Utils::Xml::XmlNode &xmlNode)
CacheUsageLimits & WithDataStorage(const DataStorage &value)
AWS_ELASTICACHE_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const DataStorage & GetDataStorage() const
void SetECPUPerSecond(ECPUPerSecond &&value)
const ECPUPerSecond & GetECPUPerSecond() const
CacheUsageLimits & WithECPUPerSecond(ECPUPerSecond &&value)
std::basic_ostream< char, std::char_traits< char > > OStream