AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
CreateServerlessCacheSnapshotResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/elasticache/ElastiCache_EXPORTS.h>
9#include <aws/elasticache/model/ResponseMetadata.h>
10#include <aws/elasticache/model/ServerlessCacheSnapshot.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Xml {
20class XmlDocument;
21} // namespace Xml
22} // namespace Utils
23namespace ElastiCache {
24namespace Model {
26 public:
27 AWS_ELASTICACHE_API CreateServerlessCacheSnapshotResult() = default;
31
33
37 inline const ServerlessCacheSnapshot& GetServerlessCacheSnapshot() const { return m_serverlessCacheSnapshot; }
38 template <typename ServerlessCacheSnapshotT = ServerlessCacheSnapshot>
39 void SetServerlessCacheSnapshot(ServerlessCacheSnapshotT&& value) {
40 m_serverlessCacheSnapshotHasBeenSet = true;
41 m_serverlessCacheSnapshot = std::forward<ServerlessCacheSnapshotT>(value);
42 }
43 template <typename ServerlessCacheSnapshotT = ServerlessCacheSnapshot>
45 SetServerlessCacheSnapshot(std::forward<ServerlessCacheSnapshotT>(value));
46 return *this;
47 }
49
51
52 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
53 template <typename ResponseMetadataT = ResponseMetadata>
54 void SetResponseMetadata(ResponseMetadataT&& value) {
55 m_responseMetadataHasBeenSet = true;
56 m_responseMetadata = std::forward<ResponseMetadataT>(value);
57 }
58 template <typename ResponseMetadataT = ResponseMetadata>
60 SetResponseMetadata(std::forward<ResponseMetadataT>(value));
61 return *this;
62 }
64 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
65
66 private:
67 ServerlessCacheSnapshot m_serverlessCacheSnapshot;
68
69 ResponseMetadata m_responseMetadata;
70 Aws::Http::HttpResponseCode m_HttpResponseCode;
71 bool m_serverlessCacheSnapshotHasBeenSet = false;
72 bool m_responseMetadataHasBeenSet = false;
73};
74
75} // namespace Model
76} // namespace ElastiCache
77} // namespace Aws
AWS_ELASTICACHE_API CreateServerlessCacheSnapshotResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
CreateServerlessCacheSnapshotResult & WithResponseMetadata(ResponseMetadataT &&value)
AWS_ELASTICACHE_API CreateServerlessCacheSnapshotResult()=default
AWS_ELASTICACHE_API CreateServerlessCacheSnapshotResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
CreateServerlessCacheSnapshotResult & WithServerlessCacheSnapshot(ServerlessCacheSnapshotT &&value)
Aws::Utils::Xml::XmlDocument XmlDocument