AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DescribeCacheResult.h
1
6#pragma once
7#include <aws/storagegateway/StorageGateway_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <utility>
11
12namespace Aws
13{
14template<typename RESULT_TYPE>
15class AmazonWebServiceResult;
16
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace StorageGateway
25{
26namespace Model
27{
29 {
30 public:
31 AWS_STORAGEGATEWAY_API DescribeCacheResult();
34
35
37
38 inline const Aws::String& GetGatewayARN() const{ return m_gatewayARN; }
39 inline void SetGatewayARN(const Aws::String& value) { m_gatewayARN = value; }
40 inline void SetGatewayARN(Aws::String&& value) { m_gatewayARN = std::move(value); }
41 inline void SetGatewayARN(const char* value) { m_gatewayARN.assign(value); }
42 inline DescribeCacheResult& WithGatewayARN(const Aws::String& value) { SetGatewayARN(value); return *this;}
43 inline DescribeCacheResult& WithGatewayARN(Aws::String&& value) { SetGatewayARN(std::move(value)); return *this;}
44 inline DescribeCacheResult& WithGatewayARN(const char* value) { SetGatewayARN(value); return *this;}
46
48
53 inline const Aws::Vector<Aws::String>& GetDiskIds() const{ return m_diskIds; }
54 inline void SetDiskIds(const Aws::Vector<Aws::String>& value) { m_diskIds = value; }
55 inline void SetDiskIds(Aws::Vector<Aws::String>&& value) { m_diskIds = std::move(value); }
56 inline DescribeCacheResult& WithDiskIds(const Aws::Vector<Aws::String>& value) { SetDiskIds(value); return *this;}
57 inline DescribeCacheResult& WithDiskIds(Aws::Vector<Aws::String>&& value) { SetDiskIds(std::move(value)); return *this;}
58 inline DescribeCacheResult& AddDiskIds(const Aws::String& value) { m_diskIds.push_back(value); return *this; }
59 inline DescribeCacheResult& AddDiskIds(Aws::String&& value) { m_diskIds.push_back(std::move(value)); return *this; }
60 inline DescribeCacheResult& AddDiskIds(const char* value) { m_diskIds.push_back(value); return *this; }
62
64
67 inline long long GetCacheAllocatedInBytes() const{ return m_cacheAllocatedInBytes; }
68 inline void SetCacheAllocatedInBytes(long long value) { m_cacheAllocatedInBytes = value; }
69 inline DescribeCacheResult& WithCacheAllocatedInBytes(long long value) { SetCacheAllocatedInBytes(value); return *this;}
71
73
78 inline double GetCacheUsedPercentage() const{ return m_cacheUsedPercentage; }
79 inline void SetCacheUsedPercentage(double value) { m_cacheUsedPercentage = value; }
80 inline DescribeCacheResult& WithCacheUsedPercentage(double value) { SetCacheUsedPercentage(value); return *this;}
82
84
89 inline double GetCacheDirtyPercentage() const{ return m_cacheDirtyPercentage; }
90 inline void SetCacheDirtyPercentage(double value) { m_cacheDirtyPercentage = value; }
91 inline DescribeCacheResult& WithCacheDirtyPercentage(double value) { SetCacheDirtyPercentage(value); return *this;}
93
95
99 inline double GetCacheHitPercentage() const{ return m_cacheHitPercentage; }
100 inline void SetCacheHitPercentage(double value) { m_cacheHitPercentage = value; }
101 inline DescribeCacheResult& WithCacheHitPercentage(double value) { SetCacheHitPercentage(value); return *this;}
103
105
109 inline double GetCacheMissPercentage() const{ return m_cacheMissPercentage; }
110 inline void SetCacheMissPercentage(double value) { m_cacheMissPercentage = value; }
111 inline DescribeCacheResult& WithCacheMissPercentage(double value) { SetCacheMissPercentage(value); return *this;}
113
115
116 inline const Aws::String& GetRequestId() const{ return m_requestId; }
117 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
118 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
119 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
120 inline DescribeCacheResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
121 inline DescribeCacheResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
122 inline DescribeCacheResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
124 private:
125
126 Aws::String m_gatewayARN;
127
128 Aws::Vector<Aws::String> m_diskIds;
129
130 long long m_cacheAllocatedInBytes;
131
132 double m_cacheUsedPercentage;
133
134 double m_cacheDirtyPercentage;
135
136 double m_cacheHitPercentage;
137
138 double m_cacheMissPercentage;
139
140 Aws::String m_requestId;
141 };
142
143} // namespace Model
144} // namespace StorageGateway
145} // namespace Aws
DescribeCacheResult & WithCacheAllocatedInBytes(long long value)
DescribeCacheResult & WithCacheUsedPercentage(double value)
DescribeCacheResult & WithRequestId(Aws::String &&value)
DescribeCacheResult & AddDiskIds(const Aws::String &value)
void SetDiskIds(Aws::Vector< Aws::String > &&value)
void SetDiskIds(const Aws::Vector< Aws::String > &value)
AWS_STORAGEGATEWAY_API DescribeCacheResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeCacheResult & WithRequestId(const Aws::String &value)
DescribeCacheResult & WithGatewayARN(const Aws::String &value)
DescribeCacheResult & WithDiskIds(Aws::Vector< Aws::String > &&value)
DescribeCacheResult & WithRequestId(const char *value)
DescribeCacheResult & AddDiskIds(Aws::String &&value)
DescribeCacheResult & WithGatewayARN(const char *value)
DescribeCacheResult & WithGatewayARN(Aws::String &&value)
const Aws::Vector< Aws::String > & GetDiskIds() const
AWS_STORAGEGATEWAY_API DescribeCacheResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeCacheResult & AddDiskIds(const char *value)
DescribeCacheResult & WithCacheHitPercentage(double value)
DescribeCacheResult & WithCacheMissPercentage(double value)
DescribeCacheResult & WithDiskIds(const Aws::Vector< Aws::String > &value)
DescribeCacheResult & WithCacheDirtyPercentage(double value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue