/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Lightsail { namespace Model { /** *

Describes an instance snapshot.

See Also:

AWS * API Reference

*/ class InstanceSnapshot { public: AWS_LIGHTSAIL_API InstanceSnapshot(); AWS_LIGHTSAIL_API InstanceSnapshot(Aws::Utils::Json::JsonView jsonValue); AWS_LIGHTSAIL_API InstanceSnapshot& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The name of the snapshot.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the snapshot.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the snapshot.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the snapshot.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the snapshot.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the snapshot.

*/ inline InstanceSnapshot& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the snapshot.

*/ inline InstanceSnapshot& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the snapshot.

*/ inline InstanceSnapshot& WithName(const char* value) { SetName(value); return *this;} /** *

The Amazon Resource Name (ARN) of the snapshot (e.g., * arn:aws:lightsail:us-east-2:123456789101:InstanceSnapshot/d23b5706-3322-4d83-81e5-12345EXAMPLE).

*/ inline const Aws::String& GetArn() const{ return m_arn; } /** *

The Amazon Resource Name (ARN) of the snapshot (e.g., * arn:aws:lightsail:us-east-2:123456789101:InstanceSnapshot/d23b5706-3322-4d83-81e5-12345EXAMPLE).

*/ inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the snapshot (e.g., * arn:aws:lightsail:us-east-2:123456789101:InstanceSnapshot/d23b5706-3322-4d83-81e5-12345EXAMPLE).

*/ inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } /** *

The Amazon Resource Name (ARN) of the snapshot (e.g., * arn:aws:lightsail:us-east-2:123456789101:InstanceSnapshot/d23b5706-3322-4d83-81e5-12345EXAMPLE).

*/ inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the snapshot (e.g., * arn:aws:lightsail:us-east-2:123456789101:InstanceSnapshot/d23b5706-3322-4d83-81e5-12345EXAMPLE).

*/ inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } /** *

The Amazon Resource Name (ARN) of the snapshot (e.g., * arn:aws:lightsail:us-east-2:123456789101:InstanceSnapshot/d23b5706-3322-4d83-81e5-12345EXAMPLE).

*/ inline InstanceSnapshot& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the snapshot (e.g., * arn:aws:lightsail:us-east-2:123456789101:InstanceSnapshot/d23b5706-3322-4d83-81e5-12345EXAMPLE).

*/ inline InstanceSnapshot& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the snapshot (e.g., * arn:aws:lightsail:us-east-2:123456789101:InstanceSnapshot/d23b5706-3322-4d83-81e5-12345EXAMPLE).

*/ inline InstanceSnapshot& WithArn(const char* value) { SetArn(value); return *this;} /** *

The support code. Include this code in your email to support when you have * questions about an instance or another resource in Lightsail. This code enables * our support team to look up your Lightsail information more easily.

*/ inline const Aws::String& GetSupportCode() const{ return m_supportCode; } /** *

The support code. Include this code in your email to support when you have * questions about an instance or another resource in Lightsail. This code enables * our support team to look up your Lightsail information more easily.

*/ inline bool SupportCodeHasBeenSet() const { return m_supportCodeHasBeenSet; } /** *

The support code. Include this code in your email to support when you have * questions about an instance or another resource in Lightsail. This code enables * our support team to look up your Lightsail information more easily.

*/ inline void SetSupportCode(const Aws::String& value) { m_supportCodeHasBeenSet = true; m_supportCode = value; } /** *

The support code. Include this code in your email to support when you have * questions about an instance or another resource in Lightsail. This code enables * our support team to look up your Lightsail information more easily.

*/ inline void SetSupportCode(Aws::String&& value) { m_supportCodeHasBeenSet = true; m_supportCode = std::move(value); } /** *

The support code. Include this code in your email to support when you have * questions about an instance or another resource in Lightsail. This code enables * our support team to look up your Lightsail information more easily.

*/ inline void SetSupportCode(const char* value) { m_supportCodeHasBeenSet = true; m_supportCode.assign(value); } /** *

The support code. Include this code in your email to support when you have * questions about an instance or another resource in Lightsail. This code enables * our support team to look up your Lightsail information more easily.

*/ inline InstanceSnapshot& WithSupportCode(const Aws::String& value) { SetSupportCode(value); return *this;} /** *

The support code. Include this code in your email to support when you have * questions about an instance or another resource in Lightsail. This code enables * our support team to look up your Lightsail information more easily.

*/ inline InstanceSnapshot& WithSupportCode(Aws::String&& value) { SetSupportCode(std::move(value)); return *this;} /** *

The support code. Include this code in your email to support when you have * questions about an instance or another resource in Lightsail. This code enables * our support team to look up your Lightsail information more easily.

*/ inline InstanceSnapshot& WithSupportCode(const char* value) { SetSupportCode(value); return *this;} /** *

The timestamp when the snapshot was created (e.g., * 1479907467.024).

*/ inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; } /** *

The timestamp when the snapshot was created (e.g., * 1479907467.024).

*/ inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; } /** *

The timestamp when the snapshot was created (e.g., * 1479907467.024).

*/ inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; } /** *

The timestamp when the snapshot was created (e.g., * 1479907467.024).

*/ inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); } /** *

The timestamp when the snapshot was created (e.g., * 1479907467.024).

*/ inline InstanceSnapshot& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;} /** *

The timestamp when the snapshot was created (e.g., * 1479907467.024).

*/ inline InstanceSnapshot& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;} /** *

The region name and Availability Zone where you created the snapshot.

*/ inline const ResourceLocation& GetLocation() const{ return m_location; } /** *

The region name and Availability Zone where you created the snapshot.

*/ inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; } /** *

The region name and Availability Zone where you created the snapshot.

*/ inline void SetLocation(const ResourceLocation& value) { m_locationHasBeenSet = true; m_location = value; } /** *

The region name and Availability Zone where you created the snapshot.

*/ inline void SetLocation(ResourceLocation&& value) { m_locationHasBeenSet = true; m_location = std::move(value); } /** *

The region name and Availability Zone where you created the snapshot.

*/ inline InstanceSnapshot& WithLocation(const ResourceLocation& value) { SetLocation(value); return *this;} /** *

The region name and Availability Zone where you created the snapshot.

*/ inline InstanceSnapshot& WithLocation(ResourceLocation&& value) { SetLocation(std::move(value)); return *this;} /** *

The type of resource (usually InstanceSnapshot).

*/ inline const ResourceType& GetResourceType() const{ return m_resourceType; } /** *

The type of resource (usually InstanceSnapshot).

*/ inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; } /** *

The type of resource (usually InstanceSnapshot).

*/ inline void SetResourceType(const ResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; } /** *

The type of resource (usually InstanceSnapshot).

*/ inline void SetResourceType(ResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); } /** *

The type of resource (usually InstanceSnapshot).

*/ inline InstanceSnapshot& WithResourceType(const ResourceType& value) { SetResourceType(value); return *this;} /** *

The type of resource (usually InstanceSnapshot).

*/ inline InstanceSnapshot& WithResourceType(ResourceType&& value) { SetResourceType(std::move(value)); return *this;} /** *

The tag keys and optional values for the resource. For more information about * tags in Lightsail, see the Amazon * Lightsail Developer Guide.

*/ inline const Aws::Vector& GetTags() const{ return m_tags; } /** *

The tag keys and optional values for the resource. For more information about * tags in Lightsail, see the Amazon * Lightsail Developer Guide.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

The tag keys and optional values for the resource. For more information about * tags in Lightsail, see the Amazon * Lightsail Developer Guide.

*/ inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

