7#include <aws/lightsail/Lightsail_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/lightsail/model/ResourceLocation.h>
11#include <aws/lightsail/model/ResourceType.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/lightsail/model/DiskSnapshotState.h>
14#include <aws/lightsail/model/Tag.h>
54 inline void SetName(
const char* value) { m_nameHasBeenSet =
true; m_name.assign(value); }
67 inline void SetArn(
Aws::String&& value) { m_arnHasBeenSet =
true; m_arn = std::move(value); }
68 inline void SetArn(
const char* value) { m_arnHasBeenSet =
true; m_arn.assign(value); }
84 inline void SetSupportCode(
const char* value) { m_supportCodeHasBeenSet =
true; m_supportCode.assign(value); }
149 inline void SetSizeInGb(
int value) { m_sizeInGbHasBeenSet =
true; m_sizeInGb = value; }
173 inline void SetProgress(
const char* value) { m_progressHasBeenSet =
true; m_progress.assign(value); }
188 inline void SetFromDiskName(
const char* value) { m_fromDiskNameHasBeenSet =
true; m_fromDiskName.assign(value); }
203 inline void SetFromDiskArn(
const char* value) { m_fromDiskArnHasBeenSet =
true; m_fromDiskArn.assign(value); }
218 inline void SetFromInstanceName(
const char* value) { m_fromInstanceNameHasBeenSet =
true; m_fromInstanceName.assign(value); }
233 inline void SetFromInstanceArn(
const char* value) { m_fromInstanceArnHasBeenSet =
true; m_fromInstanceArn.assign(value); }
246 inline void SetIsFromAutoSnapshot(
bool value) { m_isFromAutoSnapshotHasBeenSet =
true; m_isFromAutoSnapshot = value; }
252 bool m_nameHasBeenSet =
false;
255 bool m_arnHasBeenSet =
false;
258 bool m_supportCodeHasBeenSet =
false;
261 bool m_createdAtHasBeenSet =
false;
264 bool m_locationHasBeenSet =
false;
267 bool m_resourceTypeHasBeenSet =
false;
270 bool m_tagsHasBeenSet =
false;
273 bool m_sizeInGbHasBeenSet =
false;
276 bool m_stateHasBeenSet =
false;
279 bool m_progressHasBeenSet =
false;
282 bool m_fromDiskNameHasBeenSet =
false;
285 bool m_fromDiskArnHasBeenSet =
false;
288 bool m_fromInstanceNameHasBeenSet =
false;
291 bool m_fromInstanceArnHasBeenSet =
false;
293 bool m_isFromAutoSnapshot;
294 bool m_isFromAutoSnapshotHasBeenSet =
false;
DiskSnapshot & WithSupportCode(const char *value)
void SetSupportCode(const Aws::String &value)
void SetName(const Aws::String &value)
bool ArnHasBeenSet() const
DiskSnapshot & WithIsFromAutoSnapshot(bool value)
void SetFromDiskArn(const char *value)
bool ProgressHasBeenSet() const
void SetArn(const char *value)
DiskSnapshot & WithName(const char *value)
DiskSnapshot & WithSupportCode(Aws::String &&value)
const DiskSnapshotState & GetState() const
const Aws::String & GetProgress() const
void SetSizeInGb(int value)
DiskSnapshot & WithCreatedAt(const Aws::Utils::DateTime &value)
void SetFromInstanceArn(const char *value)
DiskSnapshot & WithFromDiskArn(Aws::String &&value)
DiskSnapshot & AddTags(const Tag &value)
void SetFromInstanceName(const char *value)
bool FromDiskArnHasBeenSet() const
void SetFromDiskName(const Aws::String &value)
DiskSnapshot & WithFromDiskName(Aws::String &&value)
DiskSnapshot & WithLocation(ResourceLocation &&value)
void SetCreatedAt(Aws::Utils::DateTime &&value)
const Aws::String & GetFromDiskName() const
void SetState(const DiskSnapshotState &value)
void SetArn(Aws::String &&value)
DiskSnapshot & WithArn(Aws::String &&value)
bool GetIsFromAutoSnapshot() const
void SetFromInstanceName(const Aws::String &value)
void SetFromDiskArn(const Aws::String &value)
void SetFromInstanceArn(const Aws::String &value)
bool StateHasBeenSet() const
DiskSnapshot & WithFromInstanceName(const char *value)
DiskSnapshot & WithResourceType(const ResourceType &value)
DiskSnapshot & WithCreatedAt(Aws::Utils::DateTime &&value)
void SetLocation(ResourceLocation &&value)
DiskSnapshot & WithProgress(Aws::String &&value)
bool CreatedAtHasBeenSet() const
DiskSnapshot & WithProgress(const char *value)
bool FromDiskNameHasBeenSet() const
const Aws::String & GetFromInstanceArn() const
DiskSnapshot & WithFromInstanceArn(const char *value)
void SetFromDiskArn(Aws::String &&value)
void SetFromInstanceArn(Aws::String &&value)
void SetTags(Aws::Vector< Tag > &&value)
void SetName(Aws::String &&value)
DiskSnapshot & WithFromInstanceName(const Aws::String &value)
bool IsFromAutoSnapshotHasBeenSet() const
DiskSnapshot & WithState(const DiskSnapshotState &value)
AWS_LIGHTSAIL_API DiskSnapshot & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetTags(const Aws::Vector< Tag > &value)
void SetIsFromAutoSnapshot(bool value)
DiskSnapshot & WithName(const Aws::String &value)
const Aws::String & GetSupportCode() const
DiskSnapshot & WithArn(const Aws::String &value)
DiskSnapshot & AddTags(Tag &&value)
void SetFromDiskName(const char *value)
const Aws::String & GetFromInstanceName() const
AWS_LIGHTSAIL_API DiskSnapshot()
void SetProgress(const Aws::String &value)
const Aws::String & GetFromDiskArn() const
DiskSnapshot & WithFromInstanceArn(const Aws::String &value)
bool ResourceTypeHasBeenSet() const
void SetName(const char *value)
void SetCreatedAt(const Aws::Utils::DateTime &value)
DiskSnapshot & WithFromInstanceArn(Aws::String &&value)
DiskSnapshot & WithArn(const char *value)
bool SupportCodeHasBeenSet() const
void SetLocation(const ResourceLocation &value)
const ResourceType & GetResourceType() const
DiskSnapshot & WithFromDiskArn(const Aws::String &value)
DiskSnapshot & WithTags(Aws::Vector< Tag > &&value)
void SetResourceType(ResourceType &&value)
void SetArn(const Aws::String &value)
bool FromInstanceNameHasBeenSet() const
void SetProgress(const char *value)
void SetProgress(Aws::String &&value)
bool NameHasBeenSet() const
void SetFromInstanceName(Aws::String &&value)
void SetSupportCode(const char *value)
const Aws::Vector< Tag > & GetTags() const
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
DiskSnapshot & WithProgress(const Aws::String &value)
DiskSnapshot & WithResourceType(ResourceType &&value)
DiskSnapshot & WithState(DiskSnapshotState &&value)
DiskSnapshot & WithSizeInGb(int value)
DiskSnapshot & WithSupportCode(const Aws::String &value)
bool TagsHasBeenSet() const
bool FromInstanceArnHasBeenSet() const
bool SizeInGbHasBeenSet() const
DiskSnapshot & WithFromDiskArn(const char *value)
const Aws::String & GetArn() const
void SetSupportCode(Aws::String &&value)
DiskSnapshot & WithFromInstanceName(Aws::String &&value)
const ResourceLocation & GetLocation() const
AWS_LIGHTSAIL_API DiskSnapshot(Aws::Utils::Json::JsonView jsonValue)
DiskSnapshot & WithLocation(const ResourceLocation &value)
DiskSnapshot & WithFromDiskName(const Aws::String &value)
DiskSnapshot & WithName(Aws::String &&value)
void SetFromDiskName(Aws::String &&value)
const Aws::String & GetName() const
void SetResourceType(const ResourceType &value)
bool LocationHasBeenSet() const
DiskSnapshot & WithTags(const Aws::Vector< Tag > &value)
const Aws::Utils::DateTime & GetCreatedAt() const
void SetState(DiskSnapshotState &&value)
DiskSnapshot & WithFromDiskName(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue