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>
17template <
typename RESULT_TYPE>
18class AmazonWebServiceResult;
38 template <
typename SnapshotIdT = Aws::String>
40 m_snapshotIdHasBeenSet =
true;
41 m_snapshotId = std::forward<SnapshotIdT>(value);
43 template <
typename SnapshotIdT = Aws::String>
68 m_lockStateHasBeenSet =
true;
83 m_lockDurationHasBeenSet =
true;
84 m_lockDuration = value;
98 m_coolOffPeriodHasBeenSet =
true;
99 m_coolOffPeriod = value;
113 template <
typename CoolOffPeriodExpiresOnT = Aws::Utils::DateTime>
115 m_coolOffPeriodExpiresOnHasBeenSet =
true;
116 m_coolOffPeriodExpiresOn = std::forward<CoolOffPeriodExpiresOnT>(value);
118 template <
typename CoolOffPeriodExpiresOnT = Aws::Utils::DateTime>
131 template <
typename LockCreatedOnT = Aws::Utils::DateTime>
133 m_lockCreatedOnHasBeenSet =
true;
134 m_lockCreatedOn = std::forward<LockCreatedOnT>(value);
136 template <
typename LockCreatedOnT = Aws::Utils::DateTime>
149 template <
typename LockExpiresOnT = Aws::Utils::DateTime>
151 m_lockExpiresOnHasBeenSet =
true;
152 m_lockExpiresOn = std::forward<LockExpiresOnT>(value);
154 template <
typename LockExpiresOnT = Aws::Utils::DateTime>
167 template <
typename LockDurationStartTimeT = Aws::Utils::DateTime>
169 m_lockDurationStartTimeHasBeenSet =
true;
170 m_lockDurationStartTime = std::forward<LockDurationStartTimeT>(value);
172 template <
typename LockDurationStartTimeT = Aws::Utils::DateTime>
182 template <
typename ResponseMetadataT = ResponseMetadata>
184 m_responseMetadataHasBeenSet =
true;
185 m_responseMetadata = std::forward<ResponseMetadataT>(value);
187 template <
typename ResponseMetadataT = ResponseMetadata>
200 int m_lockDuration{0};
202 int m_coolOffPeriod{0};
212 ResponseMetadata m_responseMetadata;
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;
void SetLockCreatedOn(LockCreatedOnT &&value)
LockSnapshotResponse & WithCoolOffPeriod(int value)
void SetSnapshotId(SnapshotIdT &&value)
LockSnapshotResponse & WithLockState(LockState value)
int GetCoolOffPeriod() const
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 SetLockDuration(int value)
int GetLockDuration() const
LockState GetLockState() const
void SetLockExpiresOn(LockExpiresOnT &&value)
void SetCoolOffPeriod(int value)
const Aws::Utils::DateTime & GetLockExpiresOn() const
LockSnapshotResponse & WithLockCreatedOn(LockCreatedOnT &&value)
void SetLockDurationStartTime(LockDurationStartTimeT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
LockSnapshotResponse & WithCoolOffPeriodExpiresOn(CoolOffPeriodExpiresOnT &&value)
void SetLockState(LockState 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