/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #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 (instance).

See Also:

AWS * API Reference

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

The name of the detector model that created this detector (instance).

*/ inline const Aws::String& GetDetectorModelName() const{ return m_detectorModelName; } /** *

The name of the detector model that created this detector (instance).

*/ inline bool DetectorModelNameHasBeenSet() const { return m_detectorModelNameHasBeenSet; } /** *

The name of the detector model that created this detector (instance).

*/ inline void SetDetectorModelName(const Aws::String& value) { m_detectorModelNameHasBeenSet = true; m_detectorModelName = value; } /** *

The name of the detector model that created this detector (instance).

*/ inline void SetDetectorModelName(Aws::String&& value) { m_detectorModelNameHasBeenSet = true; m_detectorModelName = std::move(value); } /** *

The name of the detector model that created this detector (instance).

*/ inline void SetDetectorModelName(const char* value) { m_detectorModelNameHasBeenSet = true; m_detectorModelName.assign(value); } /** *

The name of the detector model that created this detector (instance).

*/ inline DetectorSummary& WithDetectorModelName(const Aws::String& value) { SetDetectorModelName(value); return *this;} /** *

The name of the detector model that created this detector (instance).

*/ inline DetectorSummary& WithDetectorModelName(Aws::String&& value) { SetDetectorModelName(std::move(value)); return *this;} /** *

The name of the detector model that created this detector (instance).

*/ inline DetectorSummary& WithDetectorModelName(const char* value) { SetDetectorModelName(value); return *this;} /** *

The value of the key (identifying the device or system) that caused the * creation of this detector (instance).

*/ inline const Aws::String& GetKeyValue() const{ return m_keyValue; } /** *

The value of the key (identifying the device or system) that caused the * creation of this detector (instance).

*/ inline bool KeyValueHasBeenSet() const { return m_keyValueHasBeenSet; } /** *

The value of the key (identifying the device or system) that caused the * creation of this detector (instance).

*/ inline void SetKeyValue(const Aws::String& value) { m_keyValueHasBeenSet = true; m_keyValue = value; } /** *

The value of the key (identifying the device or system) that caused the * creation of this detector (instance).

*/ inline void SetKeyValue(Aws::String&& value) { m_keyValueHasBeenSet = true; m_keyValue = std::move(value); } /** *

The value of the key (identifying the device or system) that caused the * creation of this detector (instance).

*/ inline void SetKeyValue(const char* value) { m_keyValueHasBeenSet = true; m_keyValue.assign(value); } /** *

The value of the key (identifying the device or system) that caused the * creation of this detector (instance).

*/ inline DetectorSummary& WithKeyValue(const Aws::String& value) { SetKeyValue(value); return *this;} /** *

The value of the key (identifying the device or system) that caused the * creation of this detector (instance).

*/ inline DetectorSummary& WithKeyValue(Aws::String&& value) { SetKeyValue(std::move(value)); return *this;} /** *

The value of the key (identifying the device or system) that caused the * creation of this detector (instance).

*/ inline DetectorSummary& WithKeyValue(const char* value) { SetKeyValue(value); return *this;} /** *

The version of the detector model that created this detector (instance).

*/ inline const Aws::String& GetDetectorModelVersion() const{ return m_detectorModelVersion; } /** *

The version of the detector model that created this detector (instance).

*/ inline bool DetectorModelVersionHasBeenSet() const { return m_detectorModelVersionHasBeenSet; } /** *

The version of the detector model that created this detector (instance).

*/ inline void SetDetectorModelVersion(const Aws::String& value) { m_detectorModelVersionHasBeenSet = true; m_detectorModelVersion = value; } /** *

The version of the detector model that created this detector (instance).

*/ inline void SetDetectorModelVersion(Aws::String&& value) { m_detectorModelVersionHasBeenSet = true; m_detectorModelVersion = std::move(value); } /** *

The version of the detector model that created this detector (instance).

*/ inline void SetDetectorModelVersion(const char* value) { m_detectorModelVersionHasBeenSet = true; m_detectorModelVersion.assign(value); } /** *

The version of the detector model that created this detector (instance).

*/ inline DetectorSummary& WithDetectorModelVersion(const Aws::String& value) { SetDetectorModelVersion(value); return *this;} /** *

The version of the detector model that created this detector (instance).

*/ inline DetectorSummary& WithDetectorModelVersion(Aws::String&& value) { SetDetectorModelVersion(std::move(value)); return *this;} /** *

The version of the detector model that created this detector (instance).

*/ inline DetectorSummary& WithDetectorModelVersion(const char* value) { SetDetectorModelVersion(value); return *this;} /** *

The current state of the detector (instance).

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

The current state of the detector (instance).

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

The current state of the detector (instance).

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

The current state of the detector (instance).

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

The current state of the detector (instance).

*/ inline DetectorSummary& WithState(const DetectorStateSummary& value) { SetState(value); return *this;} /** *

The current state of the detector (instance).

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

The time the detector (instance) was created.

*/ inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; } /** *

The time the detector (instance) was created.

*/ inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; } /** *

The time the detector (instance) was created.

*/ inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; } /** *

The time the detector (instance) was created.

*/ inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); } /** *

The time the detector (instance) was created.

*/ inline DetectorSummary& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;} /** *

The time the detector (instance) was created.

*/ inline DetectorSummary& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;} /** *

The time the detector (instance) was last updated.

*/ inline const Aws::Utils::DateTime& GetLastUpdateTime() const{ return m_lastUpdateTime; } /** *

The time the detector (instance) was last updated.

*/ inline bool LastUpdateTimeHasBeenSet() const { return m_lastUpdateTimeHasBeenSet; } /** *

The time the detector (instance) was last updated.

*/ inline void SetLastUpdateTime(const Aws::Utils::DateTime& value) { m_lastUpdateTimeHasBeenSet = true; m_lastUpdateTime = value; } /** *

The time the detector (instance) was last updated.

*/ inline void SetLastUpdateTime(Aws::Utils::DateTime&& value) { m_lastUpdateTimeHasBeenSet = true; m_lastUpdateTime = std::move(value); } /** *

The time the detector (instance) was last updated.

*/ inline DetectorSummary& WithLastUpdateTime(const Aws::Utils::DateTime& value) { SetLastUpdateTime(value); return *this;} /** *

The time the detector (instance) was last updated.

*/ inline DetectorSummary& WithLastUpdateTime(Aws::Utils::DateTime&& value) { SetLastUpdateTime(std::move(value)); return *this;} private: Aws::String m_detectorModelName; bool m_detectorModelNameHasBeenSet; Aws::String m_keyValue; bool m_keyValueHasBeenSet; Aws::String m_detectorModelVersion; bool m_detectorModelVersionHasBeenSet; DetectorStateSummary m_state; bool m_stateHasBeenSet; Aws::Utils::DateTime m_creationTime; bool m_creationTimeHasBeenSet; Aws::Utils::DateTime m_lastUpdateTime; bool m_lastUpdateTimeHasBeenSet; }; } // namespace Model } // namespace IoTEventsData } // namespace Aws