AWS SDK for C++  1.9.129
AWS SDK for C++
CacheAttributes.h
Go to the documentation of this file.
1 
6 #pragma once
8 
9 namespace Aws
10 {
11 namespace Utils
12 {
13 namespace Json
14 {
15  class JsonValue;
16  class JsonView;
17 } // namespace Json
18 } // namespace Utils
19 namespace StorageGateway
20 {
21 namespace Model
22 {
23 
31  {
32  public:
37 
38 
46  inline int GetCacheStaleTimeoutInSeconds() const{ return m_cacheStaleTimeoutInSeconds; }
47 
55  inline bool CacheStaleTimeoutInSecondsHasBeenSet() const { return m_cacheStaleTimeoutInSecondsHasBeenSet; }
56 
64  inline void SetCacheStaleTimeoutInSeconds(int value) { m_cacheStaleTimeoutInSecondsHasBeenSet = true; m_cacheStaleTimeoutInSeconds = value; }
65 
73  inline CacheAttributes& WithCacheStaleTimeoutInSeconds(int value) { SetCacheStaleTimeoutInSeconds(value); return *this;}
74 
75  private:
76 
77  int m_cacheStaleTimeoutInSeconds;
78  bool m_cacheStaleTimeoutInSecondsHasBeenSet;
79  };
80 
81 } // namespace Model
82 } // namespace StorageGateway
83 } // namespace Aws
Aws::StorageGateway::Model::CacheAttributes::CacheAttributes
CacheAttributes(Aws::Utils::Json::JsonView jsonValue)
Aws::StorageGateway::Model::CacheAttributes::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::StorageGateway::Model::CacheAttributes::CacheAttributes
CacheAttributes()
Aws::StorageGateway::Model::CacheAttributes::operator=
CacheAttributes & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
AWS_STORAGEGATEWAY_API
#define AWS_STORAGEGATEWAY_API
Definition: StorageGateway_EXPORTS.h:28
Aws::StorageGateway::Model::CacheAttributes
Definition: CacheAttributes.h:31
Aws::StorageGateway::Model::CacheAttributes::SetCacheStaleTimeoutInSeconds
void SetCacheStaleTimeoutInSeconds(int value)
Definition: CacheAttributes.h:64
Aws::StorageGateway::Model::CacheAttributes::WithCacheStaleTimeoutInSeconds
CacheAttributes & WithCacheStaleTimeoutInSeconds(int value)
Definition: CacheAttributes.h:73
Aws
Definition: AccessManagementClient.h:15
Aws::StorageGateway::Model::CacheAttributes::CacheStaleTimeoutInSecondsHasBeenSet
bool CacheStaleTimeoutInSecondsHasBeenSet() const
Definition: CacheAttributes.h:55
StorageGateway_EXPORTS.h
Aws::StorageGateway::Model::CacheAttributes::GetCacheStaleTimeoutInSeconds
int GetCacheStaleTimeoutInSeconds() const
Definition: CacheAttributes.h:46