AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetCachingKeys(const Aws::Vector<Aws::String>& value) { m_cachingKeysHasBeenSet = true; m_cachingKeys = value; }
62 inline void SetCachingKeys(Aws::Vector<Aws::String>&& value) { m_cachingKeysHasBeenSet = true; m_cachingKeys = std::move(value); }
63 inline CachingConfig& WithCachingKeys(const Aws::Vector<Aws::String>& value) { SetCachingKeys(value); return *this;}
64 inline CachingConfig& WithCachingKeys(Aws::Vector<Aws::String>&& value) { SetCachingKeys(std::move(value)); return *this;}
65 inline CachingConfig& AddCachingKeys(const Aws::String& value) { m_cachingKeysHasBeenSet = true; m_cachingKeys.push_back(value); return *this; }
66 inline CachingConfig& AddCachingKeys(Aws::String&& value) { m_cachingKeysHasBeenSet = true; m_cachingKeys.push_back(std::move(value)); return *this; }
67 inline CachingConfig& AddCachingKeys(const char* value) { m_cachingKeysHasBeenSet = true; m_cachingKeys.push_back(value); return *this; }
69 private:
70
71 long long m_ttl;
72 bool m_ttlHasBeenSet = false;
73
74 Aws::Vector<Aws::String> m_cachingKeys;
75 bool m_cachingKeysHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace AppSync
80} // namespace Aws
CachingConfig & WithCachingKeys(const Aws::Vector< Aws::String > &value)
CachingConfig & AddCachingKeys(Aws::String &&value)
void SetCachingKeys(const Aws::Vector< Aws::String > &value)
CachingConfig & WithCachingKeys(Aws::Vector< Aws::String > &&value)
AWS_APPSYNC_API CachingConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
CachingConfig & AddCachingKeys(const char *value)
const Aws::Vector< Aws::String > & GetCachingKeys() const
AWS_APPSYNC_API Aws::Utils::Json::JsonValue Jsonize() const
void SetCachingKeys(Aws::Vector< Aws::String > &&value)
CachingConfig & WithTtl(long long value)
AWS_APPSYNC_API CachingConfig(Aws::Utils::Json::JsonView jsonValue)
CachingConfig & AddCachingKeys(const Aws::String &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