AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
DescribeServerlessCacheSnapshotsResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/elasticache/ElastiCache_EXPORTS.h>
10#include <aws/elasticache/model/ResponseMetadata.h>
11#include <aws/elasticache/model/ServerlessCacheSnapshot.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Xml {
21class XmlDocument;
22} // namespace Xml
23} // namespace Utils
24namespace ElastiCache {
25namespace Model {
27 public:
28 AWS_ELASTICACHE_API DescribeServerlessCacheSnapshotsResult() = default;
32
34
40 inline const Aws::String& GetNextToken() const { return m_nextToken; }
41 template <typename NextTokenT = Aws::String>
42 void SetNextToken(NextTokenT&& value) {
43 m_nextTokenHasBeenSet = true;
44 m_nextToken = std::forward<NextTokenT>(value);
45 }
46 template <typename NextTokenT = Aws::String>
48 SetNextToken(std::forward<NextTokenT>(value));
49 return *this;
50 }
52
54
58 inline const Aws::Vector<ServerlessCacheSnapshot>& GetServerlessCacheSnapshots() const { return m_serverlessCacheSnapshots; }
59 template <typename ServerlessCacheSnapshotsT = Aws::Vector<ServerlessCacheSnapshot>>
60 void SetServerlessCacheSnapshots(ServerlessCacheSnapshotsT&& value) {
61 m_serverlessCacheSnapshotsHasBeenSet = true;
62 m_serverlessCacheSnapshots = std::forward<ServerlessCacheSnapshotsT>(value);
63 }
64 template <typename ServerlessCacheSnapshotsT = Aws::Vector<ServerlessCacheSnapshot>>
66 SetServerlessCacheSnapshots(std::forward<ServerlessCacheSnapshotsT>(value));
67 return *this;
68 }
69 template <typename ServerlessCacheSnapshotsT = ServerlessCacheSnapshot>
71 m_serverlessCacheSnapshotsHasBeenSet = true;
72 m_serverlessCacheSnapshots.emplace_back(std::forward<ServerlessCacheSnapshotsT>(value));
73 return *this;
74 }
76
78
79 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
80 template <typename ResponseMetadataT = ResponseMetadata>
81 void SetResponseMetadata(ResponseMetadataT&& value) {
82 m_responseMetadataHasBeenSet = true;
83 m_responseMetadata = std::forward<ResponseMetadataT>(value);
84 }
85 template <typename ResponseMetadataT = ResponseMetadata>
87 SetResponseMetadata(std::forward<ResponseMetadataT>(value));
88 return *this;
89 }
91 private:
92 Aws::String m_nextToken;
93
94 Aws::Vector<ServerlessCacheSnapshot> m_serverlessCacheSnapshots;
95
96 ResponseMetadata m_responseMetadata;
97 bool m_nextTokenHasBeenSet = false;
98 bool m_serverlessCacheSnapshotsHasBeenSet = false;
99 bool m_responseMetadataHasBeenSet = false;
100};
101
102} // namespace Model
103} // namespace ElastiCache
104} // 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