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

Describes a snapshot.

See Also:

AWS * API Reference

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

The time when the snapshot was created.

*/ inline const Aws::Utils::DateTime& GetSnapshotTime() const{ return m_snapshotTime; } /** *

The time when the snapshot was created.

*/ inline bool SnapshotTimeHasBeenSet() const { return m_snapshotTimeHasBeenSet; } /** *

The time when the snapshot was created.

*/ inline void SetSnapshotTime(const Aws::Utils::DateTime& value) { m_snapshotTimeHasBeenSet = true; m_snapshotTime = value; } /** *

The time when the snapshot was created.

*/ inline void SetSnapshotTime(Aws::Utils::DateTime&& value) { m_snapshotTimeHasBeenSet = true; m_snapshotTime = std::move(value); } /** *

The time when the snapshot was created.

*/ inline Snapshot& WithSnapshotTime(const Aws::Utils::DateTime& value) { SetSnapshotTime(value); return *this;} /** *

The time when the snapshot was created.

*/ inline Snapshot& WithSnapshotTime(Aws::Utils::DateTime&& value) { SetSnapshotTime(std::move(value)); return *this;} private: Aws::Utils::DateTime m_snapshotTime; bool m_snapshotTimeHasBeenSet = false; }; } // namespace Model } // namespace WorkSpaces } // namespace Aws