AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DataStorage.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/DataStorageUnit.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
32 {
33 public:
34 AWS_ELASTICACHE_API DataStorage();
35 AWS_ELASTICACHE_API DataStorage(const Aws::Utils::Xml::XmlNode& xmlNode);
36 AWS_ELASTICACHE_API DataStorage& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
37
38 AWS_ELASTICACHE_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
39 AWS_ELASTICACHE_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
40
41
43
46 inline int GetMaximum() const{ return m_maximum; }
47 inline bool MaximumHasBeenSet() const { return m_maximumHasBeenSet; }
48 inline void SetMaximum(int value) { m_maximumHasBeenSet = true; m_maximum = value; }
49 inline DataStorage& WithMaximum(int value) { SetMaximum(value); return *this;}
51
53
56 inline int GetMinimum() const{ return m_minimum; }
57 inline bool MinimumHasBeenSet() const { return m_minimumHasBeenSet; }
58 inline void SetMinimum(int value) { m_minimumHasBeenSet = true; m_minimum = value; }
59 inline DataStorage& WithMinimum(int value) { SetMinimum(value); return *this;}
61
63
66 inline const DataStorageUnit& GetUnit() const{ return m_unit; }
67 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
68 inline void SetUnit(const DataStorageUnit& value) { m_unitHasBeenSet = true; m_unit = value; }
69 inline void SetUnit(DataStorageUnit&& value) { m_unitHasBeenSet = true; m_unit = std::move(value); }
70 inline DataStorage& WithUnit(const DataStorageUnit& value) { SetUnit(value); return *this;}
71 inline DataStorage& WithUnit(DataStorageUnit&& value) { SetUnit(std::move(value)); return *this;}
73 private:
74
75 int m_maximum;
76 bool m_maximumHasBeenSet = false;
77
78 int m_minimum;
79 bool m_minimumHasBeenSet = false;
80
81 DataStorageUnit m_unit;
82 bool m_unitHasBeenSet = false;
83 };
84
85} // namespace Model
86} // namespace ElastiCache
87} // namespace Aws
void SetUnit(DataStorageUnit &&value)
Definition DataStorage.h:69
DataStorage & WithUnit(const DataStorageUnit &value)
Definition DataStorage.h:70
DataStorage & WithMinimum(int value)
Definition DataStorage.h:59
DataStorage & WithUnit(DataStorageUnit &&value)
Definition DataStorage.h:71
AWS_ELASTICACHE_API DataStorage(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_ELASTICACHE_API DataStorage()
DataStorage & WithMaximum(int value)
Definition DataStorage.h:49
AWS_ELASTICACHE_API DataStorage & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetUnit(const DataStorageUnit &value)
Definition DataStorage.h:68
const DataStorageUnit & GetUnit() const
Definition DataStorage.h:66
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
std::basic_ostream< char, std::char_traits< char > > OStream