AWS SDK for C++  1.9.159
AWS SDK for C++
ApiCache.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace AppSync
24 {
25 namespace Model
26 {
27 
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 ApiCache& WithTtl(long long value) { SetTtl(value); return *this;}
65 
66 
72  inline const ApiCachingBehavior& GetApiCachingBehavior() const{ return m_apiCachingBehavior; }
73 
79  inline bool ApiCachingBehaviorHasBeenSet() const { return m_apiCachingBehaviorHasBeenSet; }
80 
86  inline void SetApiCachingBehavior(const ApiCachingBehavior& value) { m_apiCachingBehaviorHasBeenSet = true; m_apiCachingBehavior = value; }
87 
93  inline void SetApiCachingBehavior(ApiCachingBehavior&& value) { m_apiCachingBehaviorHasBeenSet = true; m_apiCachingBehavior = std::move(value); }
94 
100  inline ApiCache& WithApiCachingBehavior(const ApiCachingBehavior& value) { SetApiCachingBehavior(value); return *this;}
101 
107  inline ApiCache& WithApiCachingBehavior(ApiCachingBehavior&& value) { SetApiCachingBehavior(std::move(value)); return *this;}
108 
109 
114  inline bool GetTransitEncryptionEnabled() const{ return m_transitEncryptionEnabled; }
115 
120  inline bool TransitEncryptionEnabledHasBeenSet() const { return m_transitEncryptionEnabledHasBeenSet; }
121 
126  inline void SetTransitEncryptionEnabled(bool value) { m_transitEncryptionEnabledHasBeenSet = true; m_transitEncryptionEnabled = value; }
127 
132  inline ApiCache& WithTransitEncryptionEnabled(bool value) { SetTransitEncryptionEnabled(value); return *this;}
133 
134 
139  inline bool GetAtRestEncryptionEnabled() const{ return m_atRestEncryptionEnabled; }
140 
145  inline bool AtRestEncryptionEnabledHasBeenSet() const { return m_atRestEncryptionEnabledHasBeenSet; }
146 
151  inline void SetAtRestEncryptionEnabled(bool value) { m_atRestEncryptionEnabledHasBeenSet = true; m_atRestEncryptionEnabled = value; }
152 
157  inline ApiCache& WithAtRestEncryptionEnabled(bool value) { SetAtRestEncryptionEnabled(value); return *this;}
158 
159 
177  inline const ApiCacheType& GetType() const{ return m_type; }
178 
196  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
197 
215  inline void SetType(const ApiCacheType& value) { m_typeHasBeenSet = true; m_type = value; }
216 
234  inline void SetType(ApiCacheType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
235 
253  inline ApiCache& WithType(const ApiCacheType& value) { SetType(value); return *this;}
254 
272  inline ApiCache& WithType(ApiCacheType&& value) { SetType(std::move(value)); return *this;}
273 
274 
283  inline const ApiCacheStatus& GetStatus() const{ return m_status; }
284 
293  inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
294 
303  inline void SetStatus(const ApiCacheStatus& value) { m_statusHasBeenSet = true; m_status = value; }
304 
313  inline void SetStatus(ApiCacheStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
314 
323  inline ApiCache& WithStatus(const ApiCacheStatus& value) { SetStatus(value); return *this;}
324 
333  inline ApiCache& WithStatus(ApiCacheStatus&& value) { SetStatus(std::move(value)); return *this;}
334 
335  private:
336 
337  long long m_ttl;
338  bool m_ttlHasBeenSet;
339 
340  ApiCachingBehavior m_apiCachingBehavior;
341  bool m_apiCachingBehaviorHasBeenSet;
342 
343  bool m_transitEncryptionEnabled;
344  bool m_transitEncryptionEnabledHasBeenSet;
345 
346  bool m_atRestEncryptionEnabled;
347  bool m_atRestEncryptionEnabledHasBeenSet;
348 
349  ApiCacheType m_type;
350  bool m_typeHasBeenSet;
351 
352  ApiCacheStatus m_status;
353  bool m_statusHasBeenSet;
354  };
355 
356 } // namespace Model
357 } // namespace AppSync
358 } // namespace Aws
Aws::AppSync::Model::ApiCache::SetTtl
void SetTtl(long long value)
Definition: ApiCache.h:58
Aws::AppSync::Model::ApiCache::StatusHasBeenSet
bool StatusHasBeenSet() const
Definition: ApiCache.h:293
Aws::AppSync::Model::ApiCache::ApiCache
ApiCache(Aws::Utils::Json::JsonView jsonValue)
Aws::AppSync::Model::ApiCache::SetTransitEncryptionEnabled
void SetTransitEncryptionEnabled(bool value)
Definition: ApiCache.h:126
Aws::AppSync::Model::ApiCache::WithApiCachingBehavior
ApiCache & WithApiCachingBehavior(ApiCachingBehavior &&value)
Definition: ApiCache.h:107
Aws::AppSync::Model::ApiCache::WithStatus
ApiCache & WithStatus(ApiCacheStatus &&value)
Definition: ApiCache.h:333
Aws::AppSync::Model::ApiCache::SetAtRestEncryptionEnabled
void SetAtRestEncryptionEnabled(bool value)
Definition: ApiCache.h:151
Aws::AppSync::Model::ApiCache::TransitEncryptionEnabledHasBeenSet
bool TransitEncryptionEnabledHasBeenSet() const
Definition: ApiCache.h:120
Aws::AppSync::Model::ApiCache
Definition: ApiCache.h:34
Aws::AppSync::Model::ApiCache::WithType
ApiCache & WithType(const ApiCacheType &value)
Definition: ApiCache.h:253
Aws::AppSync::Model::ApiCache::operator=
ApiCache & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::AppSync::Model::ApiCache::SetStatus
void SetStatus(ApiCacheStatus &&value)
Definition: ApiCache.h:313
Aws::AppSync::Model::ApiCache::TtlHasBeenSet
bool TtlHasBeenSet() const
Definition: ApiCache.h:52
Aws::AppSync::Model::ApiCache::WithTransitEncryptionEnabled
ApiCache & WithTransitEncryptionEnabled(bool value)
Definition: ApiCache.h:132
AppSync_EXPORTS.h
Aws::AppSync::Model::ApiCache::ApiCache
ApiCache()
Aws::AppSync::Model::ApiCacheType
ApiCacheType
Definition: ApiCacheType.h:17
Aws::AppSync::Model::ApiCache::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::AppSync::Model::ApiCache::AtRestEncryptionEnabledHasBeenSet
bool AtRestEncryptionEnabledHasBeenSet() const
Definition: ApiCache.h:145
Aws::AppSync::Model::ApiCache::GetApiCachingBehavior
const ApiCachingBehavior & GetApiCachingBehavior() const
Definition: ApiCache.h:72
Aws::AppSync::Model::ApiCache::GetTransitEncryptionEnabled
bool GetTransitEncryptionEnabled() const
Definition: ApiCache.h:114
Aws::AppSync::Model::ApiCache::GetTtl
long long GetTtl() const
Definition: ApiCache.h:46
Aws::AppSync::Model::ApiCache::SetApiCachingBehavior
void SetApiCachingBehavior(ApiCachingBehavior &&value)
Definition: ApiCache.h:93
Aws::AppSync::Model::ApiCache::SetStatus
void SetStatus(const ApiCacheStatus &value)
Definition: ApiCache.h:303
Aws::AppSync::Model::ApiCache::GetType
const ApiCacheType & GetType() const
Definition: ApiCache.h:177
Aws::AppSync::Model::ApiCache::ApiCachingBehaviorHasBeenSet
bool ApiCachingBehaviorHasBeenSet() const
Definition: ApiCache.h:79
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::AppSync::Model::ApiCache::GetAtRestEncryptionEnabled
bool GetAtRestEncryptionEnabled() const
Definition: ApiCache.h:139
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::AppSync::Model::ApiCache::WithStatus
ApiCache & WithStatus(const ApiCacheStatus &value)
Definition: ApiCache.h:323
Aws::AppSync::Model::ApiCache::WithTtl
ApiCache & WithTtl(long long value)
Definition: ApiCache.h:64
Aws::AppSync::Model::ApiCache::SetType
void SetType(ApiCacheType &&value)
Definition: ApiCache.h:234
ApiCacheStatus.h
Aws::AppSync::Model::ApiCache::GetStatus
const ApiCacheStatus & GetStatus() const
Definition: ApiCache.h:283
Aws::AppSync::Model::ApiCache::WithType
ApiCache & WithType(ApiCacheType &&value)
Definition: ApiCache.h:272
Aws::AppSync::Model::ApiCache::WithApiCachingBehavior
ApiCache & WithApiCachingBehavior(const ApiCachingBehavior &value)
Definition: ApiCache.h:100
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
AWS_APPSYNC_API
#define AWS_APPSYNC_API
Definition: AppSync_EXPORTS.h:28
ApiCacheType.h
ApiCachingBehavior.h
Aws::AppSync::Model::ApiCache::WithAtRestEncryptionEnabled
ApiCache & WithAtRestEncryptionEnabled(bool value)
Definition: ApiCache.h:157
Aws::AppSync::Model::ApiCacheStatus
ApiCacheStatus
Definition: ApiCacheStatus.h:17
Aws::AppSync::Model::ApiCache::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: ApiCache.h:196
Aws::AppSync::Model::ApiCache::SetApiCachingBehavior
void SetApiCachingBehavior(const ApiCachingBehavior &value)
Definition: ApiCache.h:86
Aws::AppSync::Model::ApiCachingBehavior
ApiCachingBehavior
Definition: ApiCachingBehavior.h:17
Aws::AppSync::Model::ApiCache::SetType
void SetType(const ApiCacheType &value)
Definition: ApiCache.h:215