AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateApiCacheRequest.h
1
6#pragma once
7#include <aws/appsync/AppSync_EXPORTS.h>
8#include <aws/appsync/AppSyncRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/appsync/model/ApiCachingBehavior.h>
11#include <aws/appsync/model/ApiCacheType.h>
12#include <aws/appsync/model/CacheHealthMetricsConfig.h>
13#include <utility>
14
15namespace Aws
16{
17namespace AppSync
18{
19namespace Model
20{
21
29 {
30 public:
31 AWS_APPSYNC_API CreateApiCacheRequest();
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "CreateApiCache"; }
38
39 AWS_APPSYNC_API Aws::String SerializePayload() const override;
40
41
43
46 inline const Aws::String& GetApiId() const{ return m_apiId; }
47 inline bool ApiIdHasBeenSet() const { return m_apiIdHasBeenSet; }
48 inline void SetApiId(const Aws::String& value) { m_apiIdHasBeenSet = true; m_apiId = value; }
49 inline void SetApiId(Aws::String&& value) { m_apiIdHasBeenSet = true; m_apiId = std::move(value); }
50 inline void SetApiId(const char* value) { m_apiIdHasBeenSet = true; m_apiId.assign(value); }
51 inline CreateApiCacheRequest& WithApiId(const Aws::String& value) { SetApiId(value); return *this;}
52 inline CreateApiCacheRequest& WithApiId(Aws::String&& value) { SetApiId(std::move(value)); return *this;}
53 inline CreateApiCacheRequest& WithApiId(const char* value) { SetApiId(value); return *this;}
55
57
61 inline long long GetTtl() const{ return m_ttl; }
62 inline bool TtlHasBeenSet() const { return m_ttlHasBeenSet; }
63 inline void SetTtl(long long value) { m_ttlHasBeenSet = true; m_ttl = value; }
64 inline CreateApiCacheRequest& WithTtl(long long value) { SetTtl(value); return *this;}
66
68
72 inline bool GetTransitEncryptionEnabled() const{ return m_transitEncryptionEnabled; }
73 inline bool TransitEncryptionEnabledHasBeenSet() const { return m_transitEncryptionEnabledHasBeenSet; }
74 inline void SetTransitEncryptionEnabled(bool value) { m_transitEncryptionEnabledHasBeenSet = true; m_transitEncryptionEnabled = value; }
77
79
83 inline bool GetAtRestEncryptionEnabled() const{ return m_atRestEncryptionEnabled; }
84 inline bool AtRestEncryptionEnabledHasBeenSet() const { return m_atRestEncryptionEnabledHasBeenSet; }
85 inline void SetAtRestEncryptionEnabled(bool value) { m_atRestEncryptionEnabledHasBeenSet = true; m_atRestEncryptionEnabled = value; }
88
90
95 inline const ApiCachingBehavior& GetApiCachingBehavior() const{ return m_apiCachingBehavior; }
96 inline bool ApiCachingBehaviorHasBeenSet() const { return m_apiCachingBehaviorHasBeenSet; }
97 inline void SetApiCachingBehavior(const ApiCachingBehavior& value) { m_apiCachingBehaviorHasBeenSet = true; m_apiCachingBehavior = value; }
98 inline void SetApiCachingBehavior(ApiCachingBehavior&& value) { m_apiCachingBehaviorHasBeenSet = true; m_apiCachingBehavior = std::move(value); }
102
104
121 inline const ApiCacheType& GetType() const{ return m_type; }
122 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
123 inline void SetType(const ApiCacheType& value) { m_typeHasBeenSet = true; m_type = value; }
124 inline void SetType(ApiCacheType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
125 inline CreateApiCacheRequest& WithType(const ApiCacheType& value) { SetType(value); return *this;}
126 inline CreateApiCacheRequest& WithType(ApiCacheType&& value) { SetType(std::move(value)); return *this;}
128
130
140 inline const CacheHealthMetricsConfig& GetHealthMetricsConfig() const{ return m_healthMetricsConfig; }
141 inline bool HealthMetricsConfigHasBeenSet() const { return m_healthMetricsConfigHasBeenSet; }
142 inline void SetHealthMetricsConfig(const CacheHealthMetricsConfig& value) { m_healthMetricsConfigHasBeenSet = true; m_healthMetricsConfig = value; }
143 inline void SetHealthMetricsConfig(CacheHealthMetricsConfig&& value) { m_healthMetricsConfigHasBeenSet = true; m_healthMetricsConfig = std::move(value); }
147 private:
148
149 Aws::String m_apiId;
150 bool m_apiIdHasBeenSet = false;
151
152 long long m_ttl;
153 bool m_ttlHasBeenSet = false;
154
155 bool m_transitEncryptionEnabled;
156 bool m_transitEncryptionEnabledHasBeenSet = false;
157
158 bool m_atRestEncryptionEnabled;
159 bool m_atRestEncryptionEnabledHasBeenSet = false;
160
161 ApiCachingBehavior m_apiCachingBehavior;
162 bool m_apiCachingBehaviorHasBeenSet = false;
163
164 ApiCacheType m_type;
165 bool m_typeHasBeenSet = false;
166
167 CacheHealthMetricsConfig m_healthMetricsConfig;
168 bool m_healthMetricsConfigHasBeenSet = false;
169 };
170
171} // namespace Model
172} // namespace AppSync
173} // namespace Aws
CreateApiCacheRequest & WithApiCachingBehavior(const ApiCachingBehavior &value)
virtual const char * GetServiceRequestName() const override
CreateApiCacheRequest & WithHealthMetricsConfig(const CacheHealthMetricsConfig &value)
void SetApiCachingBehavior(ApiCachingBehavior &&value)
const CacheHealthMetricsConfig & GetHealthMetricsConfig() const
CreateApiCacheRequest & WithApiId(const Aws::String &value)
void SetApiCachingBehavior(const ApiCachingBehavior &value)
CreateApiCacheRequest & WithTtl(long long value)
CreateApiCacheRequest & WithApiId(const char *value)
CreateApiCacheRequest & WithAtRestEncryptionEnabled(bool value)
const ApiCachingBehavior & GetApiCachingBehavior() const
CreateApiCacheRequest & WithType(ApiCacheType &&value)
AWS_APPSYNC_API Aws::String SerializePayload() const override
CreateApiCacheRequest & WithApiCachingBehavior(ApiCachingBehavior &&value)
void SetHealthMetricsConfig(const CacheHealthMetricsConfig &value)
CreateApiCacheRequest & WithType(const ApiCacheType &value)
CreateApiCacheRequest & WithTransitEncryptionEnabled(bool value)
void SetHealthMetricsConfig(CacheHealthMetricsConfig &&value)
CreateApiCacheRequest & WithHealthMetricsConfig(CacheHealthMetricsConfig &&value)
CreateApiCacheRequest & WithApiId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String