AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 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 UpdateApiCacheRequest& WithApiId(const Aws::String& value) { SetApiId(value); return *this;}
52 inline UpdateApiCacheRequest& WithApiId(Aws::String&& value) { SetApiId(std::move(value)); return *this;}
53 inline UpdateApiCacheRequest& 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 UpdateApiCacheRequest& WithTtl(long long value) { SetTtl(value); return *this;}
66
68
73 inline const ApiCachingBehavior& GetApiCachingBehavior() const{ return m_apiCachingBehavior; }
74 inline bool ApiCachingBehaviorHasBeenSet() const { return m_apiCachingBehaviorHasBeenSet; }
75 inline void SetApiCachingBehavior(const ApiCachingBehavior& value) { m_apiCachingBehaviorHasBeenSet = true; m_apiCachingBehavior = value; }
76 inline void SetApiCachingBehavior(ApiCachingBehavior&& value) { m_apiCachingBehaviorHasBeenSet = true; m_apiCachingBehavior = std::move(value); }
78 inline UpdateApiCacheRequest& WithApiCachingBehavior(ApiCachingBehavior&& value) { SetApiCachingBehavior(std::move(value)); return *this;}
80
82
99 inline const ApiCacheType& GetType() const{ return m_type; }
100 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
101 inline void SetType(const ApiCacheType& value) { m_typeHasBeenSet = true; m_type = value; }
102 inline void SetType(ApiCacheType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
103 inline UpdateApiCacheRequest& WithType(const ApiCacheType& value) { SetType(value); return *this;}
104 inline UpdateApiCacheRequest& WithType(ApiCacheType&& value) { SetType(std::move(value)); return *this;}
106
108
118 inline const CacheHealthMetricsConfig& GetHealthMetricsConfig() const{ return m_healthMetricsConfig; }
119 inline bool HealthMetricsConfigHasBeenSet() const { return m_healthMetricsConfigHasBeenSet; }
120 inline void SetHealthMetricsConfig(const CacheHealthMetricsConfig& value) { m_healthMetricsConfigHasBeenSet = true; m_healthMetricsConfig = value; }
121 inline void SetHealthMetricsConfig(CacheHealthMetricsConfig&& value) { m_healthMetricsConfigHasBeenSet = true; m_healthMetricsConfig = std::move(value); }
125 private:
126
127 Aws::String m_apiId;
128 bool m_apiIdHasBeenSet = false;
129
130 long long m_ttl;
131 bool m_ttlHasBeenSet = false;
132
133 ApiCachingBehavior m_apiCachingBehavior;
134 bool m_apiCachingBehaviorHasBeenSet = false;
135
136 ApiCacheType m_type;
137 bool m_typeHasBeenSet = false;
138
139 CacheHealthMetricsConfig m_healthMetricsConfig;
140 bool m_healthMetricsConfigHasBeenSet = false;
141 };
142
143} // namespace Model
144} // namespace AppSync
145} // namespace Aws
UpdateApiCacheRequest & WithApiId(const Aws::String &value)
void SetHealthMetricsConfig(CacheHealthMetricsConfig &&value)
virtual const char * GetServiceRequestName() const override
UpdateApiCacheRequest & WithApiId(Aws::String &&value)
void SetApiCachingBehavior(ApiCachingBehavior &&value)
UpdateApiCacheRequest & WithApiId(const char *value)
UpdateApiCacheRequest & WithApiCachingBehavior(const ApiCachingBehavior &value)
AWS_APPSYNC_API Aws::String SerializePayload() const override
UpdateApiCacheRequest & WithType(ApiCacheType &&value)
void SetHealthMetricsConfig(const CacheHealthMetricsConfig &value)
UpdateApiCacheRequest & WithApiCachingBehavior(ApiCachingBehavior &&value)
const ApiCachingBehavior & GetApiCachingBehavior() const
void SetApiCachingBehavior(const ApiCachingBehavior &value)
UpdateApiCacheRequest & WithHealthMetricsConfig(const CacheHealthMetricsConfig &value)
UpdateApiCacheRequest & WithHealthMetricsConfig(CacheHealthMetricsConfig &&value)
UpdateApiCacheRequest & WithTtl(long long value)
UpdateApiCacheRequest & WithType(const ApiCacheType &value)
const CacheHealthMetricsConfig & GetHealthMetricsConfig() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String