AWS SDK for C++  1.9.156
AWS SDK for C++
UpdateApiCacheRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace AppSync
17 {
18 namespace Model
19 {
20 
28  {
29  public:
31 
32  // Service request name is the Operation name which will send this request out,
33  // each operation should has unique request name, so that we can get operation's name from this request.
34  // Note: this is not true for response, multiple operations may have the same response name,
35  // so we can not get operation's name from response.
36  inline virtual const char* GetServiceRequestName() const override { return "UpdateApiCache"; }
37 
38  Aws::String SerializePayload() const override;
39 
40 
44  inline const Aws::String& GetApiId() const{ return m_apiId; }
45 
49  inline bool ApiIdHasBeenSet() const { return m_apiIdHasBeenSet; }
50 
54  inline void SetApiId(const Aws::String& value) { m_apiIdHasBeenSet = true; m_apiId = value; }
55 
59  inline void SetApiId(Aws::String&& value) { m_apiIdHasBeenSet = true; m_apiId = std::move(value); }
60 
64  inline void SetApiId(const char* value) { m_apiIdHasBeenSet = true; m_apiId.assign(value); }
65 
69  inline UpdateApiCacheRequest& WithApiId(const Aws::String& value) { SetApiId(value); return *this;}
70 
74  inline UpdateApiCacheRequest& WithApiId(Aws::String&& value) { SetApiId(std::move(value)); return *this;}
75 
79  inline UpdateApiCacheRequest& WithApiId(const char* value) { SetApiId(value); return *this;}
80 
81 
86  inline long long GetTtl() const{ return m_ttl; }
87 
92  inline bool TtlHasBeenSet() const { return m_ttlHasBeenSet; }
93 
98  inline void SetTtl(long long value) { m_ttlHasBeenSet = true; m_ttl = value; }
99 
104  inline UpdateApiCacheRequest& WithTtl(long long value) { SetTtl(value); return *this;}
105 
106 
112  inline const ApiCachingBehavior& GetApiCachingBehavior() const{ return m_apiCachingBehavior; }
113 
119  inline bool ApiCachingBehaviorHasBeenSet() const { return m_apiCachingBehaviorHasBeenSet; }
120 
126  inline void SetApiCachingBehavior(const ApiCachingBehavior& value) { m_apiCachingBehaviorHasBeenSet = true; m_apiCachingBehavior = value; }
127 
133  inline void SetApiCachingBehavior(ApiCachingBehavior&& value) { m_apiCachingBehaviorHasBeenSet = true; m_apiCachingBehavior = std::move(value); }
134 
140  inline UpdateApiCacheRequest& WithApiCachingBehavior(const ApiCachingBehavior& value) { SetApiCachingBehavior(value); return *this;}
141 
147  inline UpdateApiCacheRequest& WithApiCachingBehavior(ApiCachingBehavior&& value) { SetApiCachingBehavior(std::move(value)); return *this;}
148 
149 
167  inline const ApiCacheType& GetType() const{ return m_type; }
168 
186  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
187 
205  inline void SetType(const ApiCacheType& value) { m_typeHasBeenSet = true; m_type = value; }
206 
224  inline void SetType(ApiCacheType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
225 
243  inline UpdateApiCacheRequest& WithType(const ApiCacheType& value) { SetType(value); return *this;}
244 
262  inline UpdateApiCacheRequest& WithType(ApiCacheType&& value) { SetType(std::move(value)); return *this;}
263 
264  private:
265 
266  Aws::String m_apiId;
267  bool m_apiIdHasBeenSet;
268 
269  long long m_ttl;
270  bool m_ttlHasBeenSet;
271 
272  ApiCachingBehavior m_apiCachingBehavior;
273  bool m_apiCachingBehaviorHasBeenSet;
274 
275  ApiCacheType m_type;
276  bool m_typeHasBeenSet;
277  };
278 
279 } // namespace Model
280 } // namespace AppSync
281 } // namespace Aws
Aws::AppSync::Model::UpdateApiCacheRequest::SetApiId
void SetApiId(const Aws::String &value)
Definition: UpdateApiCacheRequest.h:54
Aws::AppSync::Model::UpdateApiCacheRequest::WithType
UpdateApiCacheRequest & WithType(const ApiCacheType &value)
Definition: UpdateApiCacheRequest.h:243
Aws::AppSync::Model::UpdateApiCacheRequest::WithType
UpdateApiCacheRequest & WithType(ApiCacheType &&value)
Definition: UpdateApiCacheRequest.h:262
Aws::AppSync::Model::UpdateApiCacheRequest::SetApiCachingBehavior
void SetApiCachingBehavior(ApiCachingBehavior &&value)
Definition: UpdateApiCacheRequest.h:133
Aws::AppSync::AppSyncRequest
Definition: AppSyncRequest.h:17
Aws::AppSync::Model::UpdateApiCacheRequest::WithApiId
UpdateApiCacheRequest & WithApiId(Aws::String &&value)
Definition: UpdateApiCacheRequest.h:74
Aws::AppSync::Model::UpdateApiCacheRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateApiCacheRequest.h:36
Aws::AppSync::Model::UpdateApiCacheRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::AppSync::Model::UpdateApiCacheRequest::WithTtl
UpdateApiCacheRequest & WithTtl(long long value)
Definition: UpdateApiCacheRequest.h:104
AppSync_EXPORTS.h
Aws::AppSync::Model::ApiCacheType
ApiCacheType
Definition: ApiCacheType.h:17
Aws::AppSync::Model::UpdateApiCacheRequest::WithApiId
UpdateApiCacheRequest & WithApiId(const Aws::String &value)
Definition: UpdateApiCacheRequest.h:69
Aws::AppSync::Model::UpdateApiCacheRequest::WithApiCachingBehavior
UpdateApiCacheRequest & WithApiCachingBehavior(ApiCachingBehavior &&value)
Definition: UpdateApiCacheRequest.h:147
Aws::AppSync::Model::UpdateApiCacheRequest::WithApiId
UpdateApiCacheRequest & WithApiId(const char *value)
Definition: UpdateApiCacheRequest.h:79
Aws::AppSync::Model::UpdateApiCacheRequest::SetTtl
void SetTtl(long long value)
Definition: UpdateApiCacheRequest.h:98
Aws::AppSync::Model::UpdateApiCacheRequest::SetType
void SetType(ApiCacheType &&value)
Definition: UpdateApiCacheRequest.h:224
Aws::AppSync::Model::UpdateApiCacheRequest::TtlHasBeenSet
bool TtlHasBeenSet() const
Definition: UpdateApiCacheRequest.h:92
Aws::AppSync::Model::UpdateApiCacheRequest::SetApiId
void SetApiId(const char *value)
Definition: UpdateApiCacheRequest.h:64
Aws::AppSync::Model::UpdateApiCacheRequest::SetApiId
void SetApiId(Aws::String &&value)
Definition: UpdateApiCacheRequest.h:59
AWSString.h
Aws::AppSync::Model::UpdateApiCacheRequest::WithApiCachingBehavior
UpdateApiCacheRequest & WithApiCachingBehavior(const ApiCachingBehavior &value)
Definition: UpdateApiCacheRequest.h:140
Aws::AppSync::Model::UpdateApiCacheRequest::GetApiId
const Aws::String & GetApiId() const
Definition: UpdateApiCacheRequest.h:44
Aws::AppSync::Model::UpdateApiCacheRequest::GetApiCachingBehavior
const ApiCachingBehavior & GetApiCachingBehavior() const
Definition: UpdateApiCacheRequest.h:112
Aws::AppSync::Model::UpdateApiCacheRequest::ApiIdHasBeenSet
bool ApiIdHasBeenSet() const
Definition: UpdateApiCacheRequest.h:49
AppSyncRequest.h
Aws
Definition: AccessManagementClient.h:15
Aws::AppSync::Model::UpdateApiCacheRequest
Definition: UpdateApiCacheRequest.h:28
Aws::AppSync::Model::UpdateApiCacheRequest::SetApiCachingBehavior
void SetApiCachingBehavior(const ApiCachingBehavior &value)
Definition: UpdateApiCacheRequest.h:126
AWS_APPSYNC_API
#define AWS_APPSYNC_API
Definition: AppSync_EXPORTS.h:28
ApiCacheType.h
Aws::AppSync::Model::UpdateApiCacheRequest::SetType
void SetType(const ApiCacheType &value)
Definition: UpdateApiCacheRequest.h:205
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::AppSync::Model::UpdateApiCacheRequest::GetTtl
long long GetTtl() const
Definition: UpdateApiCacheRequest.h:86
Aws::AppSync::Model::UpdateApiCacheRequest::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: UpdateApiCacheRequest.h:186
ApiCachingBehavior.h
Aws::AppSync::Model::UpdateApiCacheRequest::ApiCachingBehaviorHasBeenSet
bool ApiCachingBehaviorHasBeenSet() const
Definition: UpdateApiCacheRequest.h:119
Aws::AppSync::Model::UpdateApiCacheRequest::UpdateApiCacheRequest
UpdateApiCacheRequest()
Aws::AppSync::Model::UpdateApiCacheRequest::GetType
const ApiCacheType & GetType() const
Definition: UpdateApiCacheRequest.h:167
Aws::AppSync::Model::ApiCachingBehavior
ApiCachingBehavior
Definition: ApiCachingBehavior.h:17