AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
34
35
37
38 inline const Aws::String& GetGatewayARN() const { return m_gatewayARN; }
39 template<typename GatewayARNT = Aws::String>
40 void SetGatewayARN(GatewayARNT&& value) { m_gatewayARNHasBeenSet = true; m_gatewayARN = std::forward<GatewayARNT>(value); }
41 template<typename GatewayARNT = Aws::String>
42 DescribeCacheResult& WithGatewayARN(GatewayARNT&& value) { SetGatewayARN(std::forward<GatewayARNT>(value)); return *this;}
44
46
51 inline const Aws::Vector<Aws::String>& GetDiskIds() const { return m_diskIds; }
52 template<typename DiskIdsT = Aws::Vector<Aws::String>>
53 void SetDiskIds(DiskIdsT&& value) { m_diskIdsHasBeenSet = true; m_diskIds = std::forward<DiskIdsT>(value); }
54 template<typename DiskIdsT = Aws::Vector<Aws::String>>
55 DescribeCacheResult& WithDiskIds(DiskIdsT&& value) { SetDiskIds(std::forward<DiskIdsT>(value)); return *this;}
56 template<typename DiskIdsT = Aws::String>
57 DescribeCacheResult& AddDiskIds(DiskIdsT&& value) { m_diskIdsHasBeenSet = true; m_diskIds.emplace_back(std::forward<DiskIdsT>(value)); return *this; }
59
61
64 inline long long GetCacheAllocatedInBytes() const { return m_cacheAllocatedInBytes; }
65 inline void SetCacheAllocatedInBytes(long long value) { m_cacheAllocatedInBytesHasBeenSet = true; m_cacheAllocatedInBytes = value; }
66 inline DescribeCacheResult& WithCacheAllocatedInBytes(long long value) { SetCacheAllocatedInBytes(value); return *this;}
68
70
75 inline double GetCacheUsedPercentage() const { return m_cacheUsedPercentage; }
76 inline void SetCacheUsedPercentage(double value) { m_cacheUsedPercentageHasBeenSet = true; m_cacheUsedPercentage = value; }
77 inline DescribeCacheResult& WithCacheUsedPercentage(double value) { SetCacheUsedPercentage(value); return *this;}
79
81
86 inline double GetCacheDirtyPercentage() const { return m_cacheDirtyPercentage; }
87 inline void SetCacheDirtyPercentage(double value) { m_cacheDirtyPercentageHasBeenSet = true; m_cacheDirtyPercentage = value; }
88 inline DescribeCacheResult& WithCacheDirtyPercentage(double value) { SetCacheDirtyPercentage(value); return *this;}
90
92
96 inline double GetCacheHitPercentage() const { return m_cacheHitPercentage; }
97 inline void SetCacheHitPercentage(double value) { m_cacheHitPercentageHasBeenSet = true; m_cacheHitPercentage = value; }
98 inline DescribeCacheResult& WithCacheHitPercentage(double value) { SetCacheHitPercentage(value); return *this;}
100
102
106 inline double GetCacheMissPercentage() const { return m_cacheMissPercentage; }
107 inline void SetCacheMissPercentage(double value) { m_cacheMissPercentageHasBeenSet = true; m_cacheMissPercentage = value; }
108 inline DescribeCacheResult& WithCacheMissPercentage(double value) { SetCacheMissPercentage(value); return *this;}
110
112
113 inline const Aws::String& GetRequestId() const { return m_requestId; }
114 template<typename RequestIdT = Aws::String>
115 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
116 template<typename RequestIdT = Aws::String>
117 DescribeCacheResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
119 private:
120
121 Aws::String m_gatewayARN;
122 bool m_gatewayARNHasBeenSet = false;
123
124 Aws::Vector<Aws::String> m_diskIds;
125 bool m_diskIdsHasBeenSet = false;
126
127 long long m_cacheAllocatedInBytes{0};
128 bool m_cacheAllocatedInBytesHasBeenSet = false;
129
130 double m_cacheUsedPercentage{0.0};
131 bool m_cacheUsedPercentageHasBeenSet = false;
132
133 double m_cacheDirtyPercentage{0.0};
134 bool m_cacheDirtyPercentageHasBeenSet = false;
135
136 double m_cacheHitPercentage{0.0};
137 bool m_cacheHitPercentageHasBeenSet = false;
138
139 double m_cacheMissPercentage{0.0};
140 bool m_cacheMissPercentageHasBeenSet = false;
141
142 Aws::String m_requestId;
143 bool m_requestIdHasBeenSet = false;
144 };
145
146} // namespace Model
147} // namespace StorageGateway
148} // namespace Aws
DescribeCacheResult & WithCacheAllocatedInBytes(long long value)
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