AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UpdateApiCacheRequest.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 UpdateApiCacheRequest() = default;
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 "UpdateApiCache"; }
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 template<typename ApiIdT = Aws::String>
49 void SetApiId(ApiIdT&& value) { m_apiIdHasBeenSet = true; m_apiId = std::forward<ApiIdT>(value); }
50 template<typename ApiIdT = Aws::String>
51 UpdateApiCacheRequest& WithApiId(ApiIdT&& value) { SetApiId(std::forward<ApiIdT>(value)); return *this;}
53
55
59 inline long long GetTtl() const { return m_ttl; }
60 inline bool TtlHasBeenSet() const { return m_ttlHasBeenSet; }
61 inline void SetTtl(long long value) { m_ttlHasBeenSet = true; m_ttl = value; }
62 inline UpdateApiCacheRequest& WithTtl(long long value) { SetTtl(value); return *this;}
64
66
74 inline ApiCachingBehavior GetApiCachingBehavior() const { return m_apiCachingBehavior; }
75 inline bool ApiCachingBehaviorHasBeenSet() const { return m_apiCachingBehaviorHasBeenSet; }
76 inline void SetApiCachingBehavior(ApiCachingBehavior value) { m_apiCachingBehaviorHasBeenSet = true; m_apiCachingBehavior = value; }
79
81
98 inline ApiCacheType GetType() const { return m_type; }
99 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
100 inline void SetType(ApiCacheType value) { m_typeHasBeenSet = true; m_type = value; }
101 inline UpdateApiCacheRequest& WithType(ApiCacheType value) { SetType(value); return *this;}
103
105
115 inline CacheHealthMetricsConfig GetHealthMetricsConfig() const { return m_healthMetricsConfig; }
116 inline bool HealthMetricsConfigHasBeenSet() const { return m_healthMetricsConfigHasBeenSet; }
117 inline void SetHealthMetricsConfig(CacheHealthMetricsConfig value) { m_healthMetricsConfigHasBeenSet = true; m_healthMetricsConfig = value; }
120 private:
121
122 Aws::String m_apiId;
123 bool m_apiIdHasBeenSet = false;
124
125 long long m_ttl{0};
126 bool m_ttlHasBeenSet = false;
127
129 bool m_apiCachingBehaviorHasBeenSet = false;
130
132 bool m_typeHasBeenSet = false;
133
135 bool m_healthMetricsConfigHasBeenSet = false;
136 };
137
138} // namespace Model
139} // namespace AppSync
140} // namespace Aws
void SetHealthMetricsConfig(CacheHealthMetricsConfig value)
virtual const char * GetServiceRequestName() const override
UpdateApiCacheRequest & WithApiCachingBehavior(ApiCachingBehavior value)
UpdateApiCacheRequest & WithApiId(ApiIdT &&value)
CacheHealthMetricsConfig GetHealthMetricsConfig() const
AWS_APPSYNC_API Aws::String SerializePayload() const override
UpdateApiCacheRequest & WithHealthMetricsConfig(CacheHealthMetricsConfig value)
UpdateApiCacheRequest & WithType(ApiCacheType value)
AWS_APPSYNC_API UpdateApiCacheRequest()=default
UpdateApiCacheRequest & WithTtl(long long value)
void SetApiCachingBehavior(ApiCachingBehavior value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String