AWS SDK for C++  0.12.9
AWS SDK for C++
DescribeCacheResult.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
19 
20 namespace Aws
21 {
22 template<typename RESULT_TYPE>
23 class AmazonWebServiceResult;
24 
25 namespace Utils
26 {
27 namespace Json
28 {
29  class JsonValue;
30 } // namespace Json
31 } // namespace Utils
32 namespace StorageGateway
33 {
34 namespace Model
35 {
37  {
38  public:
42 
43 
44  inline const Aws::String& GetGatewayARN() const{ return m_gatewayARN; }
45 
46 
47  inline void SetGatewayARN(const Aws::String& value) { m_gatewayARN = value; }
48 
49 
50  inline void SetGatewayARN(Aws::String&& value) { m_gatewayARN = value; }
51 
52 
53  inline void SetGatewayARN(const char* value) { m_gatewayARN.assign(value); }
54 
55 
56  inline DescribeCacheResult& WithGatewayARN(const Aws::String& value) { SetGatewayARN(value); return *this;}
57 
58 
59  inline DescribeCacheResult& WithGatewayARN(Aws::String&& value) { SetGatewayARN(value); return *this;}
60 
61 
62  inline DescribeCacheResult& WithGatewayARN(const char* value) { SetGatewayARN(value); return *this;}
63 
64 
65  inline const Aws::Vector<Aws::String>& GetDiskIds() const{ return m_diskIds; }
66 
67 
68  inline void SetDiskIds(const Aws::Vector<Aws::String>& value) { m_diskIds = value; }
69 
70 
71  inline void SetDiskIds(Aws::Vector<Aws::String>&& value) { m_diskIds = value; }
72 
73 
74  inline DescribeCacheResult& WithDiskIds(const Aws::Vector<Aws::String>& value) { SetDiskIds(value); return *this;}
75 
76 
77  inline DescribeCacheResult& WithDiskIds(Aws::Vector<Aws::String>&& value) { SetDiskIds(value); return *this;}
78 
79 
80  inline DescribeCacheResult& AddDiskIds(const Aws::String& value) { m_diskIds.push_back(value); return *this; }
81 
82 
83  inline DescribeCacheResult& AddDiskIds(Aws::String&& value) { m_diskIds.push_back(value); return *this; }
84 
85 
86  inline DescribeCacheResult& AddDiskIds(const char* value) { m_diskIds.push_back(value); return *this; }
87 
88 
89  inline long long GetCacheAllocatedInBytes() const{ return m_cacheAllocatedInBytes; }
90 
91 
92  inline void SetCacheAllocatedInBytes(long long value) { m_cacheAllocatedInBytes = value; }
93 
94 
95  inline DescribeCacheResult& WithCacheAllocatedInBytes(long long value) { SetCacheAllocatedInBytes(value); return *this;}
96 
97 
98  inline double GetCacheUsedPercentage() const{ return m_cacheUsedPercentage; }
99 
100 
101  inline void SetCacheUsedPercentage(double value) { m_cacheUsedPercentage = value; }
102 
103 
104  inline DescribeCacheResult& WithCacheUsedPercentage(double value) { SetCacheUsedPercentage(value); return *this;}
105 
106 
107  inline double GetCacheDirtyPercentage() const{ return m_cacheDirtyPercentage; }
108 
109 
110  inline void SetCacheDirtyPercentage(double value) { m_cacheDirtyPercentage = value; }
111 
112 
113  inline DescribeCacheResult& WithCacheDirtyPercentage(double value) { SetCacheDirtyPercentage(value); return *this;}
114 
115 
116  inline double GetCacheHitPercentage() const{ return m_cacheHitPercentage; }
117 
118 
119  inline void SetCacheHitPercentage(double value) { m_cacheHitPercentage = value; }
120 
121 
122  inline DescribeCacheResult& WithCacheHitPercentage(double value) { SetCacheHitPercentage(value); return *this;}
123 
124 
125  inline double GetCacheMissPercentage() const{ return m_cacheMissPercentage; }
126 
127 
128  inline void SetCacheMissPercentage(double value) { m_cacheMissPercentage = value; }
129 
130 
131  inline DescribeCacheResult& WithCacheMissPercentage(double value) { SetCacheMissPercentage(value); return *this;}
132 
133  private:
134  Aws::String m_gatewayARN;
135  Aws::Vector<Aws::String> m_diskIds;
136  long long m_cacheAllocatedInBytes;
137  double m_cacheUsedPercentage;
138  double m_cacheDirtyPercentage;
139  double m_cacheHitPercentage;
140  double m_cacheMissPercentage;
141  };
142 
143 } // namespace Model
144 } // namespace StorageGateway
145 } // namespace Aws
DescribeCacheResult & WithCacheAllocatedInBytes(long long value)
DescribeCacheResult & WithDiskIds(Aws::Vector< Aws::String > &&value)
DescribeCacheResult & WithGatewayARN(const char *value)
DescribeCacheResult & WithCacheDirtyPercentage(double value)
DescribeCacheResult & WithGatewayARN(const Aws::String &value)
DescribeCacheResult & WithDiskIds(const Aws::Vector< Aws::String > &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
DescribeCacheResult & AddDiskIds(const char *value)
DescribeCacheResult & AddDiskIds(const Aws::String &value)
void SetDiskIds(const Aws::Vector< Aws::String > &value)
DescribeCacheResult & WithGatewayARN(Aws::String &&value)
DescribeCacheResult & AddDiskIds(Aws::String &&value)
void SetDiskIds(Aws::Vector< Aws::String > &&value)
DescribeCacheResult & WithCacheUsedPercentage(double value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
DescribeCacheResult & WithCacheMissPercentage(double value)
const Aws::Vector< Aws::String > & GetDiskIds() const
DescribeCacheResult & WithCacheHitPercentage(double value)
#define AWS_STORAGEGATEWAY_API
JSON (JavaScript Object Notation).