7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ec2/model/LockState.h>
11#include <aws/core/utils/DateTime.h>
50 template<
typename OwnerIdT = Aws::String>
51 void SetOwnerId(OwnerIdT&& value) { m_ownerIdHasBeenSet =
true; m_ownerId = std::forward<OwnerIdT>(value); }
52 template<
typename OwnerIdT = Aws::String>
62 template<
typename SnapshotIdT = Aws::String>
63 void SetSnapshotId(SnapshotIdT&& value) { m_snapshotIdHasBeenSet =
true; m_snapshotId = std::forward<SnapshotIdT>(value); }
64 template<
typename SnapshotIdT = Aws::String>
96 inline void SetLockDuration(
int value) { m_lockDurationHasBeenSet =
true; m_lockDuration = value; }
106 inline void SetCoolOffPeriod(
int value) { m_coolOffPeriodHasBeenSet =
true; m_coolOffPeriod = value; }
117 template<
typename CoolOffPeriodExpiresOnT = Aws::Utils::DateTime>
118 void SetCoolOffPeriodExpiresOn(CoolOffPeriodExpiresOnT&& value) { m_coolOffPeriodExpiresOnHasBeenSet =
true; m_coolOffPeriodExpiresOn = std::forward<CoolOffPeriodExpiresOnT>(value); }
119 template<
typename CoolOffPeriodExpiresOnT = Aws::Utils::DateTime>
130 template<
typename LockCreatedOnT = Aws::Utils::DateTime>
131 void SetLockCreatedOn(LockCreatedOnT&& value) { m_lockCreatedOnHasBeenSet =
true; m_lockCreatedOn = std::forward<LockCreatedOnT>(value); }
132 template<
typename LockCreatedOnT = Aws::Utils::DateTime>
145 template<
typename LockDurationStartTimeT = Aws::Utils::DateTime>
146 void SetLockDurationStartTime(LockDurationStartTimeT&& value) { m_lockDurationStartTimeHasBeenSet =
true; m_lockDurationStartTime = std::forward<LockDurationStartTimeT>(value); }
147 template<
typename LockDurationStartTimeT = Aws::Utils::DateTime>
158 template<
typename LockExpiresOnT = Aws::Utils::DateTime>
159 void SetLockExpiresOn(LockExpiresOnT&& value) { m_lockExpiresOnHasBeenSet =
true; m_lockExpiresOn = std::forward<LockExpiresOnT>(value); }
160 template<
typename LockExpiresOnT = Aws::Utils::DateTime>
166 bool m_ownerIdHasBeenSet =
false;
169 bool m_snapshotIdHasBeenSet =
false;
172 bool m_lockStateHasBeenSet =
false;
174 int m_lockDuration{0};
175 bool m_lockDurationHasBeenSet =
false;
177 int m_coolOffPeriod{0};
178 bool m_coolOffPeriodHasBeenSet =
false;
181 bool m_coolOffPeriodExpiresOnHasBeenSet =
false;
184 bool m_lockCreatedOnHasBeenSet =
false;
187 bool m_lockDurationStartTimeHasBeenSet =
false;
190 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