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

Information used to update the detector (instance).

See Also:

* AWS * API Reference

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

The ID to assign to the detector update "message". Each * "messageId" must be unique within each batch sent.

*/ inline const Aws::String& GetMessageId() const{ return m_messageId; } /** *

The ID to assign to the detector update "message". Each * "messageId" must be unique within each batch sent.

*/ inline bool MessageIdHasBeenSet() const { return m_messageIdHasBeenSet; } /** *

The ID to assign to the detector update "message". Each * "messageId" must be unique within each batch sent.

*/ inline void SetMessageId(const Aws::String& value) { m_messageIdHasBeenSet = true; m_messageId = value; } /** *

The ID to assign to the detector update "message". Each * "messageId" must be unique within each batch sent.

*/ inline void SetMessageId(Aws::String&& value) { m_messageIdHasBeenSet = true; m_messageId = std::move(value); } /** *

The ID to assign to the detector update "message". Each * "messageId" must be unique within each batch sent.

*/ inline void SetMessageId(const char* value) { m_messageIdHasBeenSet = true; m_messageId.assign(value); } /** *

The ID to assign to the detector update "message". Each * "messageId" must be unique within each batch sent.

*/ inline UpdateDetectorRequest& WithMessageId(const Aws::String& value) { SetMessageId(value); return *this;} /** *

The ID to assign to the detector update "message". Each * "messageId" must be unique within each batch sent.

*/ inline UpdateDetectorRequest& WithMessageId(Aws::String&& value) { SetMessageId(std::move(value)); return *this;} /** *

The ID to assign to the detector update "message". Each * "messageId" must be unique within each batch sent.

*/ inline UpdateDetectorRequest& WithMessageId(const char* value) { SetMessageId(value); return *this;} /** *

The name of the detector model that created the detectors (instances).

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

The name of the detector model that created the detectors (instances).

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

The name of the detector model that created the detectors (instances).

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

The name of the detector model that created the detectors (instances).

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

The name of the detector model that created the detectors (instances).

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

The name of the detector model that created the detectors (instances).

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

The name of the detector model that created the detectors (instances).

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

The name of the detector model that created the detectors (instances).

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

The value of the input key attribute (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 input key attribute (identifying the device or system) that * caused the creation of this detector (instance).

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

The value of the input key attribute (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 input key attribute (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 input key attribute (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 input key attribute (identifying the device or system) that * caused the creation of this detector (instance).

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

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

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

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

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

The new state, variable values, and timer settings of the detector * (instance).

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

The new state, variable values, and timer settings of the detector * (instance).

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

The new state, variable values, and timer settings of the detector * (instance).

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

The new state, variable values, and timer settings of the detector * (instance).

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

The new state, variable values, and timer settings of the detector * (instance).

*/ inline UpdateDetectorRequest& WithState(const DetectorStateDefinition& value) { SetState(value); return *this;} /** *

The new state, variable values, and timer settings of the detector * (instance).

*/ inline UpdateDetectorRequest& WithState(DetectorStateDefinition&& value) { SetState(std::move(value)); return *this;} private: Aws::String m_messageId; bool m_messageIdHasBeenSet = false; Aws::String m_detectorModelName; bool m_detectorModelNameHasBeenSet = false; Aws::String m_keyValue; bool m_keyValueHasBeenSet = false; DetectorStateDefinition m_state; bool m_stateHasBeenSet = false; }; } // namespace Model } // namespace IoTEventsData } // namespace Aws