1 /** 2 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 * SPDX-License-Identifier: Apache-2.0. 4 */ 5 6 #pragma once 7 #include <aws/iotevents-data/IoTEventsData_EXPORTS.h> 8 #include <aws/core/utils/memory/stl/AWSString.h> 9 #include <utility> 10 11 namespace Aws 12 { 13 namespace Utils 14 { 15 namespace Json 16 { 17 class JsonValue; 18 class JsonView; 19 } // namespace Json 20 } // namespace Utils 21 namespace IoTEventsData 22 { 23 namespace Model 24 { 25 26 /** 27 * <p>Information about the detector state.</p><p><h3>See Also:</h3> <a 28 * href="http://docs.aws.amazon.com/goto/WebAPI/iotevents-data-2018-10-23/DetectorStateSummary">AWS 29 * API Reference</a></p> 30 */ 31 class AWS_IOTEVENTSDATA_API DetectorStateSummary 32 { 33 public: 34 DetectorStateSummary(); 35 DetectorStateSummary(Aws::Utils::Json::JsonView jsonValue); 36 DetectorStateSummary& operator=(Aws::Utils::Json::JsonView jsonValue); 37 Aws::Utils::Json::JsonValue Jsonize() const; 38 39 40 /** 41 * <p>The name of the state.</p> 42 */ GetStateName()43 inline const Aws::String& GetStateName() const{ return m_stateName; } 44 45 /** 46 * <p>The name of the state.</p> 47 */ StateNameHasBeenSet()48 inline bool StateNameHasBeenSet() const { return m_stateNameHasBeenSet; } 49 50 /** 51 * <p>The name of the state.</p> 52 */ SetStateName(const Aws::String & value)53 inline void SetStateName(const Aws::String& value) { m_stateNameHasBeenSet = true; m_stateName = value; } 54 55 /** 56 * <p>The name of the state.</p> 57 */ SetStateName(Aws::String && value)58 inline void SetStateName(Aws::String&& value) { m_stateNameHasBeenSet = true; m_stateName = std::move(value); } 59 60 /** 61 * <p>The name of the state.</p> 62 */ SetStateName(const char * value)63 inline void SetStateName(const char* value) { m_stateNameHasBeenSet = true; m_stateName.assign(value); } 64 65 /** 66 * <p>The name of the state.</p> 67 */ WithStateName(const Aws::String & value)68 inline DetectorStateSummary& WithStateName(const Aws::String& value) { SetStateName(value); return *this;} 69 70 /** 71 * <p>The name of the state.</p> 72 */ WithStateName(Aws::String && value)73 inline DetectorStateSummary& WithStateName(Aws::String&& value) { SetStateName(std::move(value)); return *this;} 74 75 /** 76 * <p>The name of the state.</p> 77 */ WithStateName(const char * value)78 inline DetectorStateSummary& WithStateName(const char* value) { SetStateName(value); return *this;} 79 80 private: 81 82 Aws::String m_stateName; 83 bool m_stateNameHasBeenSet; 84 }; 85 86 } // namespace Model 87 } // namespace IoTEventsData 88 } // namespace Aws 89