AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
CopySnapshotResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/crt/cbor/Cbor.h>
10#include <aws/memorydb/MemoryDB_EXPORTS.h>
11#include <aws/memorydb/model/Snapshot.h>
12
13#include <utility>
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Cbor {
20class CborValue;
21} // namespace Cbor
22} // namespace Utils
23namespace MemoryDB {
24namespace Model {
26 public:
27 AWS_MEMORYDB_API CopySnapshotResult() = default;
30
32
36 inline const Snapshot& GetSnapshot() const { return m_snapshot; }
37 template <typename SnapshotT = Snapshot>
38 void SetSnapshot(SnapshotT&& value) {
39 m_snapshotHasBeenSet = true;
40 m_snapshot = std::forward<SnapshotT>(value);
41 }
42 template <typename SnapshotT = Snapshot>
43 CopySnapshotResult& WithSnapshot(SnapshotT&& value) {
44 SetSnapshot(std::forward<SnapshotT>(value));
45 return *this;
46 }
48
50
51 inline const Aws::String& GetRequestId() const { return m_requestId; }
52 template <typename RequestIdT = Aws::String>
53 void SetRequestId(RequestIdT&& value) {
54 m_requestIdHasBeenSet = true;
55 m_requestId = std::forward<RequestIdT>(value);
56 }
57 template <typename RequestIdT = Aws::String>
58 CopySnapshotResult& WithRequestId(RequestIdT&& value) {
59 SetRequestId(std::forward<RequestIdT>(value));
60 return *this;
61 }
63 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
64
65 private:
66 Snapshot m_snapshot;
67
68 Aws::String m_requestId;
69 Aws::Http::HttpResponseCode m_HttpResponseCode;
70 bool m_snapshotHasBeenSet = false;
71 bool m_requestIdHasBeenSet = false;
72};
73
74} // namespace Model
75} // namespace MemoryDB
76} // namespace Aws
CopySnapshotResult & WithSnapshot(SnapshotT &&value)
CopySnapshotResult & WithRequestId(RequestIdT &&value)
AWS_MEMORYDB_API CopySnapshotResult(const Aws::AmazonWebServiceResult< Aws::Utils::Cbor::CborValue > &result)
AWS_MEMORYDB_API CopySnapshotResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Cbor::CborValue > &result)
AWS_MEMORYDB_API CopySnapshotResult()=default
Aws::Http::HttpResponseCode GetHttpResponseCode() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String