AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
RestoreSnapshotTierResponse.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ec2/EC2_EXPORTS.h>
10#include <aws/ec2/model/ResponseMetadata.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 EC2 {
24namespace Model {
26 public:
27 AWS_EC2_API RestoreSnapshotTierResponse() = default;
30
32
35 inline const Aws::String& GetSnapshotId() const { return m_snapshotId; }
36 template <typename SnapshotIdT = Aws::String>
37 void SetSnapshotId(SnapshotIdT&& value) {
38 m_snapshotIdHasBeenSet = true;
39 m_snapshotId = std::forward<SnapshotIdT>(value);
40 }
41 template <typename SnapshotIdT = Aws::String>
43 SetSnapshotId(std::forward<SnapshotIdT>(value));
44 return *this;
45 }
47
49
52 inline const Aws::Utils::DateTime& GetRestoreStartTime() const { return m_restoreStartTime; }
53 template <typename RestoreStartTimeT = Aws::Utils::DateTime>
54 void SetRestoreStartTime(RestoreStartTimeT&& value) {
55 m_restoreStartTimeHasBeenSet = true;
56 m_restoreStartTime = std::forward<RestoreStartTimeT>(value);
57 }
58 template <typename RestoreStartTimeT = Aws::Utils::DateTime>
60 SetRestoreStartTime(std::forward<RestoreStartTimeT>(value));
61 return *this;
62 }
64
66
70 inline int GetRestoreDuration() const { return m_restoreDuration; }
71 inline void SetRestoreDuration(int value) {
72 m_restoreDurationHasBeenSet = true;
73 m_restoreDuration = value;
74 }
76 SetRestoreDuration(value);
77 return *this;
78 }
80
82
87 inline bool GetIsPermanentRestore() const { return m_isPermanentRestore; }
88 inline void SetIsPermanentRestore(bool value) {
89 m_isPermanentRestoreHasBeenSet = true;
90 m_isPermanentRestore = value;
91 }
94 return *this;
95 }
97
99
100 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
101 template <typename ResponseMetadataT = ResponseMetadata>
102 void SetResponseMetadata(ResponseMetadataT&& value) {
103 m_responseMetadataHasBeenSet = true;
104 m_responseMetadata = std::forward<ResponseMetadataT>(value);
105 }
106 template <typename ResponseMetadataT = ResponseMetadata>
108 SetResponseMetadata(std::forward<ResponseMetadataT>(value));
109 return *this;
110 }
112 private:
113 Aws::String m_snapshotId;
114
115 Aws::Utils::DateTime m_restoreStartTime{};
116
117 int m_restoreDuration{0};
118
119 bool m_isPermanentRestore{false};
120
121 ResponseMetadata m_responseMetadata;
122 bool m_snapshotIdHasBeenSet = false;
123 bool m_restoreStartTimeHasBeenSet = false;
124 bool m_restoreDurationHasBeenSet = false;
125 bool m_isPermanentRestoreHasBeenSet = false;
126 bool m_responseMetadataHasBeenSet = false;
127};
128
129} // namespace Model
130} // namespace EC2
131} // namespace Aws
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