7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ec2/EC2_EXPORTS.h>
11#include <aws/ec2/model/LockState.h>
44 template <
typename OwnerIdT = Aws::String>
46 m_ownerIdHasBeenSet =
true;
47 m_ownerId = std::forward<OwnerIdT>(value);
49 template <
typename OwnerIdT = Aws::String>
62 template <
typename SnapshotIdT = Aws::String>
64 m_snapshotIdHasBeenSet =
true;
65 m_snapshotId = std::forward<SnapshotIdT>(value);
67 template <
typename SnapshotIdT = Aws::String>
93 m_lockStateHasBeenSet =
true;
109 m_lockDurationHasBeenSet =
true;
110 m_lockDuration = value;
125 m_coolOffPeriodHasBeenSet =
true;
126 m_coolOffPeriod = value;
141 template <
typename CoolOffPeriodExpiresOnT = Aws::Utils::DateTime>
143 m_coolOffPeriodExpiresOnHasBeenSet =
true;
144 m_coolOffPeriodExpiresOn = std::forward<CoolOffPeriodExpiresOnT>(value);
146 template <
typename CoolOffPeriodExpiresOnT = Aws::Utils::DateTime>
160 template <
typename LockCreatedOnT = Aws::Utils::DateTime>
162 m_lockCreatedOnHasBeenSet =
true;
163 m_lockCreatedOn = std::forward<LockCreatedOnT>(value);
165 template <
typename LockCreatedOnT = Aws::Utils::DateTime>
181 template <
typename LockDurationStartTimeT = Aws::Utils::DateTime>
183 m_lockDurationStartTimeHasBeenSet =
true;
184 m_lockDurationStartTime = std::forward<LockDurationStartTimeT>(value);
186 template <
typename LockDurationStartTimeT = Aws::Utils::DateTime>
200 template <
typename LockExpiresOnT = Aws::Utils::DateTime>
202 m_lockExpiresOnHasBeenSet =
true;
203 m_lockExpiresOn = std::forward<LockExpiresOnT>(value);
205 template <
typename LockExpiresOnT = Aws::Utils::DateTime>
218 int m_lockDuration{0};
220 int m_coolOffPeriod{0};
229 bool m_ownerIdHasBeenSet =
false;
230 bool m_snapshotIdHasBeenSet =
false;
231 bool m_lockStateHasBeenSet =
false;
232 bool m_lockDurationHasBeenSet =
false;
233 bool m_coolOffPeriodHasBeenSet =
false;
234 bool m_coolOffPeriodExpiresOnHasBeenSet =
false;
235 bool m_lockCreatedOnHasBeenSet =
false;
236 bool m_lockDurationStartTimeHasBeenSet =
false;
237 bool m_lockExpiresOnHasBeenSet =
false;
void SetOwnerId(OwnerIdT &&value)
bool CoolOffPeriodHasBeenSet() const
bool LockExpiresOnHasBeenSet() const
bool CoolOffPeriodExpiresOnHasBeenSet() const
LockedSnapshotsInfo & WithOwnerId(OwnerIdT &&value)
AWS_EC2_API LockedSnapshotsInfo()=default
int GetLockDuration() const
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const Aws::Utils::DateTime & GetLockExpiresOn() const
bool LockDurationStartTimeHasBeenSet() const
void SetLockCreatedOn(LockCreatedOnT &&value)
AWS_EC2_API LockedSnapshotsInfo & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
LockedSnapshotsInfo & WithLockCreatedOn(LockCreatedOnT &&value)
const Aws::String & GetOwnerId() const
LockedSnapshotsInfo & WithLockDuration(int value)
const Aws::Utils::DateTime & GetCoolOffPeriodExpiresOn() const
void SetLockExpiresOn(LockExpiresOnT &&value)
void SetCoolOffPeriodExpiresOn(CoolOffPeriodExpiresOnT &&value)
void SetCoolOffPeriod(int value)
int GetCoolOffPeriod() const
LockedSnapshotsInfo & WithLockDurationStartTime(LockDurationStartTimeT &&value)
LockState GetLockState() const
void SetLockState(LockState value)
LockedSnapshotsInfo & WithLockState(LockState value)
AWS_EC2_API LockedSnapshotsInfo(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetLockDuration(int value)
bool LockStateHasBeenSet() const
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const Aws::String & GetSnapshotId() const
LockedSnapshotsInfo & WithCoolOffPeriodExpiresOn(CoolOffPeriodExpiresOnT &&value)
LockedSnapshotsInfo & WithSnapshotId(SnapshotIdT &&value)
LockedSnapshotsInfo & WithLockExpiresOn(LockExpiresOnT &&value)
void SetLockDurationStartTime(LockDurationStartTimeT &&value)
bool LockCreatedOnHasBeenSet() const
const Aws::Utils::DateTime & GetLockCreatedOn() const
const Aws::Utils::DateTime & GetLockDurationStartTime() const
bool OwnerIdHasBeenSet() const
LockedSnapshotsInfo & WithCoolOffPeriod(int value)
bool LockDurationHasBeenSet() const
void SetSnapshotId(SnapshotIdT &&value)
bool SnapshotIdHasBeenSet() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream