AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
CachingConfig.h
1
6#pragma once
7#include <aws/appsync/AppSync_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace AppSync
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_APPSYNC_API CachingConfig() = default;
37 AWS_APPSYNC_API CachingConfig(Aws::Utils::Json::JsonView jsonValue);
39 AWS_APPSYNC_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline long long GetTtl() const { return m_ttl; }
48 inline bool TtlHasBeenSet() const { return m_ttlHasBeenSet; }
49 inline void SetTtl(long long value) { m_ttlHasBeenSet = true; m_ttl = value; }
50 inline CachingConfig& WithTtl(long long value) { SetTtl(value); return *this;}
52
54
59 inline const Aws::Vector<Aws::String>& GetCachingKeys() const { return m_cachingKeys; }
60 inline bool CachingKeysHasBeenSet() const { return m_cachingKeysHasBeenSet; }
61 template<typename CachingKeysT = Aws::Vector<Aws::String>>
62 void SetCachingKeys(CachingKeysT&& value) { m_cachingKeysHasBeenSet = true; m_cachingKeys = std::forward<CachingKeysT>(value); }
63 template<typename CachingKeysT = Aws::Vector<Aws::String>>
64 CachingConfig& WithCachingKeys(CachingKeysT&& value) { SetCachingKeys(std::forward<CachingKeysT>(value)); return *this;}
65 template<typename CachingKeysT = Aws::String>
66 CachingConfig& AddCachingKeys(CachingKeysT&& value) { m_cachingKeysHasBeenSet = true; m_cachingKeys.emplace_back(std::forward<CachingKeysT>(value)); return *this; }
68 private:
69
70 long long m_ttl{0};
71 bool m_ttlHasBeenSet = false;
72
73 Aws::Vector<Aws::String> m_cachingKeys;
74 bool m_cachingKeysHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace AppSync
79} // namespace Aws
AWS_APPSYNC_API CachingConfig()=default
CachingConfig & WithCachingKeys(CachingKeysT &&value)
AWS_APPSYNC_API CachingConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetCachingKeys() const
void SetCachingKeys(CachingKeysT &&value)
AWS_APPSYNC_API Aws::Utils::Json::JsonValue Jsonize() const
CachingConfig & WithTtl(long long value)
AWS_APPSYNC_API CachingConfig(Aws::Utils::Json::JsonView jsonValue)
CachingConfig & AddCachingKeys(CachingKeysT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue