7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ec2/model/LockMode.h>
11#include <aws/core/utils/DateTime.h>
49 inline void SetSnapshotId(
const char* value) { m_snapshotIdHasBeenSet =
true; m_snapshotId.assign(value); }
64 inline void SetDryRun(
bool value) { m_dryRunHasBeenSet =
true; m_dryRun = value; }
90 inline void SetLockMode(
LockMode&& value) { m_lockModeHasBeenSet =
true; m_lockMode = std::move(value); }
112 inline void SetCoolOffPeriod(
int value) { m_coolOffPeriodHasBeenSet =
true; m_coolOffPeriod = value; }
125 inline void SetLockDuration(
int value) { m_lockDurationHasBeenSet =
true; m_lockDuration = value; }
145 bool m_snapshotIdHasBeenSet =
false;
148 bool m_dryRunHasBeenSet =
false;
151 bool m_lockModeHasBeenSet =
false;
154 bool m_coolOffPeriodHasBeenSet =
false;
157 bool m_lockDurationHasBeenSet =
false;
160 bool m_expirationDateHasBeenSet =
false;
LockSnapshotRequest & WithCoolOffPeriod(int value)
int GetCoolOffPeriod() const
const Aws::String & GetSnapshotId() const
const Aws::Utils::DateTime & GetExpirationDate() const
void SetSnapshotId(Aws::String &&value)
void SetCoolOffPeriod(int value)
LockSnapshotRequest & WithSnapshotId(Aws::String &&value)
LockSnapshotRequest & WithSnapshotId(const char *value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
LockSnapshotRequest & WithSnapshotId(const Aws::String &value)
AWS_EC2_API LockSnapshotRequest()
LockSnapshotRequest & WithDryRun(bool value)
LockSnapshotRequest & WithLockMode(LockMode &&value)
LockSnapshotRequest & WithLockDuration(int value)
virtual const char * GetServiceRequestName() const override
void SetDryRun(bool value)
int GetLockDuration() const
bool SnapshotIdHasBeenSet() const
void SetExpirationDate(const Aws::Utils::DateTime &value)
LockSnapshotRequest & WithExpirationDate(Aws::Utils::DateTime &&value)
void SetLockMode(const LockMode &value)
const LockMode & GetLockMode() const
LockSnapshotRequest & WithExpirationDate(const Aws::Utils::DateTime &value)
bool ExpirationDateHasBeenSet() const
void SetSnapshotId(const char *value)
LockSnapshotRequest & WithLockMode(const LockMode &value)
bool LockModeHasBeenSet() const
void SetLockDuration(int value)
bool DryRunHasBeenSet() const
bool LockDurationHasBeenSet() const
void SetExpirationDate(Aws::Utils::DateTime &&value)
void SetSnapshotId(const Aws::String &value)
void SetLockMode(LockMode &&value)
bool CoolOffPeriodHasBeenSet() const
AWS_EC2_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String