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

Information about the detector state.

See Also:

AWS * API Reference

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

The name of the state.

*/ inline const Aws::String& GetStateName() const{ return m_stateName; } /** *

The name of the state.

*/ inline bool StateNameHasBeenSet() const { return m_stateNameHasBeenSet; } /** *

The name of the state.

*/ inline void SetStateName(const Aws::String& value) { m_stateNameHasBeenSet = true; m_stateName = value; } /** *

The name of the state.

*/ inline void SetStateName(Aws::String&& value) { m_stateNameHasBeenSet = true; m_stateName = std::move(value); } /** *

The name of the state.

*/ inline void SetStateName(const char* value) { m_stateNameHasBeenSet = true; m_stateName.assign(value); } /** *

The name of the state.

*/ inline DetectorStateSummary& WithStateName(const Aws::String& value) { SetStateName(value); return *this;} /** *

The name of the state.

*/ inline DetectorStateSummary& WithStateName(Aws::String&& value) { SetStateName(std::move(value)); return *this;} /** *

The name of the state.

*/ inline DetectorStateSummary& WithStateName(const char* value) { SetStateName(value); return *this;} private: Aws::String m_stateName; bool m_stateNameHasBeenSet = false; }; } // namespace Model } // namespace IoTEventsData } // namespace Aws