AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ApiCache.h
1
6#pragma once
7#include <aws/appsync/AppSync_EXPORTS.h>
8#include <aws/appsync/model/ApiCachingBehavior.h>
9#include <aws/appsync/model/ApiCacheType.h>
10#include <aws/appsync/model/ApiCacheStatus.h>
11#include <aws/appsync/model/CacheHealthMetricsConfig.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace AppSync
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_APPSYNC_API ApiCache() = default;
38 AWS_APPSYNC_API ApiCache(Aws::Utils::Json::JsonView jsonValue);
39 AWS_APPSYNC_API ApiCache& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_APPSYNC_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline long long GetTtl() const { return m_ttl; }
49 inline bool TtlHasBeenSet() const { return m_ttlHasBeenSet; }
50 inline void SetTtl(long long value) { m_ttlHasBeenSet = true; m_ttl = value; }
51 inline ApiCache& WithTtl(long long value) { SetTtl(value); return *this;}
53
55
63 inline ApiCachingBehavior GetApiCachingBehavior() const { return m_apiCachingBehavior; }
64 inline bool ApiCachingBehaviorHasBeenSet() const { return m_apiCachingBehaviorHasBeenSet; }
65 inline void SetApiCachingBehavior(ApiCachingBehavior value) { m_apiCachingBehaviorHasBeenSet = true; m_apiCachingBehavior = value; }
68
70
74 inline bool GetTransitEncryptionEnabled() const { return m_transitEncryptionEnabled; }
75 inline bool TransitEncryptionEnabledHasBeenSet() const { return m_transitEncryptionEnabledHasBeenSet; }
76 inline void SetTransitEncryptionEnabled(bool value) { m_transitEncryptionEnabledHasBeenSet = true; m_transitEncryptionEnabled = value; }
77 inline ApiCache& WithTransitEncryptionEnabled(bool value) { SetTransitEncryptionEnabled(value); return *this;}
79
81
85 inline bool GetAtRestEncryptionEnabled() const { return m_atRestEncryptionEnabled; }
86 inline bool AtRestEncryptionEnabledHasBeenSet() const { return m_atRestEncryptionEnabledHasBeenSet; }
87 inline void SetAtRestEncryptionEnabled(bool value) { m_atRestEncryptionEnabledHasBeenSet = true; m_atRestEncryptionEnabled = value; }
88 inline ApiCache& WithAtRestEncryptionEnabled(bool value) { SetAtRestEncryptionEnabled(value); return *this;}
90
92
109 inline ApiCacheType GetType() const { return m_type; }
110 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
111 inline void SetType(ApiCacheType value) { m_typeHasBeenSet = true; m_type = value; }
112 inline ApiCache& WithType(ApiCacheType value) { SetType(value); return *this;}
114
116
124 inline ApiCacheStatus GetStatus() const { return m_status; }
125 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
126 inline void SetStatus(ApiCacheStatus value) { m_statusHasBeenSet = true; m_status = value; }
127 inline ApiCache& WithStatus(ApiCacheStatus value) { SetStatus(value); return *this;}
129
131
141 inline CacheHealthMetricsConfig GetHealthMetricsConfig() const { return m_healthMetricsConfig; }
142 inline bool HealthMetricsConfigHasBeenSet() const { return m_healthMetricsConfigHasBeenSet; }
143 inline void SetHealthMetricsConfig(CacheHealthMetricsConfig value) { m_healthMetricsConfigHasBeenSet = true; m_healthMetricsConfig = value; }
146 private:
147
148 long long m_ttl{0};
149 bool m_ttlHasBeenSet = false;
150
152 bool m_apiCachingBehaviorHasBeenSet = false;
153
154 bool m_transitEncryptionEnabled{false};
155 bool m_transitEncryptionEnabledHasBeenSet = false;
156
157 bool m_atRestEncryptionEnabled{false};
158 bool m_atRestEncryptionEnabledHasBeenSet = false;
159
161 bool m_typeHasBeenSet = false;
162
164 bool m_statusHasBeenSet = false;
165
167 bool m_healthMetricsConfigHasBeenSet = false;
168 };
169
170} // namespace Model
171} // namespace AppSync
172} // namespace Aws
CacheHealthMetricsConfig GetHealthMetricsConfig() const
Definition ApiCache.h:141
ApiCache & WithStatus(ApiCacheStatus value)
Definition ApiCache.h:127
bool GetTransitEncryptionEnabled() const
Definition ApiCache.h:74
void SetHealthMetricsConfig(CacheHealthMetricsConfig value)
Definition ApiCache.h:143
ApiCache & WithAtRestEncryptionEnabled(bool value)
Definition ApiCache.h:88
AWS_APPSYNC_API Aws::Utils::Json::JsonValue Jsonize() const
bool HealthMetricsConfigHasBeenSet() const
Definition ApiCache.h:142
ApiCacheType GetType() const
Definition ApiCache.h:109
ApiCache & WithTtl(long long value)
Definition ApiCache.h:51
ApiCache & WithHealthMetricsConfig(CacheHealthMetricsConfig value)
Definition ApiCache.h:144
void SetApiCachingBehavior(ApiCachingBehavior value)
Definition ApiCache.h:65
bool TransitEncryptionEnabledHasBeenSet() const
Definition ApiCache.h:75
void SetAtRestEncryptionEnabled(bool value)
Definition ApiCache.h:87
ApiCache & WithApiCachingBehavior(ApiCachingBehavior value)
Definition ApiCache.h:66
void SetTtl(long long value)
Definition ApiCache.h:50
AWS_APPSYNC_API ApiCache(Aws::Utils::Json::JsonView jsonValue)
void SetType(ApiCacheType value)
Definition ApiCache.h:111
AWS_APPSYNC_API ApiCache()=default
bool GetAtRestEncryptionEnabled() const
Definition ApiCache.h:85
bool AtRestEncryptionEnabledHasBeenSet() const
Definition ApiCache.h:86
ApiCache & WithTransitEncryptionEnabled(bool value)
Definition ApiCache.h:77
bool ApiCachingBehaviorHasBeenSet() const
Definition ApiCache.h:64
void SetTransitEncryptionEnabled(bool value)
Definition ApiCache.h:76
ApiCacheStatus GetStatus() const
Definition ApiCache.h:124
AWS_APPSYNC_API ApiCache & operator=(Aws::Utils::Json::JsonView jsonValue)
ApiCachingBehavior GetApiCachingBehavior() const
Definition ApiCache.h:63
void SetStatus(ApiCacheStatus value)
Definition ApiCache.h:126
ApiCache & WithType(ApiCacheType value)
Definition ApiCache.h:112
long long GetTtl() const
Definition ApiCache.h:48
Aws::Utils::Json::JsonValue JsonValue