AWS SDK for C++

AWS SDK for C++ Version 1.11.786

Loading...
Searching...
No Matches
CopyClusterSnapshotResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/redshift/Redshift_EXPORTS.h>
9#include <aws/redshift/model/ResponseMetadata.h>
10#include <aws/redshift/model/Snapshot.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Xml {
20class XmlDocument;
21} // namespace Xml
22} // namespace Utils
23namespace Redshift {
24namespace Model {
26 public:
27 AWS_REDSHIFT_API CopyClusterSnapshotResult() = default;
30
32
33 inline const Snapshot& GetSnapshot() const { return m_snapshot; }
34 template <typename SnapshotT = Snapshot>
35 void SetSnapshot(SnapshotT&& value) {
36 m_snapshotHasBeenSet = true;
37 m_snapshot = std::forward<SnapshotT>(value);
38 }
39 template <typename SnapshotT = Snapshot>
41 SetSnapshot(std::forward<SnapshotT>(value));
42 return *this;
43 }
45
47
48 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
49 template <typename ResponseMetadataT = ResponseMetadata>
50 void SetResponseMetadata(ResponseMetadataT&& value) {
51 m_responseMetadataHasBeenSet = true;
52 m_responseMetadata = std::forward<ResponseMetadataT>(value);
53 }
54 template <typename ResponseMetadataT = ResponseMetadata>
55 CopyClusterSnapshotResult& WithResponseMetadata(ResponseMetadataT&& value) {
56 SetResponseMetadata(std::forward<ResponseMetadataT>(value));
57 return *this;
58 }
60 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
61
62 private:
63 Snapshot m_snapshot;
64
65 ResponseMetadata m_responseMetadata;
66 Aws::Http::HttpResponseCode m_HttpResponseCode;
67 bool m_snapshotHasBeenSet = false;
68 bool m_responseMetadataHasBeenSet = false;
69};
70
71} // namespace Model
72} // namespace Redshift
73} // namespace Aws
AWS_REDSHIFT_API CopyClusterSnapshotResult()=default
AWS_REDSHIFT_API CopyClusterSnapshotResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
CopyClusterSnapshotResult & WithResponseMetadata(ResponseMetadataT &&value)
CopyClusterSnapshotResult & WithSnapshot(SnapshotT &&value)
AWS_REDSHIFT_API CopyClusterSnapshotResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::Utils::Xml::XmlDocument XmlDocument