AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
AdditionalStorageVolume.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/rds/RDS_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace RDS {
20namespace Model {
21
30 public:
31 AWS_RDS_API AdditionalStorageVolume() = default;
34
35 AWS_RDS_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
36 AWS_RDS_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
37
39
43 inline const Aws::String& GetVolumeName() const { return m_volumeName; }
44 inline bool VolumeNameHasBeenSet() const { return m_volumeNameHasBeenSet; }
45 template <typename VolumeNameT = Aws::String>
46 void SetVolumeName(VolumeNameT&& value) {
47 m_volumeNameHasBeenSet = true;
48 m_volumeName = std::forward<VolumeNameT>(value);
49 }
50 template <typename VolumeNameT = Aws::String>
52 SetVolumeName(std::forward<VolumeNameT>(value));
53 return *this;
54 }
56
58
62 inline int GetAllocatedStorage() const { return m_allocatedStorage; }
63 inline bool AllocatedStorageHasBeenSet() const { return m_allocatedStorageHasBeenSet; }
64 inline void SetAllocatedStorage(int value) {
65 m_allocatedStorageHasBeenSet = true;
66 m_allocatedStorage = value;
67 }
70 return *this;
71 }
73
75
79 inline int GetIOPS() const { return m_iOPS; }
80 inline bool IOPSHasBeenSet() const { return m_iOPSHasBeenSet; }
81 inline void SetIOPS(int value) {
82 m_iOPSHasBeenSet = true;
83 m_iOPS = value;
84 }
85 inline AdditionalStorageVolume& WithIOPS(int value) {
86 SetIOPS(value);
87 return *this;
88 }
90
92
96 inline int GetMaxAllocatedStorage() const { return m_maxAllocatedStorage; }
97 inline bool MaxAllocatedStorageHasBeenSet() const { return m_maxAllocatedStorageHasBeenSet; }
98 inline void SetMaxAllocatedStorage(int value) {
99 m_maxAllocatedStorageHasBeenSet = true;
100 m_maxAllocatedStorage = value;
101 }
104 return *this;
105 }
107
109
114 inline int GetStorageThroughput() const { return m_storageThroughput; }
115 inline bool StorageThroughputHasBeenSet() const { return m_storageThroughputHasBeenSet; }
116 inline void SetStorageThroughput(int value) {
117 m_storageThroughputHasBeenSet = true;
118 m_storageThroughput = value;
119 }
122 return *this;
123 }
125
127
131 inline const Aws::String& GetStorageType() const { return m_storageType; }
132 inline bool StorageTypeHasBeenSet() const { return m_storageTypeHasBeenSet; }
133 template <typename StorageTypeT = Aws::String>
134 void SetStorageType(StorageTypeT&& value) {
135 m_storageTypeHasBeenSet = true;
136 m_storageType = std::forward<StorageTypeT>(value);
137 }
138 template <typename StorageTypeT = Aws::String>
140 SetStorageType(std::forward<StorageTypeT>(value));
141 return *this;
142 }
144 private:
145 Aws::String m_volumeName;
146
147 int m_allocatedStorage{0};
148
149 int m_iOPS{0};
150
151 int m_maxAllocatedStorage{0};
152
153 int m_storageThroughput{0};
154
155 Aws::String m_storageType;
156 bool m_volumeNameHasBeenSet = false;
157 bool m_allocatedStorageHasBeenSet = false;
158 bool m_iOPSHasBeenSet = false;
159 bool m_maxAllocatedStorageHasBeenSet = false;
160 bool m_storageThroughputHasBeenSet = false;
161 bool m_storageTypeHasBeenSet = false;
162};
163
164} // namespace Model
165} // namespace RDS
166} // namespace Aws
AdditionalStorageVolume & WithAllocatedStorage(int value)
AWS_RDS_API AdditionalStorageVolume(const Aws::Utils::Xml::XmlNode &xmlNode)
AdditionalStorageVolume & WithStorageThroughput(int value)
AWS_RDS_API AdditionalStorageVolume & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_RDS_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AdditionalStorageVolume & WithStorageType(StorageTypeT &&value)
AWS_RDS_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_RDS_API AdditionalStorageVolume()=default
AdditionalStorageVolume & WithVolumeName(VolumeNameT &&value)
AdditionalStorageVolume & WithMaxAllocatedStorage(int value)
AdditionalStorageVolume & WithIOPS(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream