AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
DescribeSnapshotsResult.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/Snapshot.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 {
33 public:
34 AWS_ELASTICACHE_API DescribeSnapshotsResult() = default;
37
39
45 inline const Aws::String& GetMarker() const { return m_marker; }
46 template <typename MarkerT = Aws::String>
47 void SetMarker(MarkerT&& value) {
48 m_markerHasBeenSet = true;
49 m_marker = std::forward<MarkerT>(value);
50 }
51 template <typename MarkerT = Aws::String>
53 SetMarker(std::forward<MarkerT>(value));
54 return *this;
55 }
57
59
63 inline const Aws::Vector<Snapshot>& GetSnapshots() const { return m_snapshots; }
64 template <typename SnapshotsT = Aws::Vector<Snapshot>>
65 void SetSnapshots(SnapshotsT&& value) {
66 m_snapshotsHasBeenSet = true;
67 m_snapshots = std::forward<SnapshotsT>(value);
68 }
69 template <typename SnapshotsT = Aws::Vector<Snapshot>>
71 SetSnapshots(std::forward<SnapshotsT>(value));
72 return *this;
73 }
74 template <typename SnapshotsT = Snapshot>
76 m_snapshotsHasBeenSet = true;
77 m_snapshots.emplace_back(std::forward<SnapshotsT>(value));
78 return *this;
79 }
81
83
84 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
85 template <typename ResponseMetadataT = ResponseMetadata>
86 void SetResponseMetadata(ResponseMetadataT&& value) {
87 m_responseMetadataHasBeenSet = true;
88 m_responseMetadata = std::forward<ResponseMetadataT>(value);
89 }
90 template <typename ResponseMetadataT = ResponseMetadata>
91 DescribeSnapshotsResult& WithResponseMetadata(ResponseMetadataT&& value) {
92 SetResponseMetadata(std::forward<ResponseMetadataT>(value));
93 return *this;
94 }
96 private:
97 Aws::String m_marker;
98
99 Aws::Vector<Snapshot> m_snapshots;
100
101 ResponseMetadata m_responseMetadata;
102 bool m_markerHasBeenSet = false;
103 bool m_snapshotsHasBeenSet = false;
104 bool m_responseMetadataHasBeenSet = false;
105};
106
107} // namespace Model
108} // namespace ElastiCache
109} // 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_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