AWS SDK for C++  1.9.126
AWS SDK for C++
DescribeCacheResult.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 template<typename RESULT_TYPE>
15 class AmazonWebServiceResult;
16 
17 namespace Utils
18 {
19 namespace Json
20 {
21  class JsonValue;
22 } // namespace Json
23 } // namespace Utils
24 namespace StorageGateway
25 {
26 namespace Model
27 {
29  {
30  public:
34 
35 
36 
37  inline const Aws::String& GetGatewayARN() const{ return m_gatewayARN; }
38 
39 
40  inline void SetGatewayARN(const Aws::String& value) { m_gatewayARN = value; }
41 
42 
43  inline void SetGatewayARN(Aws::String&& value) { m_gatewayARN = std::move(value); }
44 
45 
46  inline void SetGatewayARN(const char* value) { m_gatewayARN.assign(value); }
47 
48 
49  inline DescribeCacheResult& WithGatewayARN(const Aws::String& value) { SetGatewayARN(value); return *this;}
50 
51 
52  inline DescribeCacheResult& WithGatewayARN(Aws::String&& value) { SetGatewayARN(std::move(value)); return *this;}
53 
54 
55  inline DescribeCacheResult& WithGatewayARN(const char* value) { SetGatewayARN(value); return *this;}
56 
57 
63  inline const Aws::Vector<Aws::String>& GetDiskIds() const{ return m_diskIds; }
64 
70  inline void SetDiskIds(const Aws::Vector<Aws::String>& value) { m_diskIds = value; }
71 
77  inline void SetDiskIds(Aws::Vector<Aws::String>&& value) { m_diskIds = std::move(value); }
78 
84  inline DescribeCacheResult& WithDiskIds(const Aws::Vector<Aws::String>& value) { SetDiskIds(value); return *this;}
85 
91  inline DescribeCacheResult& WithDiskIds(Aws::Vector<Aws::String>&& value) { SetDiskIds(std::move(value)); return *this;}
92 
98  inline DescribeCacheResult& AddDiskIds(const Aws::String& value) { m_diskIds.push_back(value); return *this; }
99 
105  inline DescribeCacheResult& AddDiskIds(Aws::String&& value) { m_diskIds.push_back(std::move(value)); return *this; }
106 
112  inline DescribeCacheResult& AddDiskIds(const char* value) { m_diskIds.push_back(value); return *this; }
113 
114 
118  inline long long GetCacheAllocatedInBytes() const{ return m_cacheAllocatedInBytes; }
119 
123  inline void SetCacheAllocatedInBytes(long long value) { m_cacheAllocatedInBytes = value; }
124 
128  inline DescribeCacheResult& WithCacheAllocatedInBytes(long long value) { SetCacheAllocatedInBytes(value); return *this;}
129 
130 
136  inline double GetCacheUsedPercentage() const{ return m_cacheUsedPercentage; }
137 
143  inline void SetCacheUsedPercentage(double value) { m_cacheUsedPercentage = value; }
144 
150  inline DescribeCacheResult& WithCacheUsedPercentage(double value) { SetCacheUsedPercentage(value); return *this;}
151 
152 
158  inline double GetCacheDirtyPercentage() const{ return m_cacheDirtyPercentage; }
159 
165  inline void SetCacheDirtyPercentage(double value) { m_cacheDirtyPercentage = value; }
166 
172  inline DescribeCacheResult& WithCacheDirtyPercentage(double value) { SetCacheDirtyPercentage(value); return *this;}
173 
174 
179  inline double GetCacheHitPercentage() const{ return m_cacheHitPercentage; }
180 
185  inline void SetCacheHitPercentage(double value) { m_cacheHitPercentage = value; }
186 
191  inline DescribeCacheResult& WithCacheHitPercentage(double value) { SetCacheHitPercentage(value); return *this;}
192 
193 
198  inline double GetCacheMissPercentage() const{ return m_cacheMissPercentage; }
199 
204  inline void SetCacheMissPercentage(double value) { m_cacheMissPercentage = value; }
205 
210  inline DescribeCacheResult& WithCacheMissPercentage(double value) { SetCacheMissPercentage(value); return *this;}
211 
212  private:
213 
214  Aws::String m_gatewayARN;
215 
216  Aws::Vector<Aws::String> m_diskIds;
217 
218  long long m_cacheAllocatedInBytes;
219 
220  double m_cacheUsedPercentage;
221 
222  double m_cacheDirtyPercentage;
223 
224  double m_cacheHitPercentage;
225 
226  double m_cacheMissPercentage;
227  };
228 
229 } // namespace Model
230 } // namespace StorageGateway
231 } // namespace Aws
Aws::StorageGateway::Model::DescribeCacheResult::AddDiskIds
DescribeCacheResult & AddDiskIds(const Aws::String &value)
Definition: DescribeCacheResult.h:98
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::StorageGateway::Model::DescribeCacheResult::WithGatewayARN
DescribeCacheResult & WithGatewayARN(const char *value)
Definition: DescribeCacheResult.h:55
Aws::StorageGateway::Model::DescribeCacheResult::AddDiskIds
DescribeCacheResult & AddDiskIds(Aws::String &&value)
Definition: DescribeCacheResult.h:105
Aws::StorageGateway::Model::DescribeCacheResult::WithGatewayARN
DescribeCacheResult & WithGatewayARN(Aws::String &&value)
Definition: DescribeCacheResult.h:52
Aws::StorageGateway::Model::DescribeCacheResult::WithCacheUsedPercentage
DescribeCacheResult & WithCacheUsedPercentage(double value)
Definition: DescribeCacheResult.h:150
Aws::StorageGateway::Model::DescribeCacheResult::GetCacheAllocatedInBytes
long long GetCacheAllocatedInBytes() const
Definition: DescribeCacheResult.h:118
Aws::StorageGateway::Model::DescribeCacheResult::WithGatewayARN
DescribeCacheResult & WithGatewayARN(const Aws::String &value)
Definition: DescribeCacheResult.h:49
Aws::StorageGateway::Model::DescribeCacheResult::WithDiskIds
DescribeCacheResult & WithDiskIds(const Aws::Vector< Aws::String > &value)
Definition: DescribeCacheResult.h:84
Aws::StorageGateway::Model::DescribeCacheResult::SetGatewayARN
void SetGatewayARN(const char *value)
Definition: DescribeCacheResult.h:46
Aws::StorageGateway::Model::DescribeCacheResult::AddDiskIds
DescribeCacheResult & AddDiskIds(const char *value)
Definition: DescribeCacheResult.h:112
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::StorageGateway::Model::DescribeCacheResult::SetGatewayARN
void SetGatewayARN(Aws::String &&value)
Definition: DescribeCacheResult.h:43
Aws::StorageGateway::Model::DescribeCacheResult::WithDiskIds
DescribeCacheResult & WithDiskIds(Aws::Vector< Aws::String > &&value)
Definition: DescribeCacheResult.h:91
AWSVector.h
Aws::StorageGateway::Model::DescribeCacheResult::GetDiskIds
const Aws::Vector< Aws::String > & GetDiskIds() const
Definition: DescribeCacheResult.h:63
Aws::StorageGateway::Model::DescribeCacheResult::SetGatewayARN
void SetGatewayARN(const Aws::String &value)
Definition: DescribeCacheResult.h:40
Aws::StorageGateway::Model::DescribeCacheResult::GetCacheMissPercentage
double GetCacheMissPercentage() const
Definition: DescribeCacheResult.h:198
Aws::StorageGateway::Model::DescribeCacheResult::SetDiskIds
void SetDiskIds(const Aws::Vector< Aws::String > &value)
Definition: DescribeCacheResult.h:70
Aws::StorageGateway::Model::DescribeCacheResult::WithCacheDirtyPercentage
DescribeCacheResult & WithCacheDirtyPercentage(double value)
Definition: DescribeCacheResult.h:172
Aws::StorageGateway::Model::DescribeCacheResult::SetCacheMissPercentage
void SetCacheMissPercentage(double value)
Definition: DescribeCacheResult.h:204
Aws::StorageGateway::Model::DescribeCacheResult::DescribeCacheResult
DescribeCacheResult()
Aws::StorageGateway::Model::DescribeCacheResult::WithCacheAllocatedInBytes
DescribeCacheResult & WithCacheAllocatedInBytes(long long value)
Definition: DescribeCacheResult.h:128
Aws::StorageGateway::Model::DescribeCacheResult
Definition: DescribeCacheResult.h:29
Aws::StorageGateway::Model::DescribeCacheResult::SetCacheUsedPercentage
void SetCacheUsedPercentage(double value)
Definition: DescribeCacheResult.h:143
Aws::StorageGateway::Model::DescribeCacheResult::GetGatewayARN
const Aws::String & GetGatewayARN() const
Definition: DescribeCacheResult.h:37
Aws::StorageGateway::Model::DescribeCacheResult::GetCacheHitPercentage
double GetCacheHitPercentage() const
Definition: DescribeCacheResult.h:179
Aws::StorageGateway::Model::DescribeCacheResult::GetCacheDirtyPercentage
double GetCacheDirtyPercentage() const
Definition: DescribeCacheResult.h:158
AWSString.h
AWS_STORAGEGATEWAY_API
#define AWS_STORAGEGATEWAY_API
Definition: StorageGateway_EXPORTS.h:28
Aws::StorageGateway::Model::DescribeCacheResult::operator=
DescribeCacheResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::StorageGateway::Model::DescribeCacheResult::SetCacheAllocatedInBytes
void SetCacheAllocatedInBytes(long long value)
Definition: DescribeCacheResult.h:123
Aws::StorageGateway::Model::DescribeCacheResult::GetCacheUsedPercentage
double GetCacheUsedPercentage() const
Definition: DescribeCacheResult.h:136
Aws::StorageGateway::Model::DescribeCacheResult::SetDiskIds
void SetDiskIds(Aws::Vector< Aws::String > &&value)
Definition: DescribeCacheResult.h:77
Aws::StorageGateway::Model::DescribeCacheResult::WithCacheMissPercentage
DescribeCacheResult & WithCacheMissPercentage(double value)
Definition: DescribeCacheResult.h:210
Aws
Definition: AccessManagementClient.h:15
StorageGateway_EXPORTS.h
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::StorageGateway::Model::DescribeCacheResult::SetCacheDirtyPercentage
void SetCacheDirtyPercentage(double value)
Definition: DescribeCacheResult.h:165
Aws::StorageGateway::Model::DescribeCacheResult::DescribeCacheResult
DescribeCacheResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::StorageGateway::Model::DescribeCacheResult::WithCacheHitPercentage
DescribeCacheResult & WithCacheHitPercentage(double value)
Definition: DescribeCacheResult.h:191
Aws::StorageGateway::Model::DescribeCacheResult::SetCacheHitPercentage
void SetCacheHitPercentage(double value)
Definition: DescribeCacheResult.h:185