7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ec2/EC2Request.h>
10#include <aws/ec2/EC2_EXPORTS.h>
11#include <aws/ec2/model/LockMode.h>
43 template <
typename SnapshotIdT = Aws::String>
45 m_snapshotIdHasBeenSet =
true;
46 m_snapshotId = std::forward<SnapshotIdT>(value);
48 template <
typename SnapshotIdT = Aws::String>
65 m_dryRunHasBeenSet =
true;
96 m_lockModeHasBeenSet =
true;
123 m_coolOffPeriodHasBeenSet =
true;
124 m_coolOffPeriod = value;
142 m_lockDurationHasBeenSet =
true;
143 m_lockDuration = value;
159 template <
typename ExpirationDateT = Aws::Utils::DateTime>
161 m_expirationDateHasBeenSet =
true;
162 m_expirationDate = std::forward<ExpirationDateT>(value);
164 template <
typename ExpirationDateT = Aws::Utils::DateTime>
173 bool m_dryRun{
false};
177 int m_coolOffPeriod{0};
179 int m_lockDuration{0};
182 bool m_snapshotIdHasBeenSet =
false;
183 bool m_dryRunHasBeenSet =
false;
184 bool m_lockModeHasBeenSet =
false;
185 bool m_coolOffPeriodHasBeenSet =
false;
186 bool m_lockDurationHasBeenSet =
false;
187 bool m_expirationDateHasBeenSet =
false;
LockSnapshotRequest & WithCoolOffPeriod(int value)
LockMode GetLockMode() const
int GetCoolOffPeriod() const
const Aws::String & GetSnapshotId() const
void SetSnapshotId(SnapshotIdT &&value)
const Aws::Utils::DateTime & GetExpirationDate() const
void SetCoolOffPeriod(int value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
LockSnapshotRequest & WithDryRun(bool value)
void SetExpirationDate(ExpirationDateT &&value)
LockSnapshotRequest & WithLockDuration(int value)
LockSnapshotRequest & WithExpirationDate(ExpirationDateT &&value)
LockSnapshotRequest & WithLockMode(LockMode value)
virtual const char * GetServiceRequestName() const override
AWS_EC2_API LockSnapshotRequest()=default
void SetDryRun(bool value)
int GetLockDuration() const
void SetLockMode(LockMode value)
bool SnapshotIdHasBeenSet() const
bool ExpirationDateHasBeenSet() const
LockSnapshotRequest & WithSnapshotId(SnapshotIdT &&value)
bool LockModeHasBeenSet() const
void SetLockDuration(int value)
bool DryRunHasBeenSet() const
bool LockDurationHasBeenSet() const
bool CoolOffPeriodHasBeenSet() const
AWS_EC2_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String