/** * 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 namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Lightsail { namespace Model { /** *

Describes an automatic snapshot.

See Also:

AWS * API Reference

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

The date of the automatic snapshot in YYYY-MM-DD format.

*/ inline const Aws::String& GetDate() const{ return m_date; } /** *

The date of the automatic snapshot in YYYY-MM-DD format.

*/ inline bool DateHasBeenSet() const { return m_dateHasBeenSet; } /** *

The date of the automatic snapshot in YYYY-MM-DD format.

*/ inline void SetDate(const Aws::String& value) { m_dateHasBeenSet = true; m_date = value; } /** *

The date of the automatic snapshot in YYYY-MM-DD format.

*/ inline void SetDate(Aws::String&& value) { m_dateHasBeenSet = true; m_date = std::move(value); } /** *

The date of the automatic snapshot in YYYY-MM-DD format.

*/ inline void SetDate(const char* value) { m_dateHasBeenSet = true; m_date.assign(value); } /** *

The date of the automatic snapshot in YYYY-MM-DD format.

*/ inline AutoSnapshotDetails& WithDate(const Aws::String& value) { SetDate(value); return *this;} /** *

The date of the automatic snapshot in YYYY-MM-DD format.

*/ inline AutoSnapshotDetails& WithDate(Aws::String&& value) { SetDate(std::move(value)); return *this;} /** *

The date of the automatic snapshot in YYYY-MM-DD format.

*/ inline AutoSnapshotDetails& WithDate(const char* value) { SetDate(value); return *this;} /** *

The timestamp when the automatic snapshot was created.

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

The timestamp when the automatic snapshot was created.

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

The timestamp when the automatic snapshot was created.

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

The timestamp when the automatic snapshot was created.

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

The timestamp when the automatic snapshot was created.

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

The timestamp when the automatic snapshot was created.

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

The status of the automatic snapshot.

*/ inline const AutoSnapshotStatus& GetStatus() const{ return m_status; } /** *

The status of the automatic snapshot.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The status of the automatic snapshot.

*/ inline void SetStatus(const AutoSnapshotStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The status of the automatic snapshot.

*/ inline void SetStatus(AutoSnapshotStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

The status of the automatic snapshot.

*/ inline AutoSnapshotDetails& WithStatus(const AutoSnapshotStatus& value) { SetStatus(value); return *this;} /** *

The status of the automatic snapshot.

*/ inline AutoSnapshotDetails& WithStatus(AutoSnapshotStatus&& value) { SetStatus(std::move(value)); return *this;} /** *

An array of objects that describe the block storage disks attached to the * instance when the automatic snapshot was created.

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

An array of objects that describe the block storage disks attached to the * instance when the automatic snapshot was created.

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

An array of objects that describe the block storage disks attached to the * instance when the automatic snapshot was created.

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

An array of objects that describe the block storage disks attached to the * instance when the automatic snapshot was created.

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

An array of objects that describe the block storage disks attached to the * instance when the automatic snapshot was created.

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

An array of objects that describe the block storage disks attached to the * instance when the automatic snapshot was created.

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

An array of objects that describe the block storage disks attached to the * instance when the automatic snapshot was created.

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

An array of objects that describe the block storage disks attached to the * instance when the automatic snapshot was created.

*/ inline AutoSnapshotDetails& AddFromAttachedDisks(AttachedDisk&& value) { m_fromAttachedDisksHasBeenSet = true; m_fromAttachedDisks.push_back(std::move(value)); return *this; } private: Aws::String m_date; bool m_dateHasBeenSet = false; Aws::Utils::DateTime m_createdAt; bool m_createdAtHasBeenSet = false; AutoSnapshotStatus m_status; bool m_statusHasBeenSet = false; Aws::Vector m_fromAttachedDisks; bool m_fromAttachedDisksHasBeenSet = false; }; } // namespace Model } // namespace Lightsail } // namespace Aws