/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace Lightsail { namespace Model { class AWS_LIGHTSAIL_API GetInstanceStateResult { public: GetInstanceStateResult(); GetInstanceStateResult(const Aws::AmazonWebServiceResult& result); GetInstanceStateResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The state of the instance.

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

The state of the instance.

*/ inline void SetState(const InstanceState& value) { m_state = value; } /** *

The state of the instance.

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

The state of the instance.

*/ inline GetInstanceStateResult& WithState(const InstanceState& value) { SetState(value); return *this;} /** *

The state of the instance.

*/ inline GetInstanceStateResult& WithState(InstanceState&& value) { SetState(std::move(value)); return *this;} private: InstanceState m_state; }; } // namespace Model } // namespace Lightsail } // namespace Aws