AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
RestoreSnapshotTierResponse.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ec2/EC2_EXPORTS.h>
11#include <aws/ec2/model/ResponseMetadata.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 EC2 {
25namespace Model {
27 public:
28 AWS_EC2_API RestoreSnapshotTierResponse() = default;
31
33
36 inline const Aws::String& GetSnapshotId() const { return m_snapshotId; }
37 template <typename SnapshotIdT = Aws::String>
38 void SetSnapshotId(SnapshotIdT&& value) {
39 m_snapshotIdHasBeenSet = true;
40 m_snapshotId = std::forward<SnapshotIdT>(value);
41 }
42 template <typename SnapshotIdT = Aws::String>
44 SetSnapshotId(std::forward<SnapshotIdT>(value));
45 return *this;
46 }
48
50
53 inline const Aws::Utils::DateTime& GetRestoreStartTime() const { return m_restoreStartTime; }
54 template <typename RestoreStartTimeT = Aws::Utils::DateTime>
55 void SetRestoreStartTime(RestoreStartTimeT&& value) {
56 m_restoreStartTimeHasBeenSet = true;
57 m_restoreStartTime = std::forward<RestoreStartTimeT>(value);
58 }
59 template <typename RestoreStartTimeT = Aws::Utils::DateTime>
61 SetRestoreStartTime(std::forward<RestoreStartTimeT>(value));
62 return *this;
63 }
65
67
71 inline int GetRestoreDuration() const { return m_restoreDuration; }
72 inline void SetRestoreDuration(int value) {
73 m_restoreDurationHasBeenSet = true;
74 m_restoreDuration = value;
75 }
77 SetRestoreDuration(value);
78 return *this;
79 }
81
83
88 inline bool GetIsPermanentRestore() const { return m_isPermanentRestore; }
89 inline void SetIsPermanentRestore(bool value) {
90 m_isPermanentRestoreHasBeenSet = true;
91 m_isPermanentRestore = value;
92 }
95 return *this;
96 }
98
100
101 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
102 template <typename ResponseMetadataT = ResponseMetadata>
103 void SetResponseMetadata(ResponseMetadataT&& value) {
104 m_responseMetadataHasBeenSet = true;
105 m_responseMetadata = std::forward<ResponseMetadataT>(value);
106 }
107 template <typename ResponseMetadataT = ResponseMetadata>
109 SetResponseMetadata(std::forward<ResponseMetadataT>(value));
110 return *this;
111 }
113 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
114
115 private:
116 Aws::String m_snapshotId;
117
118 Aws::Utils::DateTime m_restoreStartTime{};
119
120 int m_restoreDuration{0};
121
122 bool m_isPermanentRestore{false};
123
124 ResponseMetadata m_responseMetadata;
125 Aws::Http::HttpResponseCode m_HttpResponseCode;
126 bool m_snapshotIdHasBeenSet = false;
127 bool m_restoreStartTimeHasBeenSet = false;
128 bool m_restoreDurationHasBeenSet = false;
129 bool m_isPermanentRestoreHasBeenSet = false;
130 bool m_responseMetadataHasBeenSet = false;
131};
132
133} // namespace Model
134} // namespace EC2
135} // namespace Aws
Aws::Http::HttpResponseCode GetHttpResponseCode() const
const Aws::Utils::DateTime & GetRestoreStartTime() const
RestoreSnapshotTierResponse & WithSnapshotId(SnapshotIdT &&value)
RestoreSnapshotTierResponse & WithRestoreStartTime(RestoreStartTimeT &&value)
RestoreSnapshotTierResponse & WithIsPermanentRestore(bool value)
AWS_EC2_API RestoreSnapshotTierResponse()=default
RestoreSnapshotTierResponse & WithRestoreDuration(int value)
RestoreSnapshotTierResponse & WithResponseMetadata(ResponseMetadataT &&value)
AWS_EC2_API RestoreSnapshotTierResponse(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
AWS_EC2_API RestoreSnapshotTierResponse & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Xml::XmlDocument XmlDocument