AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
DescribeSnapshotsResult.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/crt/cbor/Cbor.h>
11#include <aws/memorydb/MemoryDB_EXPORTS.h>
12#include <aws/memorydb/model/Snapshot.h>
13
14#include <utility>
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Cbor {
21class CborValue;
22} // namespace Cbor
23} // namespace Utils
24namespace MemoryDB {
25namespace Model {
27 public:
28 AWS_MEMORYDB_API DescribeSnapshotsResult() = default;
31
33
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<Snapshot>& GetSnapshots() const { return m_snapshots; }
59 template <typename SnapshotsT = Aws::Vector<Snapshot>>
60 void SetSnapshots(SnapshotsT&& value) {
61 m_snapshotsHasBeenSet = true;
62 m_snapshots = std::forward<SnapshotsT>(value);
63 }
64 template <typename SnapshotsT = Aws::Vector<Snapshot>>
66 SetSnapshots(std::forward<SnapshotsT>(value));
67 return *this;
68 }
69 template <typename SnapshotsT = Snapshot>
71 m_snapshotsHasBeenSet = true;
72 m_snapshots.emplace_back(std::forward<SnapshotsT>(value));
73 return *this;
74 }
76
78
79 inline const Aws::String& GetRequestId() const { return m_requestId; }
80 template <typename RequestIdT = Aws::String>
81 void SetRequestId(RequestIdT&& value) {
82 m_requestIdHasBeenSet = true;
83 m_requestId = std::forward<RequestIdT>(value);
84 }
85 template <typename RequestIdT = Aws::String>
87 SetRequestId(std::forward<RequestIdT>(value));
88 return *this;
89 }
91 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
92
93 private:
94 Aws::String m_nextToken;
95
96 Aws::Vector<Snapshot> m_snapshots;
97
98 Aws::String m_requestId;
99 Aws::Http::HttpResponseCode m_HttpResponseCode;
100 bool m_nextTokenHasBeenSet = false;
101 bool m_snapshotsHasBeenSet = false;
102 bool m_requestIdHasBeenSet = false;
103};
104
105} // namespace Model
106} // namespace MemoryDB
107} // namespace Aws
AWS_MEMORYDB_API DescribeSnapshotsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Cbor::CborValue > &result)
DescribeSnapshotsResult & WithNextToken(NextTokenT &&value)
const Aws::Vector< Snapshot > & GetSnapshots() const
DescribeSnapshotsResult & WithRequestId(RequestIdT &&value)
AWS_MEMORYDB_API DescribeSnapshotsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Cbor::CborValue > &result)
DescribeSnapshotsResult & AddSnapshots(SnapshotsT &&value)
AWS_MEMORYDB_API DescribeSnapshotsResult()=default
DescribeSnapshotsResult & WithSnapshots(SnapshotsT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector