7#include <aws/appsync/AppSyncRequest.h>
8#include <aws/appsync/AppSync_EXPORTS.h>
9#include <aws/appsync/model/ApiCacheType.h>
10#include <aws/appsync/model/ApiCachingBehavior.h>
11#include <aws/appsync/model/CacheHealthMetricsConfig.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
44 template <
typename ApiIdT = Aws::String>
46 m_apiIdHasBeenSet =
true;
47 m_apiId = std::forward<ApiIdT>(value);
49 template <
typename ApiIdT = Aws::String>
51 SetApiId(std::forward<ApiIdT>(value));
61 inline long long GetTtl()
const {
return m_ttl; }
63 inline void SetTtl(
long long value) {
64 m_ttlHasBeenSet =
true;
85 m_apiCachingBehaviorHasBeenSet =
true;
86 m_apiCachingBehavior = value;
115 m_typeHasBeenSet =
true;
138 m_healthMetricsConfigHasBeenSet =
true;
139 m_healthMetricsConfig = value;
156 bool m_apiIdHasBeenSet =
false;
157 bool m_ttlHasBeenSet =
false;
158 bool m_apiCachingBehaviorHasBeenSet =
false;
159 bool m_typeHasBeenSet =
false;
160 bool m_healthMetricsConfigHasBeenSet =
false;
const Aws::String & GetApiId() const
CreateApiCacheRequest & WithHealthMetricsConfig(CacheHealthMetricsConfig value)
CreateApiCacheRequest & WithApiId(ApiIdT &&value)
bool ApiCachingBehaviorHasBeenSet() const
void SetHealthMetricsConfig(CacheHealthMetricsConfig value)
void SetType(ApiCacheType value)
virtual const char * GetServiceRequestName() const override
CreateApiCacheRequest & WithApiCachingBehavior(ApiCachingBehavior value)
bool ApiIdHasBeenSet() const
bool TypeHasBeenSet() const
AWS_APPSYNC_API CreateApiCacheRequest()=default
bool HealthMetricsConfigHasBeenSet() const
CreateApiCacheRequest & WithTtl(long long value)
bool TtlHasBeenSet() const
void SetTtl(long long value)
AWS_APPSYNC_API Aws::String SerializePayload() const override
CacheHealthMetricsConfig GetHealthMetricsConfig() const
CreateApiCacheRequest & WithType(ApiCacheType value)
void SetApiCachingBehavior(ApiCachingBehavior value)
ApiCachingBehavior GetApiCachingBehavior() const
ApiCacheType GetType() const
void SetApiId(ApiIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String