7#include <aws/lightsail/Lightsail_EXPORTS.h>
8#include <aws/lightsail/LightsailRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/lightsail/model/Tag.h>
12#include <aws/lightsail/model/AddOnRequest.h>
48 inline void SetDiskName(
const char* value) { m_diskNameHasBeenSet =
true; m_diskName.assign(value); }
66 inline void SetDiskSnapshotName(
const char* value) { m_diskSnapshotNameHasBeenSet =
true; m_diskSnapshotName.assign(value); }
83 inline void SetAvailabilityZone(
const char* value) { m_availabilityZoneHasBeenSet =
true; m_availabilityZone.assign(value); }
95 inline void SetSizeInGb(
int value) { m_sizeInGbHasBeenSet =
true; m_sizeInGb = value; }
145 inline void SetSourceDiskName(
const char* value) { m_sourceDiskNameHasBeenSet =
true; m_sourceDiskName.assign(value); }
169 inline void SetRestoreDate(
const char* value) { m_restoreDateHasBeenSet =
true; m_restoreDate.assign(value); }
194 bool m_diskNameHasBeenSet =
false;
197 bool m_diskSnapshotNameHasBeenSet =
false;
200 bool m_availabilityZoneHasBeenSet =
false;
203 bool m_sizeInGbHasBeenSet =
false;
206 bool m_tagsHasBeenSet =
false;
209 bool m_addOnsHasBeenSet =
false;
212 bool m_sourceDiskNameHasBeenSet =
false;
215 bool m_restoreDateHasBeenSet =
false;
217 bool m_useLatestRestorableAutoSnapshot;
218 bool m_useLatestRestorableAutoSnapshotHasBeenSet =
false;
CreateDiskFromSnapshotRequest & WithRestoreDate(Aws::String &&value)
CreateDiskFromSnapshotRequest & WithSourceDiskName(Aws::String &&value)
CreateDiskFromSnapshotRequest & AddAddOns(AddOnRequest &&value)
CreateDiskFromSnapshotRequest & AddTags(const Tag &value)
void SetDiskSnapshotName(const Aws::String &value)
void SetUseLatestRestorableAutoSnapshot(bool value)
CreateDiskFromSnapshotRequest & WithDiskName(const char *value)
CreateDiskFromSnapshotRequest & AddTags(Tag &&value)
CreateDiskFromSnapshotRequest & WithDiskName(Aws::String &&value)
CreateDiskFromSnapshotRequest & WithAddOns(Aws::Vector< AddOnRequest > &&value)
CreateDiskFromSnapshotRequest & WithSourceDiskName(const Aws::String &value)
CreateDiskFromSnapshotRequest & WithSizeInGb(int value)
CreateDiskFromSnapshotRequest & WithTags(Aws::Vector< Tag > &&value)
void SetAvailabilityZone(Aws::String &&value)
bool GetUseLatestRestorableAutoSnapshot() const
CreateDiskFromSnapshotRequest & WithAvailabilityZone(const char *value)
bool TagsHasBeenSet() const
const Aws::String & GetAvailabilityZone() const
bool AvailabilityZoneHasBeenSet() const
CreateDiskFromSnapshotRequest & WithDiskSnapshotName(Aws::String &&value)
CreateDiskFromSnapshotRequest & WithDiskSnapshotName(const Aws::String &value)
void SetRestoreDate(const Aws::String &value)
void SetRestoreDate(const char *value)
CreateDiskFromSnapshotRequest & AddAddOns(const AddOnRequest &value)
CreateDiskFromSnapshotRequest & WithSourceDiskName(const char *value)
AWS_LIGHTSAIL_API CreateDiskFromSnapshotRequest()
bool RestoreDateHasBeenSet() const
void SetSourceDiskName(const Aws::String &value)
const Aws::String & GetDiskName() const
CreateDiskFromSnapshotRequest & WithRestoreDate(const Aws::String &value)
const Aws::String & GetSourceDiskName() const
CreateDiskFromSnapshotRequest & WithAvailabilityZone(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
bool SizeInGbHasBeenSet() const
AWS_LIGHTSAIL_API Aws::String SerializePayload() const override
void SetTags(const Aws::Vector< Tag > &value)
void SetTags(Aws::Vector< Tag > &&value)
void SetDiskSnapshotName(const char *value)
bool UseLatestRestorableAutoSnapshotHasBeenSet() const
const Aws::Vector< AddOnRequest > & GetAddOns() const
void SetSizeInGb(int value)
void SetRestoreDate(Aws::String &&value)
void SetDiskName(Aws::String &&value)
const Aws::String & GetRestoreDate() const
void SetAvailabilityZone(const char *value)
bool SourceDiskNameHasBeenSet() const
CreateDiskFromSnapshotRequest & WithAvailabilityZone(const Aws::String &value)
void SetAvailabilityZone(const Aws::String &value)
void SetSourceDiskName(Aws::String &&value)
const Aws::String & GetDiskSnapshotName() const
void SetDiskName(const Aws::String &value)
void SetAddOns(const Aws::Vector< AddOnRequest > &value)
void SetDiskName(const char *value)
CreateDiskFromSnapshotRequest & WithDiskSnapshotName(const char *value)
void SetDiskSnapshotName(Aws::String &&value)
AWS_LIGHTSAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateDiskFromSnapshotRequest & WithRestoreDate(const char *value)
CreateDiskFromSnapshotRequest & WithDiskName(const Aws::String &value)
CreateDiskFromSnapshotRequest & WithAddOns(const Aws::Vector< AddOnRequest > &value)
bool AddOnsHasBeenSet() const
CreateDiskFromSnapshotRequest & WithTags(const Aws::Vector< Tag > &value)
const Aws::Vector< Tag > & GetTags() const
bool DiskNameHasBeenSet() const
void SetAddOns(Aws::Vector< AddOnRequest > &&value)
void SetSourceDiskName(const char *value)
bool DiskSnapshotNameHasBeenSet() const
CreateDiskFromSnapshotRequest & WithUseLatestRestorableAutoSnapshot(bool value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector