/** * 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 IoTSiteWise { namespace Model { /** *

Contains information about the current status of a portal.

See * Also:

AWS * API Reference

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

The current state of the portal.

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

The current state of the portal.

*/ inline bool StateHasBeenSet() const { return m_stateHasBeenSet; } /** *

The current state of the portal.

*/ inline void SetState(const PortalState& value) { m_stateHasBeenSet = true; m_state = value; } /** *

The current state of the portal.

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

The current state of the portal.

*/ inline PortalStatus& WithState(const PortalState& value) { SetState(value); return *this;} /** *

The current state of the portal.

*/ inline PortalStatus& WithState(PortalState&& value) { SetState(std::move(value)); return *this;} /** *

Contains associated error information, if any.

*/ inline const MonitorErrorDetails& GetError() const{ return m_error; } /** *

Contains associated error information, if any.

*/ inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; } /** *

Contains associated error information, if any.

*/ inline void SetError(const MonitorErrorDetails& value) { m_errorHasBeenSet = true; m_error = value; } /** *

Contains associated error information, if any.

*/ inline void SetError(MonitorErrorDetails&& value) { m_errorHasBeenSet = true; m_error = std::move(value); } /** *

Contains associated error information, if any.

*/ inline PortalStatus& WithError(const MonitorErrorDetails& value) { SetError(value); return *this;} /** *

Contains associated error information, if any.

*/ inline PortalStatus& WithError(MonitorErrorDetails&& value) { SetError(std::move(value)); return *this;} private: PortalState m_state; bool m_stateHasBeenSet = false; MonitorErrorDetails m_error; bool m_errorHasBeenSet = false; }; } // namespace Model } // namespace IoTSiteWise } // namespace Aws