AWS SDK for C++  1.9.159
AWS SDK for C++
CachingConfig.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace AppSync
23 {
24 namespace Model
25 {
26 
34  {
35  public:
40 
41 
46  inline long long GetTtl() const{ return m_ttl; }
47 
52  inline bool TtlHasBeenSet() const { return m_ttlHasBeenSet; }
53 
58  inline void SetTtl(long long value) { m_ttlHasBeenSet = true; m_ttl = value; }
59 
64  inline CachingConfig& WithTtl(long long value) { SetTtl(value); return *this;}
65 
66 
72  inline const Aws::Vector<Aws::String>& GetCachingKeys() const{ return m_cachingKeys; }
73 
79  inline bool CachingKeysHasBeenSet() const { return m_cachingKeysHasBeenSet; }
80 
86  inline void SetCachingKeys(const Aws::Vector<Aws::String>& value) { m_cachingKeysHasBeenSet = true; m_cachingKeys = value; }
87 
93  inline void SetCachingKeys(Aws::Vector<Aws::String>&& value) { m_cachingKeysHasBeenSet = true; m_cachingKeys = std::move(value); }
94 
100  inline CachingConfig& WithCachingKeys(const Aws::Vector<Aws::String>& value) { SetCachingKeys(value); return *this;}
101 
107  inline CachingConfig& WithCachingKeys(Aws::Vector<Aws::String>&& value) { SetCachingKeys(std::move(value)); return *this;}
108 
114  inline CachingConfig& AddCachingKeys(const Aws::String& value) { m_cachingKeysHasBeenSet = true; m_cachingKeys.push_back(value); return *this; }
115 
121  inline CachingConfig& AddCachingKeys(Aws::String&& value) { m_cachingKeysHasBeenSet = true; m_cachingKeys.push_back(std::move(value)); return *this; }
122 
128  inline CachingConfig& AddCachingKeys(const char* value) { m_cachingKeysHasBeenSet = true; m_cachingKeys.push_back(value); return *this; }
129 
130  private:
131 
132  long long m_ttl;
133  bool m_ttlHasBeenSet;
134 
135  Aws::Vector<Aws::String> m_cachingKeys;
136  bool m_cachingKeysHasBeenSet;
137  };
138 
139 } // namespace Model
140 } // namespace AppSync
141 } // namespace Aws
Aws::AppSync::Model::CachingConfig::AddCachingKeys
CachingConfig & AddCachingKeys(const Aws::String &value)
Definition: CachingConfig.h:114
Aws::AppSync::Model::CachingConfig::GetTtl
long long GetTtl() const
Definition: CachingConfig.h:46
Aws::AppSync::Model::CachingConfig::GetCachingKeys
const Aws::Vector< Aws::String > & GetCachingKeys() const
Definition: CachingConfig.h:72
Aws::AppSync::Model::CachingConfig::operator=
CachingConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::AppSync::Model::CachingConfig::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::AppSync::Model::CachingConfig::WithCachingKeys
CachingConfig & WithCachingKeys(Aws::Vector< Aws::String > &&value)
Definition: CachingConfig.h:107
Aws::AppSync::Model::CachingConfig::WithTtl
CachingConfig & WithTtl(long long value)
Definition: CachingConfig.h:64
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AppSync_EXPORTS.h
AWSVector.h
Aws::AppSync::Model::CachingConfig::CachingKeysHasBeenSet
bool CachingKeysHasBeenSet() const
Definition: CachingConfig.h:79
Aws::AppSync::Model::CachingConfig::TtlHasBeenSet
bool TtlHasBeenSet() const
Definition: CachingConfig.h:52
Aws::AppSync::Model::CachingConfig::WithCachingKeys
CachingConfig & WithCachingKeys(const Aws::Vector< Aws::String > &value)
Definition: CachingConfig.h:100
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::AppSync::Model::CachingConfig
Definition: CachingConfig.h:34
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws::AppSync::Model::CachingConfig::SetTtl
void SetTtl(long long value)
Definition: CachingConfig.h:58
Aws
Definition: AccessManagementClient.h:15
Aws::AppSync::Model::CachingConfig::SetCachingKeys
void SetCachingKeys(const Aws::Vector< Aws::String > &value)
Definition: CachingConfig.h:86
Aws::AppSync::Model::CachingConfig::AddCachingKeys
CachingConfig & AddCachingKeys(Aws::String &&value)
Definition: CachingConfig.h:121
AWS_APPSYNC_API
#define AWS_APPSYNC_API
Definition: AppSync_EXPORTS.h:28
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::AppSync::Model::CachingConfig::CachingConfig
CachingConfig(Aws::Utils::Json::JsonView jsonValue)
Aws::AppSync::Model::CachingConfig::AddCachingKeys
CachingConfig & AddCachingKeys(const char *value)
Definition: CachingConfig.h:128
Aws::AppSync::Model::CachingConfig::CachingConfig
CachingConfig()
Aws::AppSync::Model::CachingConfig::SetCachingKeys
void SetCachingKeys(Aws::Vector< Aws::String > &&value)
Definition: CachingConfig.h:93