AWS SDK for C++  1.9.153
AWS SDK for C++
CreateApiCacheRequest.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 "CreateApiCache"; }
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 CreateApiCacheRequest& WithApiId(const Aws::String& value) { SetApiId(value); return *this;}
70 
74  inline CreateApiCacheRequest& WithApiId(Aws::String&& value) { SetApiId(std::move(value)); return *this;}
75 
79  inline CreateApiCacheRequest& 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 CreateApiCacheRequest& WithTtl(long long value) { SetTtl(value); return *this;}
105 
106 
111  inline bool GetTransitEncryptionEnabled() const{ return m_transitEncryptionEnabled; }
112 
117  inline bool TransitEncryptionEnabledHasBeenSet() const { return m_transitEncryptionEnabledHasBeenSet; }
118 
123  inline void SetTransitEncryptionEnabled(bool value) { m_transitEncryptionEnabledHasBeenSet = true; m_transitEncryptionEnabled = value; }
124 
129  inline CreateApiCacheRequest& WithTransitEncryptionEnabled(bool value) { SetTransitEncryptionEnabled(value); return *this;}
130 
131 
136  inline bool GetAtRestEncryptionEnabled() const{ return m_atRestEncryptionEnabled; }
137 
142  inline bool AtRestEncryptionEnabledHasBeenSet() const { return m_atRestEncryptionEnabledHasBeenSet; }
143 
148  inline void SetAtRestEncryptionEnabled(bool value) { m_atRestEncryptionEnabledHasBeenSet = true; m_atRestEncryptionEnabled = value; }
149 
154  inline CreateApiCacheRequest& WithAtRestEncryptionEnabled(bool value) { SetAtRestEncryptionEnabled(value); return *this;}
155 
156 
162  inline const ApiCachingBehavior& GetApiCachingBehavior() const{ return m_apiCachingBehavior; }
163 
169  inline bool ApiCachingBehaviorHasBeenSet() const { return m_apiCachingBehaviorHasBeenSet; }
170 
176  inline void SetApiCachingBehavior(const ApiCachingBehavior& value) { m_apiCachingBehaviorHasBeenSet = true; m_apiCachingBehavior = value; }
177 
183  inline void SetApiCachingBehavior(ApiCachingBehavior&& value) { m_apiCachingBehaviorHasBeenSet = true; m_apiCachingBehavior = std::move(value); }
184 
190  inline CreateApiCacheRequest& WithApiCachingBehavior(const ApiCachingBehavior& value) { SetApiCachingBehavior(value); return *this;}
191 
197  inline CreateApiCacheRequest& WithApiCachingBehavior(ApiCachingBehavior&& value) { SetApiCachingBehavior(std::move(value)); return *this;}
198 
199 
217  inline const ApiCacheType& GetType() const{ return m_type; }
218 
236  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
237 
255  inline void SetType(const ApiCacheType& value) { m_typeHasBeenSet = true; m_type = value; }
256 
274  inline void SetType(ApiCacheType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
275 
293  inline CreateApiCacheRequest& WithType(const ApiCacheType& value) { SetType(value); return *this;}
294 
312  inline CreateApiCacheRequest& WithType(ApiCacheType&& value) { SetType(std::move(value)); return *this;}
313 
314  private:
315 
316  Aws::String m_apiId;
317  bool m_apiIdHasBeenSet;
318 
319  long long m_ttl;
320  bool m_ttlHasBeenSet;
321 
322  bool m_transitEncryptionEnabled;
323  bool m_transitEncryptionEnabledHasBeenSet;
324 
325  bool m_atRestEncryptionEnabled;
326  bool m_atRestEncryptionEnabledHasBeenSet;
327 
328  ApiCachingBehavior m_apiCachingBehavior;
329  bool m_apiCachingBehaviorHasBeenSet;
330 
331  ApiCacheType m_type;
332  bool m_typeHasBeenSet;
333  };
334 
335 } // namespace Model
336 } // namespace AppSync
337 } // namespace Aws
Aws::AppSync::AppSyncRequest
Definition: AppSyncRequest.h:17
Aws::AppSync::Model::CreateApiCacheRequest::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: CreateApiCacheRequest.h:236
Aws::AppSync::Model::CreateApiCacheRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::AppSync::Model::CreateApiCacheRequest::AtRestEncryptionEnabledHasBeenSet
bool AtRestEncryptionEnabledHasBeenSet() const
Definition: CreateApiCacheRequest.h:142
Aws::AppSync::Model::CreateApiCacheRequest::SetType
void SetType(const ApiCacheType &value)
Definition: CreateApiCacheRequest.h:255
Aws::AppSync::Model::CreateApiCacheRequest::WithApiCachingBehavior
CreateApiCacheRequest & WithApiCachingBehavior(const ApiCachingBehavior &value)
Definition: CreateApiCacheRequest.h:190
Aws::AppSync::Model::CreateApiCacheRequest::WithApiId
CreateApiCacheRequest & WithApiId(const char *value)
Definition: CreateApiCacheRequest.h:79
Aws::AppSync::Model::CreateApiCacheRequest::CreateApiCacheRequest
CreateApiCacheRequest()
AppSync_EXPORTS.h
Aws::AppSync::Model::CreateApiCacheRequest::ApiIdHasBeenSet
bool ApiIdHasBeenSet() const
Definition: CreateApiCacheRequest.h:49
Aws::AppSync::Model::CreateApiCacheRequest::WithApiId
CreateApiCacheRequest & WithApiId(Aws::String &&value)
Definition: CreateApiCacheRequest.h:74
Aws::AppSync::Model::CreateApiCacheRequest::TtlHasBeenSet
bool TtlHasBeenSet() const
Definition: CreateApiCacheRequest.h:92
Aws::AppSync::Model::CreateApiCacheRequest::TransitEncryptionEnabledHasBeenSet
bool TransitEncryptionEnabledHasBeenSet() const
Definition: CreateApiCacheRequest.h:117
Aws::AppSync::Model::CreateApiCacheRequest::SetApiId
void SetApiId(const char *value)
Definition: CreateApiCacheRequest.h:64
Aws::AppSync::Model::ApiCacheType
ApiCacheType
Definition: ApiCacheType.h:17
Aws::AppSync::Model::CreateApiCacheRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateApiCacheRequest.h:36
Aws::AppSync::Model::CreateApiCacheRequest::GetTransitEncryptionEnabled
bool GetTransitEncryptionEnabled() const
Definition: CreateApiCacheRequest.h:111
Aws::AppSync::Model::CreateApiCacheRequest::GetAtRestEncryptionEnabled
bool GetAtRestEncryptionEnabled() const
Definition: CreateApiCacheRequest.h:136
Aws::AppSync::Model::CreateApiCacheRequest::GetType
const ApiCacheType & GetType() const
Definition: CreateApiCacheRequest.h:217
AWSString.h
Aws::AppSync::Model::CreateApiCacheRequest::WithType
CreateApiCacheRequest & WithType(const ApiCacheType &value)
Definition: CreateApiCacheRequest.h:293
Aws::AppSync::Model::CreateApiCacheRequest::GetApiCachingBehavior
const ApiCachingBehavior & GetApiCachingBehavior() const
Definition: CreateApiCacheRequest.h:162
Aws::AppSync::Model::CreateApiCacheRequest::GetApiId
const Aws::String & GetApiId() const
Definition: CreateApiCacheRequest.h:44
Aws::AppSync::Model::CreateApiCacheRequest::WithTtl
CreateApiCacheRequest & WithTtl(long long value)
Definition: CreateApiCacheRequest.h:104
Aws::AppSync::Model::CreateApiCacheRequest::SetTransitEncryptionEnabled
void SetTransitEncryptionEnabled(bool value)
Definition: CreateApiCacheRequest.h:123
Aws::AppSync::Model::CreateApiCacheRequest::SetType
void SetType(ApiCacheType &&value)
Definition: CreateApiCacheRequest.h:274
Aws::AppSync::Model::CreateApiCacheRequest::WithAtRestEncryptionEnabled
CreateApiCacheRequest & WithAtRestEncryptionEnabled(bool value)
Definition: CreateApiCacheRequest.h:154
Aws::AppSync::Model::CreateApiCacheRequest::SetApiId
void SetApiId(const Aws::String &value)
Definition: CreateApiCacheRequest.h:54
Aws::AppSync::Model::CreateApiCacheRequest::WithTransitEncryptionEnabled
CreateApiCacheRequest & WithTransitEncryptionEnabled(bool value)
Definition: CreateApiCacheRequest.h:129
AppSyncRequest.h
Aws
Definition: AccessManagementClient.h:15
Aws::AppSync::Model::CreateApiCacheRequest
Definition: CreateApiCacheRequest.h:28
Aws::AppSync::Model::CreateApiCacheRequest::GetTtl
long long GetTtl() const
Definition: CreateApiCacheRequest.h:86
Aws::AppSync::Model::CreateApiCacheRequest::ApiCachingBehaviorHasBeenSet
bool ApiCachingBehaviorHasBeenSet() const
Definition: CreateApiCacheRequest.h:169
Aws::AppSync::Model::CreateApiCacheRequest::SetApiCachingBehavior
void SetApiCachingBehavior(ApiCachingBehavior &&value)
Definition: CreateApiCacheRequest.h:183
AWS_APPSYNC_API
#define AWS_APPSYNC_API
Definition: AppSync_EXPORTS.h:28
ApiCacheType.h
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::AppSync::Model::CreateApiCacheRequest::SetAtRestEncryptionEnabled
void SetAtRestEncryptionEnabled(bool value)
Definition: CreateApiCacheRequest.h:148
Aws::AppSync::Model::CreateApiCacheRequest::WithType
CreateApiCacheRequest & WithType(ApiCacheType &&value)
Definition: CreateApiCacheRequest.h:312
Aws::AppSync::Model::CreateApiCacheRequest::SetApiCachingBehavior
void SetApiCachingBehavior(const ApiCachingBehavior &value)
Definition: CreateApiCacheRequest.h:176
Aws::AppSync::Model::CreateApiCacheRequest::WithApiId
CreateApiCacheRequest & WithApiId(const Aws::String &value)
Definition: CreateApiCacheRequest.h:69
Aws::AppSync::Model::CreateApiCacheRequest::WithApiCachingBehavior
CreateApiCacheRequest & WithApiCachingBehavior(ApiCachingBehavior &&value)
Definition: CreateApiCacheRequest.h:197
ApiCachingBehavior.h
Aws::AppSync::Model::CreateApiCacheRequest::SetTtl
void SetTtl(long long value)
Definition: CreateApiCacheRequest.h:98
Aws::AppSync::Model::CreateApiCacheRequest::SetApiId
void SetApiId(Aws::String &&value)
Definition: CreateApiCacheRequest.h:59
Aws::AppSync::Model::ApiCachingBehavior
ApiCachingBehavior
Definition: ApiCachingBehavior.h:17