AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
DescribeServerlessCacheSnapshotsResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/elasticache/ElastiCache_EXPORTS.h>
11#include <aws/elasticache/model/ResponseMetadata.h>
12#include <aws/elasticache/model/ServerlessCacheSnapshot.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Xml {
22class XmlDocument;
23} // namespace Xml
24} // namespace Utils
25namespace ElastiCache {
26namespace Model {
28 public:
29 AWS_ELASTICACHE_API DescribeServerlessCacheSnapshotsResult() = default;
33
35
41 inline const Aws::String& GetNextToken() const { return m_nextToken; }
42 template <typename NextTokenT = Aws::String>
43 void SetNextToken(NextTokenT&& value) {
44 m_nextTokenHasBeenSet = true;
45 m_nextToken = std::forward<NextTokenT>(value);
46 }
47 template <typename NextTokenT = Aws::String>
49 SetNextToken(std::forward<NextTokenT>(value));
50 return *this;
51 }
53
55
59 inline const Aws::Vector<ServerlessCacheSnapshot>& GetServerlessCacheSnapshots() const { return m_serverlessCacheSnapshots; }
60 template <typename ServerlessCacheSnapshotsT = Aws::Vector<ServerlessCacheSnapshot>>
61 void SetServerlessCacheSnapshots(ServerlessCacheSnapshotsT&& value) {
62 m_serverlessCacheSnapshotsHasBeenSet = true;
63 m_serverlessCacheSnapshots = std::forward<ServerlessCacheSnapshotsT>(value);
64 }
65 template <typename ServerlessCacheSnapshotsT = Aws::Vector<ServerlessCacheSnapshot>>
67 SetServerlessCacheSnapshots(std::forward<ServerlessCacheSnapshotsT>(value));
68 return *this;
69 }
70 template <typename ServerlessCacheSnapshotsT = ServerlessCacheSnapshot>
72 m_serverlessCacheSnapshotsHasBeenSet = true;
73 m_serverlessCacheSnapshots.emplace_back(std::forward<ServerlessCacheSnapshotsT>(value));
74 return *this;
75 }
77
79
80 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
81 template <typename ResponseMetadataT = ResponseMetadata>
82 void SetResponseMetadata(ResponseMetadataT&& value) {
83 m_responseMetadataHasBeenSet = true;
84 m_responseMetadata = std::forward<ResponseMetadataT>(value);
85 }
86 template <typename ResponseMetadataT = ResponseMetadata>
88 SetResponseMetadata(std::forward<ResponseMetadataT>(value));
89 return *this;
90 }
92 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
93
94 private:
95 Aws::String m_nextToken;
96
97 Aws::Vector<ServerlessCacheSnapshot> m_serverlessCacheSnapshots;
98
99 ResponseMetadata m_responseMetadata;
100 Aws::Http::HttpResponseCode m_HttpResponseCode;
101 bool m_nextTokenHasBeenSet = false;
102 bool m_serverlessCacheSnapshotsHasBeenSet = false;
103 bool m_responseMetadataHasBeenSet = false;
104};
105
106} // namespace Model
107} // namespace ElastiCache
108} // namespace Aws
DescribeServerlessCacheSnapshotsResult & WithNextToken(NextTokenT &&value)
AWS_ELASTICACHE_API DescribeServerlessCacheSnapshotsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
DescribeServerlessCacheSnapshotsResult & AddServerlessCacheSnapshots(ServerlessCacheSnapshotsT &&value)
AWS_ELASTICACHE_API DescribeServerlessCacheSnapshotsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
DescribeServerlessCacheSnapshotsResult & WithServerlessCacheSnapshots(ServerlessCacheSnapshotsT &&value)
DescribeServerlessCacheSnapshotsResult & WithResponseMetadata(ResponseMetadataT &&value)
const Aws::Vector< ServerlessCacheSnapshot > & GetServerlessCacheSnapshots() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Xml::XmlDocument XmlDocument