/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #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 InstanceSnapshotInfo { public: AWS_LIGHTSAIL_API InstanceSnapshotInfo(); AWS_LIGHTSAIL_API InstanceSnapshotInfo(Aws::Utils::Json::JsonView jsonValue); AWS_LIGHTSAIL_API InstanceSnapshotInfo& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The bundle ID from which the source instance was created (e.g., * micro_1_0).

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

The bundle ID from which the source instance was created (e.g., * micro_1_0).

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

The bundle ID from which the source instance was created (e.g., * micro_1_0).

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

The bundle ID from which the source instance was created (e.g., * micro_1_0).

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

The bundle ID from which the source instance was created (e.g., * micro_1_0).

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

The bundle ID from which the source instance was created (e.g., * micro_1_0).

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

The bundle ID from which the source instance was created (e.g., * micro_1_0).

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

The bundle ID from which the source instance was created (e.g., * micro_1_0).

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

The blueprint ID from which the source instance (e.g., * os_debian_8_3).

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

The blueprint ID from which the source instance (e.g., * os_debian_8_3).

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

The blueprint ID from which the source instance (e.g., * os_debian_8_3).

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

The blueprint ID from which the source instance (e.g., * os_debian_8_3).

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

The blueprint ID from which the source instance (e.g., * os_debian_8_3).

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

The blueprint ID from which the source instance (e.g., * os_debian_8_3).

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

The blueprint ID from which the source instance (e.g., * os_debian_8_3).

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

The blueprint ID from which the source instance (e.g., * os_debian_8_3).

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

A list of objects describing the disks that were attached to the source * instance.

*/ inline const Aws::Vector& GetFromDiskInfo() const{ return m_fromDiskInfo; } /** *

A list of objects describing the disks that were attached to the source * instance.

*/ inline bool FromDiskInfoHasBeenSet() const { return m_fromDiskInfoHasBeenSet; } /** *

A list of objects describing the disks that were attached to the source * instance.

*/ inline void SetFromDiskInfo(const Aws::Vector& value) { m_fromDiskInfoHasBeenSet = true; m_fromDiskInfo = value; } /** *

A list of objects describing the disks that were attached to the source * instance.

*/ inline void SetFromDiskInfo(Aws::Vector&& value) { m_fromDiskInfoHasBeenSet = true; m_fromDiskInfo = std::move(value); } /** *

A list of objects describing the disks that were attached to the source * instance.

*/ inline InstanceSnapshotInfo& WithFromDiskInfo(const Aws::Vector& value) { SetFromDiskInfo(value); return *this;} /** *

A list of objects describing the disks that were attached to the source * instance.

*/ inline InstanceSnapshotInfo& WithFromDiskInfo(Aws::Vector&& value) { SetFromDiskInfo(std::move(value)); return *this;} /** *

A list of objects describing the disks that were attached to the source * instance.

*/ inline InstanceSnapshotInfo& AddFromDiskInfo(const DiskInfo& value) { m_fromDiskInfoHasBeenSet = true; m_fromDiskInfo.push_back(value); return *this; } /** *

A list of objects describing the disks that were attached to the source * instance.

*/ inline InstanceSnapshotInfo& AddFromDiskInfo(DiskInfo&& value) { m_fromDiskInfoHasBeenSet = true; m_fromDiskInfo.push_back(std::move(value)); return *this; } private: Aws::String m_fromBundleId; bool m_fromBundleIdHasBeenSet = false; Aws::String m_fromBlueprintId; bool m_fromBlueprintIdHasBeenSet = false; Aws::Vector m_fromDiskInfo; bool m_fromDiskInfoHasBeenSet = false; }; } // namespace Model } // namespace Lightsail } // namespace Aws