AWS SDK for C++

AWS SDK for C++ Version 1.11.758

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