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

The details about the instance.

See Also:

AWS * API Reference

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

A structure containing details about the instance.

*/ inline const Instance& GetInstance() const{ return m_instance; } /** *

A structure containing details about the instance.

*/ inline bool InstanceHasBeenSet() const { return m_instanceHasBeenSet; } /** *

A structure containing details about the instance.

*/ inline void SetInstance(const Instance& value) { m_instanceHasBeenSet = true; m_instance = value; } /** *

A structure containing details about the instance.

*/ inline void SetInstance(Instance&& value) { m_instanceHasBeenSet = true; m_instance = std::move(value); } /** *

A structure containing details about the instance.

*/ inline InstanceSummary& WithInstance(const Instance& value) { SetInstance(value); return *this;} /** *

A structure containing details about the instance.

*/ inline InstanceSummary& WithInstance(Instance&& value) { SetInstance(std::move(value)); return *this;} /** *

When the instance summary was last updated.

*/ inline const Aws::Utils::DateTime& GetLastUpdatedAt() const{ return m_lastUpdatedAt; } /** *

When the instance summary was last updated.

*/ inline bool LastUpdatedAtHasBeenSet() const { return m_lastUpdatedAtHasBeenSet; } /** *

When the instance summary was last updated.

*/ inline void SetLastUpdatedAt(const Aws::Utils::DateTime& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = value; } /** *

When the instance summary was last updated.

*/ inline void SetLastUpdatedAt(Aws::Utils::DateTime&& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = std::move(value); } /** *

When the instance summary was last updated.

*/ inline InstanceSummary& WithLastUpdatedAt(const Aws::Utils::DateTime& value) { SetLastUpdatedAt(value); return *this;} /** *

When the instance summary was last updated.

*/ inline InstanceSummary& WithLastUpdatedAt(Aws::Utils::DateTime&& value) { SetLastUpdatedAt(std::move(value)); return *this;} private: Instance m_instance; bool m_instanceHasBeenSet = false; Aws::Utils::DateTime m_lastUpdatedAt; bool m_lastUpdatedAtHasBeenSet = false; }; } // namespace Model } // namespace SnowDeviceManagement } // namespace Aws