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/LockState.h>
11#include <aws/ec2/model/ResponseMetadata.h>
16template <
typename RESULT_TYPE>
17class AmazonWebServiceResult;
37 template <
typename SnapshotIdT = Aws::String>
39 m_snapshotIdHasBeenSet =
true;
40 m_snapshotId = std::forward<SnapshotIdT>(value);
42 template <
typename SnapshotIdT = Aws::String>
67 m_lockStateHasBeenSet =
true;
82 m_lockDurationHasBeenSet =
true;
83 m_lockDuration = value;
97 m_coolOffPeriodHasBeenSet =
true;
98 m_coolOffPeriod = value;
112 template <
typename CoolOffPeriodExpiresOnT = Aws::Utils::DateTime>
114 m_coolOffPeriodExpiresOnHasBeenSet =
true;
115 m_coolOffPeriodExpiresOn = std::forward<CoolOffPeriodExpiresOnT>(value);
117 template <
typename CoolOffPeriodExpiresOnT = Aws::Utils::DateTime>
130 template <
typename LockCreatedOnT = Aws::Utils::DateTime>
132 m_lockCreatedOnHasBeenSet =
true;
133 m_lockCreatedOn = std::forward<LockCreatedOnT>(value);
135 template <
typename LockCreatedOnT = Aws::Utils::DateTime>
148 template <
typename LockExpiresOnT = Aws::Utils::DateTime>
150 m_lockExpiresOnHasBeenSet =
true;
151 m_lockExpiresOn = std::forward<LockExpiresOnT>(value);
153 template <
typename LockExpiresOnT = Aws::Utils::DateTime>
166 template <
typename LockDurationStartTimeT = Aws::Utils::DateTime>
168 m_lockDurationStartTimeHasBeenSet =
true;
169 m_lockDurationStartTime = std::forward<LockDurationStartTimeT>(value);
171 template <
typename LockDurationStartTimeT = Aws::Utils::DateTime>
181 template <
typename ResponseMetadataT = ResponseMetadata>
183 m_responseMetadataHasBeenSet =
true;
184 m_responseMetadata = std::forward<ResponseMetadataT>(value);
186 template <
typename ResponseMetadataT = ResponseMetadata>
197 int m_lockDuration{0};
199 int m_coolOffPeriod{0};
209 ResponseMetadata m_responseMetadata;
210 bool m_snapshotIdHasBeenSet =
false;
211 bool m_lockStateHasBeenSet =
false;
212 bool m_lockDurationHasBeenSet =
false;
213 bool m_coolOffPeriodHasBeenSet =
false;
214 bool m_coolOffPeriodExpiresOnHasBeenSet =
false;
215 bool m_lockCreatedOnHasBeenSet =
false;
216 bool m_lockExpiresOnHasBeenSet =
false;
217 bool m_lockDurationStartTimeHasBeenSet =
false;
218 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)
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