AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
GetApiCacheResult.h
1
6#pragma once
7#include <aws/appsync/AppSync_EXPORTS.h>
8#include <aws/appsync/model/ApiCache.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14template <typename RESULT_TYPE>
15class AmazonWebServiceResult;
16
17namespace Utils {
18namespace Json {
19class JsonValue;
20} // namespace Json
21} // namespace Utils
22namespace AppSync {
23namespace Model {
31 public:
32 AWS_APPSYNC_API GetApiCacheResult() = default;
35
37
40 inline const ApiCache& GetApiCache() const { return m_apiCache; }
41 template <typename ApiCacheT = ApiCache>
42 void SetApiCache(ApiCacheT&& value) {
43 m_apiCacheHasBeenSet = true;
44 m_apiCache = std::forward<ApiCacheT>(value);
45 }
46 template <typename ApiCacheT = ApiCache>
47 GetApiCacheResult& WithApiCache(ApiCacheT&& value) {
48 SetApiCache(std::forward<ApiCacheT>(value));
49 return *this;
50 }
52
54
55 inline const Aws::String& GetRequestId() const { return m_requestId; }
56 template <typename RequestIdT = Aws::String>
57 void SetRequestId(RequestIdT&& value) {
58 m_requestIdHasBeenSet = true;
59 m_requestId = std::forward<RequestIdT>(value);
60 }
61 template <typename RequestIdT = Aws::String>
62 GetApiCacheResult& WithRequestId(RequestIdT&& value) {
63 SetRequestId(std::forward<RequestIdT>(value));
64 return *this;
65 }
67 private:
68 ApiCache m_apiCache;
69
70 Aws::String m_requestId;
71 bool m_apiCacheHasBeenSet = false;
72 bool m_requestIdHasBeenSet = false;
73};
74
75} // namespace Model
76} // namespace AppSync
77} // namespace Aws
AWS_APPSYNC_API GetApiCacheResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_APPSYNC_API GetApiCacheResult()=default
AWS_APPSYNC_API GetApiCacheResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetApiCacheResult & WithApiCache(ApiCacheT &&value)
GetApiCacheResult & WithRequestId(RequestIdT &&value)
const Aws::String & GetRequestId() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue