AWS SDK for C++

AWS SDK for C++ Version 1.11.927

Loading...
Searching...
No Matches
DescribeCacheResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/storagegateway/StorageGateway_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Json {
20class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace StorageGateway {
24namespace Model {
26 public:
27 AWS_STORAGEGATEWAY_API DescribeCacheResult() = default;
30
32
33 inline const Aws::String& GetGatewayARN() const { return m_gatewayARN; }
34 template <typename GatewayARNT = Aws::String>
35 void SetGatewayARN(GatewayARNT&& value) {
36 m_gatewayARNHasBeenSet = true;
37 m_gatewayARN = std::forward<GatewayARNT>(value);
38 }
39 template <typename GatewayARNT = Aws::String>
40 DescribeCacheResult& WithGatewayARN(GatewayARNT&& value) {
41 SetGatewayARN(std::forward<GatewayARNT>(value));
42 return *this;
43 }
45
47
52 inline const Aws::Vector<Aws::String>& GetDiskIds() const { return m_diskIds; }
53 template <typename DiskIdsT = Aws::Vector<Aws::String>>
54 void SetDiskIds(DiskIdsT&& value) {
55 m_diskIdsHasBeenSet = true;
56 m_diskIds = std::forward<DiskIdsT>(value);
57 }
58 template <typename DiskIdsT = Aws::Vector<Aws::String>>
59 DescribeCacheResult& WithDiskIds(DiskIdsT&& value) {
60 SetDiskIds(std::forward<DiskIdsT>(value));
61 return *this;
62 }
63 template <typename DiskIdsT = Aws::String>
64 DescribeCacheResult& AddDiskIds(DiskIdsT&& value) {
65 m_diskIdsHasBeenSet = true;
66 m_diskIds.emplace_back(std::forward<DiskIdsT>(value));
67 return *this;
68 }
70
72
75 inline long long GetCacheAllocatedInBytes() const { return m_cacheAllocatedInBytes; }
76 inline void SetCacheAllocatedInBytes(long long value) {
77 m_cacheAllocatedInBytesHasBeenSet = true;
78 m_cacheAllocatedInBytes = value;
79 }
82 return *this;
83 }
85
87
92 inline double GetCacheUsedPercentage() const { return m_cacheUsedPercentage; }
93 inline void SetCacheUsedPercentage(double value) {
94 m_cacheUsedPercentageHasBeenSet = true;
95 m_cacheUsedPercentage = value;
96 }
99 return *this;
100 }
102
104
109 inline double GetCacheDirtyPercentage() const { return m_cacheDirtyPercentage; }
110 inline void SetCacheDirtyPercentage(double value) {
111 m_cacheDirtyPercentageHasBeenSet = true;
112 m_cacheDirtyPercentage = value;
113 }
116 return *this;
117 }
119
121
125 inline double GetCacheHitPercentage() const { return m_cacheHitPercentage; }
126 inline void SetCacheHitPercentage(double value) {
127 m_cacheHitPercentageHasBeenSet = true;
128 m_cacheHitPercentage = value;
129 }
132 return *this;
133 }
135
137
141 inline double GetCacheMissPercentage() const { return m_cacheMissPercentage; }
142 inline void SetCacheMissPercentage(double value) {
143 m_cacheMissPercentageHasBeenSet = true;
144 m_cacheMissPercentage = value;
145 }
148 return *this;
149 }
151
153
154 inline const Aws::String& GetRequestId() const { return m_requestId; }
155 template <typename RequestIdT = Aws::String>
156 void SetRequestId(RequestIdT&& value) {
157 m_requestIdHasBeenSet = true;
158 m_requestId = std::forward<RequestIdT>(value);
159 }
160 template <typename RequestIdT = Aws::String>
161 DescribeCacheResult& WithRequestId(RequestIdT&& value) {
162 SetRequestId(std::forward<RequestIdT>(value));
163 return *this;
164 }
166 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
167
168 private:
169 Aws::String m_gatewayARN;
170
171 Aws::Vector<Aws::String> m_diskIds;
172
173 long long m_cacheAllocatedInBytes{0};
174
175 double m_cacheUsedPercentage{0.0};
176
177 double m_cacheDirtyPercentage{0.0};
178
179 double m_cacheHitPercentage{0.0};
180
181 double m_cacheMissPercentage{0.0};
182
183 Aws::String m_requestId;
184 Aws::Http::HttpResponseCode m_HttpResponseCode;
185 bool m_gatewayARNHasBeenSet = false;
186 bool m_diskIdsHasBeenSet = false;
187 bool m_cacheAllocatedInBytesHasBeenSet = false;
188 bool m_cacheUsedPercentageHasBeenSet = false;
189 bool m_cacheDirtyPercentageHasBeenSet = false;
190 bool m_cacheHitPercentageHasBeenSet = false;
191 bool m_cacheMissPercentageHasBeenSet = false;
192 bool m_requestIdHasBeenSet = false;
193};
194
195} // namespace Model
196} // namespace StorageGateway
197} // namespace Aws
DescribeCacheResult & WithCacheAllocatedInBytes(long long value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
DescribeCacheResult & WithCacheUsedPercentage(double value)
DescribeCacheResult & WithGatewayARN(GatewayARNT &&value)
DescribeCacheResult & WithRequestId(RequestIdT &&value)
DescribeCacheResult & AddDiskIds(DiskIdsT &&value)
AWS_STORAGEGATEWAY_API DescribeCacheResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeCacheResult & WithDiskIds(DiskIdsT &&value)
AWS_STORAGEGATEWAY_API DescribeCacheResult()=default
const Aws::Vector< Aws::String > & GetDiskIds() const
AWS_STORAGEGATEWAY_API DescribeCacheResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeCacheResult & WithCacheHitPercentage(double value)
DescribeCacheResult & WithCacheMissPercentage(double 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