7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ec2/model/LockState.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/ec2/model/ResponseMetadata.h>
16template<
typename RESULT_TYPE>
17class AmazonWebServiceResult;
43 template<
typename SnapshotIdT = Aws::String>
44 void SetSnapshotId(SnapshotIdT&& value) { m_snapshotIdHasBeenSet =
true; m_snapshotId = std::forward<SnapshotIdT>(value); }
45 template<
typename SnapshotIdT = Aws::String>
75 inline void SetLockDuration(
int value) { m_lockDurationHasBeenSet =
true; m_lockDuration = value; }
84 inline void SetCoolOffPeriod(
int value) { m_coolOffPeriodHasBeenSet =
true; m_coolOffPeriod = value; }
94 template<
typename CoolOffPeriodExpiresOnT = Aws::Utils::DateTime>
95 void SetCoolOffPeriodExpiresOn(CoolOffPeriodExpiresOnT&& value) { m_coolOffPeriodExpiresOnHasBeenSet =
true; m_coolOffPeriodExpiresOn = std::forward<CoolOffPeriodExpiresOnT>(value); }
96 template<
typename CoolOffPeriodExpiresOnT = Aws::Utils::DateTime>
106 template<
typename LockCreatedOnT = Aws::Utils::DateTime>
107 void SetLockCreatedOn(LockCreatedOnT&& value) { m_lockCreatedOnHasBeenSet =
true; m_lockCreatedOn = std::forward<LockCreatedOnT>(value); }
108 template<
typename LockCreatedOnT = Aws::Utils::DateTime>
118 template<
typename LockExpiresOnT = Aws::Utils::DateTime>
119 void SetLockExpiresOn(LockExpiresOnT&& value) { m_lockExpiresOnHasBeenSet =
true; m_lockExpiresOn = std::forward<LockExpiresOnT>(value); }
120 template<
typename LockExpiresOnT = Aws::Utils::DateTime>
130 template<
typename LockDurationStartTimeT = Aws::Utils::DateTime>
131 void SetLockDurationStartTime(LockDurationStartTimeT&& value) { m_lockDurationStartTimeHasBeenSet =
true; m_lockDurationStartTime = std::forward<LockDurationStartTimeT>(value); }
132 template<
typename LockDurationStartTimeT = Aws::Utils::DateTime>
139 template<
typename ResponseMetadataT = ResponseMetadata>
140 void SetResponseMetadata(ResponseMetadataT&& value) { m_responseMetadataHasBeenSet =
true; m_responseMetadata = std::forward<ResponseMetadataT>(value); }
141 template<
typename ResponseMetadataT = ResponseMetadata>
147 bool m_snapshotIdHasBeenSet =
false;
150 bool m_lockStateHasBeenSet =
false;
152 int m_lockDuration{0};
153 bool m_lockDurationHasBeenSet =
false;
155 int m_coolOffPeriod{0};
156 bool m_coolOffPeriodHasBeenSet =
false;
159 bool m_coolOffPeriodExpiresOnHasBeenSet =
false;
162 bool m_lockCreatedOnHasBeenSet =
false;
165 bool m_lockExpiresOnHasBeenSet =
false;
168 bool m_lockDurationStartTimeHasBeenSet =
false;
170 ResponseMetadata m_responseMetadata;
171 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