AWS SDK for C++

AWS SDK for C++ Version 1.11.760

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/elasticache/ElastiCache_EXPORTS.h>
11#include <aws/elasticache/model/ResponseMetadata.h>
12#include <aws/elasticache/model/Snapshot.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 {
34 public:
35 AWS_ELASTICACHE_API DescribeSnapshotsResult() = default;
38
40
46 inline const Aws::String& GetMarker() const { return m_marker; }
47 template <typename MarkerT = Aws::String>
48 void SetMarker(MarkerT&& value) {
49 m_markerHasBeenSet = true;
50 m_marker = std::forward<MarkerT>(value);
51 }
52 template <typename MarkerT = Aws::String>
54 SetMarker(std::forward<MarkerT>(value));
55 return *this;
56 }
58
60
64 inline const Aws::Vector<Snapshot>& GetSnapshots() const { return m_snapshots; }
65 template <typename SnapshotsT = Aws::Vector<Snapshot>>
66 void SetSnapshots(SnapshotsT&& value) {
67 m_snapshotsHasBeenSet = true;
68 m_snapshots = std::forward<SnapshotsT>(value);
69 }
70 template <typename SnapshotsT = Aws::Vector<Snapshot>>
72 SetSnapshots(std::forward<SnapshotsT>(value));
73 return *this;
74 }
75 template <typename SnapshotsT = Snapshot>
77 m_snapshotsHasBeenSet = true;
78 m_snapshots.emplace_back(std::forward<SnapshotsT>(value));
79 return *this;
80 }
82
84
85 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
86 template <typename ResponseMetadataT = ResponseMetadata>
87 void SetResponseMetadata(ResponseMetadataT&& value) {
88 m_responseMetadataHasBeenSet = true;
89 m_responseMetadata = std::forward<ResponseMetadataT>(value);
90 }
91 template <typename ResponseMetadataT = ResponseMetadata>
92 DescribeSnapshotsResult& WithResponseMetadata(ResponseMetadataT&& value) {
93 SetResponseMetadata(std::forward<ResponseMetadataT>(value));
94 return *this;
95 }
97 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
98
99 private:
100 Aws::String m_marker;
101
102 Aws::Vector<Snapshot> m_snapshots;
103
104 ResponseMetadata m_responseMetadata;
105 Aws::Http::HttpResponseCode m_HttpResponseCode;
106 bool m_markerHasBeenSet = false;
107 bool m_snapshotsHasBeenSet = false;
108 bool m_responseMetadataHasBeenSet = false;
109};
110
111} // namespace Model
112} // namespace ElastiCache
113} // namespace Aws
DescribeSnapshotsResult & WithResponseMetadata(ResponseMetadataT &&value)
DescribeSnapshotsResult & WithMarker(MarkerT &&value)
const Aws::Vector< Snapshot > & GetSnapshots() const
DescribeSnapshotsResult & AddSnapshots(SnapshotsT &&value)
DescribeSnapshotsResult & WithSnapshots(SnapshotsT &&value)
AWS_ELASTICACHE_API DescribeSnapshotsResult()=default
Aws::Http::HttpResponseCode GetHttpResponseCode() const
AWS_ELASTICACHE_API DescribeSnapshotsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
AWS_ELASTICACHE_API DescribeSnapshotsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Xml::XmlDocument XmlDocument