AWS SDK for C++

AWS SDK for C++ Version 1.11.783

Loading...
Searching...
No Matches
LockSnapshotResponse.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/LockState.h>
12#include <aws/ec2/model/ResponseMetadata.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 EC2 {
26namespace Model {
28 public:
29 AWS_EC2_API LockSnapshotResponse() = default;
32
34
37 inline const Aws::String& GetSnapshotId() const { return m_snapshotId; }
38 template <typename SnapshotIdT = Aws::String>
39 void SetSnapshotId(SnapshotIdT&& value) {
40 m_snapshotIdHasBeenSet = true;
41 m_snapshotId = std::forward<SnapshotIdT>(value);
42 }
43 template <typename SnapshotIdT = Aws::String>
44 LockSnapshotResponse& WithSnapshotId(SnapshotIdT&& value) {
45 SetSnapshotId(std::forward<SnapshotIdT>(value));
46 return *this;
47 }
49
51
66 inline LockState GetLockState() const { return m_lockState; }
67 inline void SetLockState(LockState value) {
68 m_lockStateHasBeenSet = true;
69 m_lockState = value;
70 }
72 SetLockState(value);
73 return *this;
74 }
76
78
81 inline int GetLockDuration() const { return m_lockDuration; }
82 inline void SetLockDuration(int value) {
83 m_lockDurationHasBeenSet = true;
84 m_lockDuration = value;
85 }
87 SetLockDuration(value);
88 return *this;
89 }
91
93
96 inline int GetCoolOffPeriod() const { return m_coolOffPeriod; }
97 inline void SetCoolOffPeriod(int value) {
98 m_coolOffPeriodHasBeenSet = true;
99 m_coolOffPeriod = value;
100 }
102 SetCoolOffPeriod(value);
103 return *this;
104 }
106
108
112 inline const Aws::Utils::DateTime& GetCoolOffPeriodExpiresOn() const { return m_coolOffPeriodExpiresOn; }
113 template <typename CoolOffPeriodExpiresOnT = Aws::Utils::DateTime>
114 void SetCoolOffPeriodExpiresOn(CoolOffPeriodExpiresOnT&& value) {
115 m_coolOffPeriodExpiresOnHasBeenSet = true;
116 m_coolOffPeriodExpiresOn = std::forward<CoolOffPeriodExpiresOnT>(value);
117 }
118 template <typename CoolOffPeriodExpiresOnT = Aws::Utils::DateTime>
119 LockSnapshotResponse& WithCoolOffPeriodExpiresOn(CoolOffPeriodExpiresOnT&& value) {
120 SetCoolOffPeriodExpiresOn(std::forward<CoolOffPeriodExpiresOnT>(value));
121 return *this;
122 }
124
126
130 inline const Aws::Utils::DateTime& GetLockCreatedOn() const { return m_lockCreatedOn; }
131 template <typename LockCreatedOnT = Aws::Utils::DateTime>
132 void SetLockCreatedOn(LockCreatedOnT&& value) {
133 m_lockCreatedOnHasBeenSet = true;
134 m_lockCreatedOn = std::forward<LockCreatedOnT>(value);
135 }
136 template <typename LockCreatedOnT = Aws::Utils::DateTime>
137 LockSnapshotResponse& WithLockCreatedOn(LockCreatedOnT&& value) {
138 SetLockCreatedOn(std::forward<LockCreatedOnT>(value));
139 return *this;
140 }
142
144
148 inline const Aws::Utils::DateTime& GetLockExpiresOn() const { return m_lockExpiresOn; }
149 template <typename LockExpiresOnT = Aws::Utils::DateTime>
150 void SetLockExpiresOn(LockExpiresOnT&& value) {
151 m_lockExpiresOnHasBeenSet = true;
152 m_lockExpiresOn = std::forward<LockExpiresOnT>(value);
153 }
154 template <typename LockExpiresOnT = Aws::Utils::DateTime>
155 LockSnapshotResponse& WithLockExpiresOn(LockExpiresOnT&& value) {
156 SetLockExpiresOn(std::forward<LockExpiresOnT>(value));
157 return *this;
158 }
160
162
166 inline const Aws::Utils::DateTime& GetLockDurationStartTime() const { return m_lockDurationStartTime; }
167 template <typename LockDurationStartTimeT = Aws::Utils::DateTime>
168 void SetLockDurationStartTime(LockDurationStartTimeT&& value) {
169 m_lockDurationStartTimeHasBeenSet = true;
170 m_lockDurationStartTime = std::forward<LockDurationStartTimeT>(value);
171 }
172 template <typename LockDurationStartTimeT = Aws::Utils::DateTime>
173 LockSnapshotResponse& WithLockDurationStartTime(LockDurationStartTimeT&& value) {
174 SetLockDurationStartTime(std::forward<LockDurationStartTimeT>(value));
175 return *this;
176 }
178
180
181 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
182 template <typename ResponseMetadataT = ResponseMetadata>
183 void SetResponseMetadata(ResponseMetadataT&& value) {
184 m_responseMetadataHasBeenSet = true;
185 m_responseMetadata = std::forward<ResponseMetadataT>(value);
186 }
187 template <typename ResponseMetadataT = ResponseMetadata>
188 LockSnapshotResponse& WithResponseMetadata(ResponseMetadataT&& value) {
189 SetResponseMetadata(std::forward<ResponseMetadataT>(value));
190 return *this;
191 }
193 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
194
195 private:
196 Aws::String m_snapshotId;
197
198 LockState m_lockState{LockState::NOT_SET};
199
200 int m_lockDuration{0};
201
202 int m_coolOffPeriod{0};
203
204 Aws::Utils::DateTime m_coolOffPeriodExpiresOn{};
205
206 Aws::Utils::DateTime m_lockCreatedOn{};
207
208 Aws::Utils::DateTime m_lockExpiresOn{};
209
210 Aws::Utils::DateTime m_lockDurationStartTime{};
211
212 ResponseMetadata m_responseMetadata;
213 Aws::Http::HttpResponseCode m_HttpResponseCode;
214 bool m_snapshotIdHasBeenSet = false;
215 bool m_lockStateHasBeenSet = false;
216 bool m_lockDurationHasBeenSet = false;
217 bool m_coolOffPeriodHasBeenSet = false;
218 bool m_coolOffPeriodExpiresOnHasBeenSet = false;
219 bool m_lockCreatedOnHasBeenSet = false;
220 bool m_lockExpiresOnHasBeenSet = false;
221 bool m_lockDurationStartTimeHasBeenSet = false;
222 bool m_responseMetadataHasBeenSet = false;
223};
224
225} // namespace Model
226} // namespace EC2
227} // namespace Aws
void SetLockCreatedOn(LockCreatedOnT &&value)
LockSnapshotResponse & WithCoolOffPeriod(int value)
LockSnapshotResponse & WithLockState(LockState value)
const Aws::Utils::DateTime & GetLockDurationStartTime() const
LockSnapshotResponse & WithLockExpiresOn(LockExpiresOnT &&value)
const Aws::Utils::DateTime & GetCoolOffPeriodExpiresOn() const
void SetResponseMetadata(ResponseMetadataT &&value)
LockSnapshotResponse & WithLockDuration(int value)
LockSnapshotResponse & WithSnapshotId(SnapshotIdT &&value)
const ResponseMetadata & GetResponseMetadata() const
LockSnapshotResponse & WithResponseMetadata(ResponseMetadataT &&value)
AWS_EC2_API LockSnapshotResponse(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
LockSnapshotResponse & WithLockDurationStartTime(LockDurationStartTimeT &&value)
void SetLockExpiresOn(LockExpiresOnT &&value)
const Aws::Utils::DateTime & GetLockExpiresOn() const
LockSnapshotResponse & WithLockCreatedOn(LockCreatedOnT &&value)
void SetLockDurationStartTime(LockDurationStartTimeT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
LockSnapshotResponse & WithCoolOffPeriodExpiresOn(CoolOffPeriodExpiresOnT &&value)
const Aws::Utils::DateTime & GetLockCreatedOn() const
AWS_EC2_API LockSnapshotResponse & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
AWS_EC2_API LockSnapshotResponse()=default
void SetCoolOffPeriodExpiresOn(CoolOffPeriodExpiresOnT &&value)
const Aws::String & GetSnapshotId() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Xml::XmlDocument XmlDocument