AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
DescribeServerlessCacheSnapshotsResult.h
1
6#pragma once
7#include <aws/elasticache/ElastiCache_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/elasticache/model/ResponseMetadata.h>
11#include <aws/elasticache/model/ServerlessCacheSnapshot.h>
12#include <utility>
13
14namespace Aws
15{
16template<typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils
20{
21namespace Xml
22{
23 class XmlDocument;
24} // namespace Xml
25} // namespace Utils
26namespace ElastiCache
27{
28namespace Model
29{
31 {
32 public:
33 AWS_ELASTICACHE_API DescribeServerlessCacheSnapshotsResult() = default;
36
37
39
45 inline const Aws::String& GetNextToken() const { return m_nextToken; }
46 template<typename NextTokenT = Aws::String>
47 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
48 template<typename NextTokenT = Aws::String>
49 DescribeServerlessCacheSnapshotsResult& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
51
53
57 inline const Aws::Vector<ServerlessCacheSnapshot>& GetServerlessCacheSnapshots() const { return m_serverlessCacheSnapshots; }
58 template<typename ServerlessCacheSnapshotsT = Aws::Vector<ServerlessCacheSnapshot>>
59 void SetServerlessCacheSnapshots(ServerlessCacheSnapshotsT&& value) { m_serverlessCacheSnapshotsHasBeenSet = true; m_serverlessCacheSnapshots = std::forward<ServerlessCacheSnapshotsT>(value); }
60 template<typename ServerlessCacheSnapshotsT = Aws::Vector<ServerlessCacheSnapshot>>
61 DescribeServerlessCacheSnapshotsResult& WithServerlessCacheSnapshots(ServerlessCacheSnapshotsT&& value) { SetServerlessCacheSnapshots(std::forward<ServerlessCacheSnapshotsT>(value)); return *this;}
62 template<typename ServerlessCacheSnapshotsT = ServerlessCacheSnapshot>
63 DescribeServerlessCacheSnapshotsResult& AddServerlessCacheSnapshots(ServerlessCacheSnapshotsT&& value) { m_serverlessCacheSnapshotsHasBeenSet = true; m_serverlessCacheSnapshots.emplace_back(std::forward<ServerlessCacheSnapshotsT>(value)); return *this; }
65
67
68 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
69 template<typename ResponseMetadataT = ResponseMetadata>
70 void SetResponseMetadata(ResponseMetadataT&& value) { m_responseMetadataHasBeenSet = true; m_responseMetadata = std::forward<ResponseMetadataT>(value); }
71 template<typename ResponseMetadataT = ResponseMetadata>
72 DescribeServerlessCacheSnapshotsResult& WithResponseMetadata(ResponseMetadataT&& value) { SetResponseMetadata(std::forward<ResponseMetadataT>(value)); return *this;}
74 private:
75
76 Aws::String m_nextToken;
77 bool m_nextTokenHasBeenSet = false;
78
79 Aws::Vector<ServerlessCacheSnapshot> m_serverlessCacheSnapshots;
80 bool m_serverlessCacheSnapshotsHasBeenSet = false;
81
82 ResponseMetadata m_responseMetadata;
83 bool m_responseMetadataHasBeenSet = false;
84 };
85
86} // namespace Model
87} // namespace ElastiCache
88} // 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