AWS SDK for C++

AWS SDK for C++ Version 1.11.927

Loading...
Searching...
No Matches
CacheAttributes.h
1
6#pragma once
7#include <aws/storagegateway/StorageGateway_EXPORTS.h>
8
9namespace Aws {
10namespace Utils {
11namespace Json {
12class JsonValue;
13class JsonView;
14} // namespace Json
15} // namespace Utils
16namespace StorageGateway {
17namespace Model {
18
26 public:
27 AWS_STORAGEGATEWAY_API CacheAttributes() = default;
28 AWS_STORAGEGATEWAY_API CacheAttributes(Aws::Utils::Json::JsonView jsonValue);
29 AWS_STORAGEGATEWAY_API CacheAttributes& operator=(Aws::Utils::Json::JsonView jsonValue);
30 AWS_STORAGEGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const;
31
33
40 inline int GetCacheStaleTimeoutInSeconds() const { return m_cacheStaleTimeoutInSeconds; }
41 inline bool CacheStaleTimeoutInSecondsHasBeenSet() const { return m_cacheStaleTimeoutInSecondsHasBeenSet; }
42 inline void SetCacheStaleTimeoutInSeconds(int value) {
43 m_cacheStaleTimeoutInSecondsHasBeenSet = true;
44 m_cacheStaleTimeoutInSeconds = value;
45 }
48 return *this;
49 }
51 private:
52 int m_cacheStaleTimeoutInSeconds{0};
53 bool m_cacheStaleTimeoutInSecondsHasBeenSet = false;
54};
55
56} // namespace Model
57} // namespace StorageGateway
58} // namespace Aws
AWS_STORAGEGATEWAY_API CacheAttributes & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_STORAGEGATEWAY_API CacheAttributes()=default
CacheAttributes & WithCacheStaleTimeoutInSeconds(int value)
AWS_STORAGEGATEWAY_API CacheAttributes(Aws::Utils::Json::JsonView jsonValue)
AWS_STORAGEGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonValue JsonValue