The tag keys and optional values for the resource. For more information about * tags in Lightsail, see the Amazon * Lightsail Developer Guide.

*/ inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

The tag keys and optional values for the resource. For more information about * tags in Lightsail, see the Amazon * Lightsail Developer Guide.

*/ inline InstanceSnapshot& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

The tag keys and optional values for the resource. For more information about * tags in Lightsail, see the Amazon * Lightsail Developer Guide.

*/ inline InstanceSnapshot& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} /** *

The tag keys and optional values for the resource. For more information about * tags in Lightsail, see the Amazon * Lightsail Developer Guide.

*/ inline InstanceSnapshot& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

The tag keys and optional values for the resource. For more information about * tags in Lightsail, see the Amazon * Lightsail Developer Guide.

*/ inline InstanceSnapshot& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } /** *

The state the snapshot is in.

*/ inline const InstanceSnapshotState& GetState() const{ return m_state; } /** *

The state the snapshot is in.

*/ inline bool StateHasBeenSet() const { return m_stateHasBeenSet; } /** *

The state the snapshot is in.

*/ inline void SetState(const InstanceSnapshotState& value) { m_stateHasBeenSet = true; m_state = value; } /** *

The state the snapshot is in.

*/ inline void SetState(InstanceSnapshotState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); } /** *

The state the snapshot is in.

*/ inline InstanceSnapshot& WithState(const InstanceSnapshotState& value) { SetState(value); return *this;} /** *

The state the snapshot is in.

*/ inline InstanceSnapshot& WithState(InstanceSnapshotState&& value) { SetState(std::move(value)); return *this;} /** *

The progress of the snapshot.

This is populated only for disk * snapshots, and is null for instance snapshots.

*/ inline const Aws::String& GetProgress() const{ return m_progress; } /** *

The progress of the snapshot.

This is populated only for disk * snapshots, and is null for instance snapshots.

*/ inline bool ProgressHasBeenSet() const { return m_progressHasBeenSet; } /** *

The progress of the snapshot.

This is populated only for disk * snapshots, and is null for instance snapshots.

*/ inline void SetProgress(const Aws::String& value) { m_progressHasBeenSet = true; m_progress = value; } /** *

The progress of the snapshot.

This is populated only for disk * snapshots, and is null for instance snapshots.

*/ inline void SetProgress(Aws::String&& value) { m_progressHasBeenSet = true; m_progress = std::move(value); } /** *

The progress of the snapshot.

This is populated only for disk * snapshots, and is null for instance snapshots.

*/ inline void SetProgress(const char* value) { m_progressHasBeenSet = true; m_progress.assign(value); } /** *

The progress of the snapshot.

This is populated only for disk * snapshots, and is null for instance snapshots.

*/ inline InstanceSnapshot& WithProgress(const Aws::String& value) { SetProgress(value); return *this;} /** *

The progress of the snapshot.

This is populated only for disk * snapshots, and is null for instance snapshots.

*/ inline InstanceSnapshot& WithProgress(Aws::String&& value) { SetProgress(std::move(value)); return *this;} /** *

The progress of the snapshot.

This is populated only for disk * snapshots, and is null for instance snapshots.

*/ inline InstanceSnapshot& WithProgress(const char* value) { SetProgress(value); return *this;} /** *

An array of disk objects containing information about all block storage * disks.

*/ inline const Aws::Vector& GetFromAttachedDisks() const{ return m_fromAttachedDisks; } /** *

An array of disk objects containing information about all block storage * disks.

*/ inline bool FromAttachedDisksHasBeenSet() const { return m_fromAttachedDisksHasBeenSet; } /** *

An array of disk objects containing information about all block storage * disks.

*/ inline void SetFromAttachedDisks(const Aws::Vector& value) { m_fromAttachedDisksHasBeenSet = true; m_fromAttachedDisks = value; } /** *

An array of disk objects containing information about all block storage * disks.

*/ inline void SetFromAttachedDisks(Aws::Vector&& value) { m_fromAttachedDisksHasBeenSet = true; m_fromAttachedDisks = std::move(value); } /** *

An array of disk objects containing information about all block storage * disks.

*/ inline InstanceSnapshot& WithFromAttachedDisks(const Aws::Vector& value) { SetFromAttachedDisks(value); return *this;} /** *

An array of disk objects containing information about all block storage * disks.

*/ inline InstanceSnapshot& WithFromAttachedDisks(Aws::Vector&& value) { SetFromAttachedDisks(std::move(value)); return *this;} /** *

An array of disk objects containing information about all block storage * disks.

*/ inline InstanceSnapshot& AddFromAttachedDisks(const Disk& value) { m_fromAttachedDisksHasBeenSet = true; m_fromAttachedDisks.push_back(value); return *this; } /** *

An array of disk objects containing information about all block storage * disks.

*/ inline InstanceSnapshot& AddFromAttachedDisks(Disk&& value) { m_fromAttachedDisksHasBeenSet = true; m_fromAttachedDisks.push_back(std::move(value)); return *this; } /** *

The instance from which the snapshot was created.

*/ inline const Aws::String& GetFromInstanceName() const{ return m_fromInstanceName; } /** *

The instance from which the snapshot was created.

*/ inline bool FromInstanceNameHasBeenSet() const { return m_fromInstanceNameHasBeenSet; } /** *

The instance from which the snapshot was created.

*/ inline void SetFromInstanceName(const Aws::String& value) { m_fromInstanceNameHasBeenSet = true; m_fromInstanceName = value; } /** *

The instance from which the snapshot was created.

*/ inline void SetFromInstanceName(Aws::String&& value) { m_fromInstanceNameHasBeenSet = true; m_fromInstanceName = std::move(value); } /** *

The instance from which the snapshot was created.

*/ inline void SetFromInstanceName(const char* value) { m_fromInstanceNameHasBeenSet = true; m_fromInstanceName.assign(value); } /** *

The instance from which the snapshot was created.

*/ inline InstanceSnapshot& WithFromInstanceName(const Aws::String& value) { SetFromInstanceName(value); return *this;} /** *

The instance from which the snapshot was created.

*/ inline InstanceSnapshot& WithFromInstanceName(Aws::String&& value) { SetFromInstanceName(std::move(value)); return *this;} /** *

The instance from which the snapshot was created.

*/ inline InstanceSnapshot& WithFromInstanceName(const char* value) { SetFromInstanceName(value); return *this;} /** *

The Amazon Resource Name (ARN) of the instance from which the snapshot was * created (e.g., * arn:aws:lightsail:us-east-2:123456789101:Instance/64b8404c-ccb1-430b-8daf-12345EXAMPLE).

*/ inline const Aws::String& GetFromInstanceArn() const{ return m_fromInstanceArn; } /** *

The Amazon Resource Name (ARN) of the instance from which the snapshot was * created (e.g., * arn:aws:lightsail:us-east-2:123456789101:Instance/64b8404c-ccb1-430b-8daf-12345EXAMPLE).

*/ inline bool FromInstanceArnHasBeenSet() const { return m_fromInstanceArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the instance from which the snapshot was * created (e.g., * arn:aws:lightsail:us-east-2:123456789101:Instance/64b8404c-ccb1-430b-8daf-12345EXAMPLE).

*/ inline void SetFromInstanceArn(const Aws::String& value) { m_fromInstanceArnHasBeenSet = true; m_fromInstanceArn = value; } /** *

The Amazon Resource Name (ARN) of the instance from which the snapshot was * created (e.g., * arn:aws:lightsail:us-east-2:123456789101:Instance/64b8404c-ccb1-430b-8daf-12345EXAMPLE).

*/ inline void SetFromInstanceArn(Aws::String&& value) { m_fromInstanceArnHasBeenSet = true; m_fromInstanceArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the instance from which the snapshot was * created (e.g., * arn:aws:lightsail:us-east-2:123456789101:Instance/64b8404c-ccb1-430b-8daf-12345EXAMPLE).

*/ inline void SetFromInstanceArn(const char* value) { m_fromInstanceArnHasBeenSet = true; m_fromInstanceArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the instance from which the snapshot was * created (e.g., * arn:aws:lightsail:us-east-2:123456789101:Instance/64b8404c-ccb1-430b-8daf-12345EXAMPLE).

*/ inline InstanceSnapshot& WithFromInstanceArn(const Aws::String& value) { SetFromInstanceArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the instance from which the snapshot was * created (e.g., * arn:aws:lightsail:us-east-2:123456789101:Instance/64b8404c-ccb1-430b-8daf-12345EXAMPLE).

*/ inline InstanceSnapshot& WithFromInstanceArn(Aws::String&& value) { SetFromInstanceArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the instance from which the snapshot was * created (e.g., * arn:aws:lightsail:us-east-2:123456789101:Instance/64b8404c-ccb1-430b-8daf-12345EXAMPLE).

*/ inline InstanceSnapshot& WithFromInstanceArn(const char* value) { SetFromInstanceArn(value); return *this;} /** *

The blueprint ID from which you created the snapshot (e.g., * os_debian_8_3). A blueprint is a virtual private server (or * instance) image used to create instances quickly.

*/ inline const Aws::String& GetFromBlueprintId() const{ return m_fromBlueprintId; } /** *

The blueprint ID from which you created the snapshot (e.g., * os_debian_8_3). A blueprint is a virtual private server (or * instance) image used to create instances quickly.

*/ inline bool FromBlueprintIdHasBeenSet() const { return m_fromBlueprintIdHasBeenSet; } /** *

The blueprint ID from which you created the snapshot (e.g., * os_debian_8_3). A blueprint is a virtual private server (or * instance) image used to create instances quickly.

*/ inline void SetFromBlueprintId(const Aws::String& value) { m_fromBlueprintIdHasBeenSet = true; m_fromBlueprintId = value; } /** *

The blueprint ID from which you created the snapshot (e.g., * os_debian_8_3). A blueprint is a virtual private server (or * instance) image used to create instances quickly.

*/ inline void SetFromBlueprintId(Aws::String&& value) { m_fromBlueprintIdHasBeenSet = true; m_fromBlueprintId = std::move(value); } /** *

The blueprint ID from which you created the snapshot (e.g., * os_debian_8_3). A blueprint is a virtual private server (or * instance) image used to create instances quickly.

*/ inline void SetFromBlueprintId(const char* value) { m_fromBlueprintIdHasBeenSet = true; m_fromBlueprintId.assign(value); } /** *

The blueprint ID from which you created the snapshot (e.g., * os_debian_8_3). A blueprint is a virtual private server (or * instance) image used to create instances quickly.

*/ inline InstanceSnapshot& WithFromBlueprintId(const Aws::String& value) { SetFromBlueprintId(value); return *this;} /** *

The blueprint ID from which you created the snapshot (e.g., * os_debian_8_3). A blueprint is a virtual private server (or * instance) image used to create instances quickly.

*/ inline InstanceSnapshot& WithFromBlueprintId(Aws::String&& value) { SetFromBlueprintId(std::move(value)); return *this;} /** *

The blueprint ID from which you created the snapshot (e.g., * os_debian_8_3). A blueprint is a virtual private server (or * instance) image used to create instances quickly.

*/ inline InstanceSnapshot& WithFromBlueprintId(const char* value) { SetFromBlueprintId(value); return *this;} /** *

The bundle ID from which you created the snapshot (e.g., * micro_1_0).

*/ inline const Aws::String& GetFromBundleId() const{ return m_fromBundleId; } /** *

The bundle ID from which you created the snapshot (e.g., * micro_1_0).

*/ inline bool FromBundleIdHasBeenSet() const { return m_fromBundleIdHasBeenSet; } /** *

The bundle ID from which you created the snapshot (e.g., * micro_1_0).

*/ inline void SetFromBundleId(const Aws::String& value) { m_fromBundleIdHasBeenSet = true; m_fromBundleId = value; } /** *

The bundle ID from which you created the snapshot (e.g., * micro_1_0).

*/ inline void SetFromBundleId(Aws::String&& value) { m_fromBundleIdHasBeenSet = true; m_fromBundleId = std::move(value); } /** *

The bundle ID from which you created the snapshot (e.g., * micro_1_0).

*/ inline void SetFromBundleId(const char* value) { m_fromBundleIdHasBeenSet = true; m_fromBundleId.assign(value); } /** *

The bundle ID from which you created the snapshot (e.g., * micro_1_0).

*/ inline InstanceSnapshot& WithFromBundleId(const Aws::String& value) { SetFromBundleId(value); return *this;} /** *

The bundle ID from which you created the snapshot (e.g., * micro_1_0).

*/ inline InstanceSnapshot& WithFromBundleId(Aws::String&& value) { SetFromBundleId(std::move(value)); return *this;} /** *

The bundle ID from which you created the snapshot (e.g., * micro_1_0).

*/ inline InstanceSnapshot& WithFromBundleId(const char* value) { SetFromBundleId(value); return *this;} /** *

A Boolean value indicating whether the snapshot was created from an automatic * snapshot.

*/ inline bool GetIsFromAutoSnapshot() const{ return m_isFromAutoSnapshot; } /** *

A Boolean value indicating whether the snapshot was created from an automatic * snapshot.

*/ inline bool IsFromAutoSnapshotHasBeenSet() const { return m_isFromAutoSnapshotHasBeenSet; } /** *

A Boolean value indicating whether the snapshot was created from an automatic * snapshot.

*/ inline void SetIsFromAutoSnapshot(bool value) { m_isFromAutoSnapshotHasBeenSet = true; m_isFromAutoSnapshot = value; } /** *

A Boolean value indicating whether the snapshot was created from an automatic * snapshot.

*/ inline InstanceSnapshot& WithIsFromAutoSnapshot(bool value) { SetIsFromAutoSnapshot(value); return *this;} /** *

The size in GB of the SSD.

*/ inline int GetSizeInGb() const{ return m_sizeInGb; } /** *

The size in GB of the SSD.

*/ inline bool SizeInGbHasBeenSet() const { return m_sizeInGbHasBeenSet; } /** *

The size in GB of the SSD.

*/ inline void SetSizeInGb(int value) { m_sizeInGbHasBeenSet = true; m_sizeInGb = value; } /** *

The size in GB of the SSD.

*/ inline InstanceSnapshot& WithSizeInGb(int value) { SetSizeInGb(value); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_arn; bool m_arnHasBeenSet = false; Aws::String m_supportCode; bool m_supportCodeHasBeenSet = false; Aws::Utils::DateTime m_createdAt; bool m_createdAtHasBeenSet = false; ResourceLocation m_location; bool m_locationHasBeenSet = false; ResourceType m_resourceType; bool m_resourceTypeHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; InstanceSnapshotState m_state; bool m_stateHasBeenSet = false; Aws::String m_progress; bool m_progressHasBeenSet = false; Aws::Vector m_fromAttachedDisks; bool m_fromAttachedDisksHasBeenSet = false; Aws::String m_fromInstanceName; bool m_fromInstanceNameHasBeenSet = false; Aws::String m_fromInstanceArn; bool m_fromInstanceArnHasBeenSet = false; Aws::String m_fromBlueprintId; bool m_fromBlueprintIdHasBeenSet = false; Aws::String m_fromBundleId; bool m_fromBundleIdHasBeenSet = false; bool m_isFromAutoSnapshot; bool m_isFromAutoSnapshotHasBeenSet = false; int m_sizeInGb; bool m_sizeInGbHasBeenSet = false; }; } // namespace Model } // namespace Lightsail } // namespace Aws