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/InstanceSnapshotState.h>
14#include <aws/lightsail/model/Tag.h>
15#include <aws/lightsail/model/Disk.h>
55 inline void SetName(
const char* value) { m_nameHasBeenSet =
true; m_name.assign(value); }
69 inline void SetArn(
Aws::String&& value) { m_arnHasBeenSet =
true; m_arn = std::move(value); }
70 inline void SetArn(
const char* value) { m_arnHasBeenSet =
true; m_arn.assign(value); }
86 inline void SetSupportCode(
const char* value) { m_supportCodeHasBeenSet =
true; m_supportCode.assign(value); }
167 inline void SetProgress(
const char* value) { m_progressHasBeenSet =
true; m_progress.assign(value); }
196 inline void SetFromInstanceName(
const char* value) { m_fromInstanceNameHasBeenSet =
true; m_fromInstanceName.assign(value); }
212 inline void SetFromInstanceArn(
const char* value) { m_fromInstanceArnHasBeenSet =
true; m_fromInstanceArn.assign(value); }
228 inline void SetFromBlueprintId(
const char* value) { m_fromBlueprintIdHasBeenSet =
true; m_fromBlueprintId.assign(value); }
243 inline void SetFromBundleId(
const char* value) { m_fromBundleIdHasBeenSet =
true; m_fromBundleId.assign(value); }
256 inline void SetIsFromAutoSnapshot(
bool value) { m_isFromAutoSnapshotHasBeenSet =
true; m_isFromAutoSnapshot = value; }
266 inline void SetSizeInGb(
int value) { m_sizeInGbHasBeenSet =
true; m_sizeInGb = value; }
272 bool m_nameHasBeenSet =
false;
275 bool m_arnHasBeenSet =
false;
278 bool m_supportCodeHasBeenSet =
false;
281 bool m_createdAtHasBeenSet =
false;
284 bool m_locationHasBeenSet =
false;
287 bool m_resourceTypeHasBeenSet =
false;
290 bool m_tagsHasBeenSet =
false;
293 bool m_stateHasBeenSet =
false;
296 bool m_progressHasBeenSet =
false;
299 bool m_fromAttachedDisksHasBeenSet =
false;
302 bool m_fromInstanceNameHasBeenSet =
false;
305 bool m_fromInstanceArnHasBeenSet =
false;
308 bool m_fromBlueprintIdHasBeenSet =
false;
311 bool m_fromBundleIdHasBeenSet =
false;
313 bool m_isFromAutoSnapshot;
314 bool m_isFromAutoSnapshotHasBeenSet =
false;
317 bool m_sizeInGbHasBeenSet =
false;
void SetFromBundleId(const char *value)
void SetProgress(Aws::String &&value)
const ResourceType & GetResourceType() const
void SetSizeInGb(int value)
InstanceSnapshot & AddFromAttachedDisks(Disk &&value)
void SetFromAttachedDisks(Aws::Vector< Disk > &&value)
bool ProgressHasBeenSet() const
InstanceSnapshot & WithFromAttachedDisks(Aws::Vector< Disk > &&value)
const Aws::String & GetProgress() const
void SetArn(Aws::String &&value)
InstanceSnapshot & WithProgress(const char *value)
InstanceSnapshot & WithFromInstanceArn(const char *value)
AWS_LIGHTSAIL_API InstanceSnapshot & operator=(Aws::Utils::Json::JsonView jsonValue)
InstanceSnapshot & WithFromInstanceArn(Aws::String &&value)
InstanceSnapshot & WithFromInstanceName(const Aws::String &value)
bool IsFromAutoSnapshotHasBeenSet() const
InstanceSnapshot & WithLocation(ResourceLocation &&value)
InstanceSnapshot & WithFromInstanceName(const char *value)
bool NameHasBeenSet() const
InstanceSnapshot & WithArn(Aws::String &&value)
void SetIsFromAutoSnapshot(bool value)
InstanceSnapshot & WithIsFromAutoSnapshot(bool value)
void SetFromInstanceArn(const Aws::String &value)
bool FromBundleIdHasBeenSet() const
void SetSupportCode(Aws::String &&value)
InstanceSnapshot & WithFromBundleId(const Aws::String &value)
void SetFromBlueprintId(const char *value)
void SetFromInstanceName(const Aws::String &value)
bool CreatedAtHasBeenSet() const
InstanceSnapshot & AddFromAttachedDisks(const Disk &value)
void SetFromInstanceArn(const char *value)
const ResourceLocation & GetLocation() const
AWS_LIGHTSAIL_API InstanceSnapshot(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetName() const
void SetName(const char *value)
InstanceSnapshot & WithState(const InstanceSnapshotState &value)
AWS_LIGHTSAIL_API InstanceSnapshot()
InstanceSnapshot & AddTags(Tag &&value)
bool FromBlueprintIdHasBeenSet() const
InstanceSnapshot & WithArn(const Aws::String &value)
InstanceSnapshot & WithFromBundleId(const char *value)
const Aws::String & GetSupportCode() const
void SetTags(const Aws::Vector< Tag > &value)
InstanceSnapshot & WithProgress(const Aws::String &value)
void SetState(InstanceSnapshotState &&value)
InstanceSnapshot & WithFromBlueprintId(Aws::String &&value)
InstanceSnapshot & WithArn(const char *value)
const Aws::String & GetArn() const
InstanceSnapshot & WithCreatedAt(Aws::Utils::DateTime &&value)
bool FromInstanceNameHasBeenSet() const
InstanceSnapshot & WithCreatedAt(const Aws::Utils::DateTime &value)
void SetState(const InstanceSnapshotState &value)
void SetArn(const Aws::String &value)
bool SupportCodeHasBeenSet() const
void SetTags(Aws::Vector< Tag > &&value)
void SetName(const Aws::String &value)
InstanceSnapshot & WithFromInstanceName(Aws::String &&value)
void SetCreatedAt(const Aws::Utils::DateTime &value)
bool GetIsFromAutoSnapshot() const
void SetLocation(ResourceLocation &&value)
void SetFromInstanceName(const char *value)
void SetFromBundleId(const Aws::String &value)
void SetProgress(const char *value)
InstanceSnapshot & WithName(const Aws::String &value)
void SetResourceType(ResourceType &&value)
void SetFromAttachedDisks(const Aws::Vector< Disk > &value)
void SetFromBundleId(Aws::String &&value)
void SetName(Aws::String &&value)
void SetCreatedAt(Aws::Utils::DateTime &&value)
void SetSupportCode(const char *value)
void SetResourceType(const ResourceType &value)
InstanceSnapshot & WithFromAttachedDisks(const Aws::Vector< Disk > &value)
InstanceSnapshot & WithProgress(Aws::String &&value)
InstanceSnapshot & WithName(const char *value)
InstanceSnapshot & WithResourceType(const ResourceType &value)
InstanceSnapshot & WithResourceType(ResourceType &&value)
InstanceSnapshot & WithSizeInGb(int value)
void SetFromBlueprintId(Aws::String &&value)
InstanceSnapshot & WithSupportCode(Aws::String &&value)
InstanceSnapshot & WithTags(Aws::Vector< Tag > &&value)
const InstanceSnapshotState & GetState() const
bool StateHasBeenSet() const
void SetSupportCode(const Aws::String &value)
InstanceSnapshot & WithFromBundleId(Aws::String &&value)
InstanceSnapshot & WithFromInstanceArn(const Aws::String &value)
bool LocationHasBeenSet() const
void SetFromBlueprintId(const Aws::String &value)
void SetFromInstanceName(Aws::String &&value)
void SetLocation(const ResourceLocation &value)
InstanceSnapshot & WithName(Aws::String &&value)
bool SizeInGbHasBeenSet() const
bool ArnHasBeenSet() const
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
InstanceSnapshot & AddTags(const Tag &value)
void SetProgress(const Aws::String &value)
InstanceSnapshot & WithSupportCode(const Aws::String &value)
InstanceSnapshot & WithFromBlueprintId(const Aws::String &value)
const Aws::String & GetFromInstanceName() const
const Aws::Utils::DateTime & GetCreatedAt() const
bool FromInstanceArnHasBeenSet() const
const Aws::Vector< Tag > & GetTags() const
bool TagsHasBeenSet() const
InstanceSnapshot & WithState(InstanceSnapshotState &&value)
const Aws::String & GetFromBundleId() const
const Aws::String & GetFromInstanceArn() const
InstanceSnapshot & WithFromBlueprintId(const char *value)
const Aws::String & GetFromBlueprintId() const
bool FromAttachedDisksHasBeenSet() const
const Aws::Vector< Disk > & GetFromAttachedDisks() const
bool ResourceTypeHasBeenSet() const
InstanceSnapshot & WithLocation(const ResourceLocation &value)
void SetFromInstanceArn(Aws::String &&value)
InstanceSnapshot & WithTags(const Aws::Vector< Tag > &value)
void SetArn(const char *value)
InstanceSnapshot & WithSupportCode(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