AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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
60 inline const ApiCachingBehavior& GetApiCachingBehavior() const{ return m_apiCachingBehavior; }
61 inline bool ApiCachingBehaviorHasBeenSet() const { return m_apiCachingBehaviorHasBeenSet; }
62 inline void SetApiCachingBehavior(const ApiCachingBehavior& value) { m_apiCachingBehaviorHasBeenSet = true; m_apiCachingBehavior = value; }
63 inline void SetApiCachingBehavior(ApiCachingBehavior&& value) { m_apiCachingBehaviorHasBeenSet = true; m_apiCachingBehavior = std::move(value); }
64 inline ApiCache& WithApiCachingBehavior(const ApiCachingBehavior& value) { SetApiCachingBehavior(value); return *this;}
65 inline ApiCache& WithApiCachingBehavior(ApiCachingBehavior&& value) { SetApiCachingBehavior(std::move(value)); return *this;}
67
69
73 inline bool GetTransitEncryptionEnabled() const{ return m_transitEncryptionEnabled; }
74 inline bool TransitEncryptionEnabledHasBeenSet() const { return m_transitEncryptionEnabledHasBeenSet; }
75 inline void SetTransitEncryptionEnabled(bool value) { m_transitEncryptionEnabledHasBeenSet = true; m_transitEncryptionEnabled = value; }
76 inline ApiCache& WithTransitEncryptionEnabled(bool value) { SetTransitEncryptionEnabled(value); return *this;}
78
80
84 inline bool GetAtRestEncryptionEnabled() const{ return m_atRestEncryptionEnabled; }
85 inline bool AtRestEncryptionEnabledHasBeenSet() const { return m_atRestEncryptionEnabledHasBeenSet; }
86 inline void SetAtRestEncryptionEnabled(bool value) { m_atRestEncryptionEnabledHasBeenSet = true; m_atRestEncryptionEnabled = value; }
87 inline ApiCache& WithAtRestEncryptionEnabled(bool value) { SetAtRestEncryptionEnabled(value); return *this;}
89
91
108 inline const ApiCacheType& GetType() const{ return m_type; }
109 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
110 inline void SetType(const ApiCacheType& value) { m_typeHasBeenSet = true; m_type = value; }
111 inline void SetType(ApiCacheType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
112 inline ApiCache& WithType(const ApiCacheType& value) { SetType(value); return *this;}
113 inline ApiCache& WithType(ApiCacheType&& value) { SetType(std::move(value)); return *this;}
115
117
125 inline const ApiCacheStatus& GetStatus() const{ return m_status; }
126 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
127 inline void SetStatus(const ApiCacheStatus& value) { m_statusHasBeenSet = true; m_status = value; }
128 inline void SetStatus(ApiCacheStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
129 inline ApiCache& WithStatus(const ApiCacheStatus& value) { SetStatus(value); return *this;}
130 inline ApiCache& WithStatus(ApiCacheStatus&& value) { SetStatus(std::move(value)); return *this;}
132
134
144 inline const CacheHealthMetricsConfig& GetHealthMetricsConfig() const{ return m_healthMetricsConfig; }
145 inline bool HealthMetricsConfigHasBeenSet() const { return m_healthMetricsConfigHasBeenSet; }
146 inline void SetHealthMetricsConfig(const CacheHealthMetricsConfig& value) { m_healthMetricsConfigHasBeenSet = true; m_healthMetricsConfig = value; }
147 inline void SetHealthMetricsConfig(CacheHealthMetricsConfig&& value) { m_healthMetricsConfigHasBeenSet = true; m_healthMetricsConfig = std::move(value); }
149 inline ApiCache& WithHealthMetricsConfig(CacheHealthMetricsConfig&& value) { SetHealthMetricsConfig(std::move(value)); return *this;}
151 private:
152
153 long long m_ttl;
154 bool m_ttlHasBeenSet = false;
155
156 ApiCachingBehavior m_apiCachingBehavior;
157 bool m_apiCachingBehaviorHasBeenSet = false;
158
159 bool m_transitEncryptionEnabled;
160 bool m_transitEncryptionEnabledHasBeenSet = false;
161
162 bool m_atRestEncryptionEnabled;
163 bool m_atRestEncryptionEnabledHasBeenSet = false;
164
165 ApiCacheType m_type;
166 bool m_typeHasBeenSet = false;
167
168 ApiCacheStatus m_status;
169 bool m_statusHasBeenSet = false;
170
171 CacheHealthMetricsConfig m_healthMetricsConfig;
172 bool m_healthMetricsConfigHasBeenSet = false;
173 };
174
175} // namespace Model
176} // namespace AppSync
177} // namespace Aws
bool GetTransitEncryptionEnabled() const
Definition ApiCache.h:73
ApiCache & WithAtRestEncryptionEnabled(bool value)
Definition ApiCache.h:87
AWS_APPSYNC_API Aws::Utils::Json::JsonValue Jsonize() const
void SetType(ApiCacheType &&value)
Definition ApiCache.h:111
ApiCache & WithHealthMetricsConfig(const CacheHealthMetricsConfig &value)
Definition ApiCache.h:148
bool HealthMetricsConfigHasBeenSet() const
Definition ApiCache.h:145
ApiCache & WithTtl(long long value)
Definition ApiCache.h:51
ApiCache & WithStatus(ApiCacheStatus &&value)
Definition ApiCache.h:130
void SetHealthMetricsConfig(CacheHealthMetricsConfig &&value)
Definition ApiCache.h:147
void SetStatus(const ApiCacheStatus &value)
Definition ApiCache.h:127
const ApiCacheType & GetType() const
Definition ApiCache.h:108
void SetApiCachingBehavior(ApiCachingBehavior &&value)
Definition ApiCache.h:63
void SetStatus(ApiCacheStatus &&value)
Definition ApiCache.h:128
ApiCache & WithType(const ApiCacheType &value)
Definition ApiCache.h:112
ApiCache & WithHealthMetricsConfig(CacheHealthMetricsConfig &&value)
Definition ApiCache.h:149
void SetHealthMetricsConfig(const CacheHealthMetricsConfig &value)
Definition ApiCache.h:146
bool TransitEncryptionEnabledHasBeenSet() const
Definition ApiCache.h:74
void SetAtRestEncryptionEnabled(bool value)
Definition ApiCache.h:86
void SetTtl(long long value)
Definition ApiCache.h:50
AWS_APPSYNC_API ApiCache()
ApiCache & WithType(ApiCacheType &&value)
Definition ApiCache.h:113
AWS_APPSYNC_API ApiCache(Aws::Utils::Json::JsonView jsonValue)
bool GetAtRestEncryptionEnabled() const
Definition ApiCache.h:84
bool AtRestEncryptionEnabledHasBeenSet() const
Definition ApiCache.h:85
ApiCache & WithTransitEncryptionEnabled(bool value)
Definition ApiCache.h:76
bool ApiCachingBehaviorHasBeenSet() const
Definition ApiCache.h:61
void SetTransitEncryptionEnabled(bool value)
Definition ApiCache.h:75
const CacheHealthMetricsConfig & GetHealthMetricsConfig() const
Definition ApiCache.h:144
void SetApiCachingBehavior(const ApiCachingBehavior &value)
Definition ApiCache.h:62
ApiCache & WithApiCachingBehavior(const ApiCachingBehavior &value)
Definition ApiCache.h:64
ApiCache & WithApiCachingBehavior(ApiCachingBehavior &&value)
Definition ApiCache.h:65
const ApiCachingBehavior & GetApiCachingBehavior() const
Definition ApiCache.h:60
AWS_APPSYNC_API ApiCache & operator=(Aws::Utils::Json::JsonView jsonValue)
ApiCache & WithStatus(const ApiCacheStatus &value)
Definition ApiCache.h:129
const ApiCacheStatus & GetStatus() const
Definition ApiCache.h:125
void SetType(const ApiCacheType &value)
Definition ApiCache.h:110
long long GetTtl() const
Definition ApiCache.h:48
Aws::Utils::Json::JsonValue JsonValue