/** * 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 needed to enable the alarm.

See Also:

AWS * API Reference

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

The request ID. Each ID must be unique within each batch.

*/ inline const Aws::String& GetRequestId() const{ return m_requestId; } /** *

The request ID. Each ID must be unique within each batch.

*/ inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; } /** *

The request ID. Each ID must be unique within each batch.

*/ inline void SetRequestId(const Aws::String& value) { m_requestIdHasBeenSet = true; m_requestId = value; } /** *

The request ID. Each ID must be unique within each batch.

*/ inline void SetRequestId(Aws::String&& value) { m_requestIdHasBeenSet = true; m_requestId = std::move(value); } /** *

The request ID. Each ID must be unique within each batch.

*/ inline void SetRequestId(const char* value) { m_requestIdHasBeenSet = true; m_requestId.assign(value); } /** *

The request ID. Each ID must be unique within each batch.

*/ inline EnableAlarmActionRequest& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} /** *

The request ID. Each ID must be unique within each batch.

*/ inline EnableAlarmActionRequest& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} /** *

The request ID. Each ID must be unique within each batch.

*/ inline EnableAlarmActionRequest& WithRequestId(const char* value) { SetRequestId(value); return *this;} /** *

The name of the alarm model.

*/ inline const Aws::String& GetAlarmModelName() const{ return m_alarmModelName; } /** *

The name of the alarm model.

*/ inline bool AlarmModelNameHasBeenSet() const { return m_alarmModelNameHasBeenSet; } /** *

The name of the alarm model.

*/ inline void SetAlarmModelName(const Aws::String& value) { m_alarmModelNameHasBeenSet = true; m_alarmModelName = value; } /** *

The name of the alarm model.

*/ inline void SetAlarmModelName(Aws::String&& value) { m_alarmModelNameHasBeenSet = true; m_alarmModelName = std::move(value); } /** *

The name of the alarm model.

*/ inline void SetAlarmModelName(const char* value) { m_alarmModelNameHasBeenSet = true; m_alarmModelName.assign(value); } /** *

The name of the alarm model.

*/ inline EnableAlarmActionRequest& WithAlarmModelName(const Aws::String& value) { SetAlarmModelName(value); return *this;} /** *

The name of the alarm model.

*/ inline EnableAlarmActionRequest& WithAlarmModelName(Aws::String&& value) { SetAlarmModelName(std::move(value)); return *this;} /** *

The name of the alarm model.

*/ inline EnableAlarmActionRequest& WithAlarmModelName(const char* value) { SetAlarmModelName(value); return *this;} /** *

The value of the key used as a filter to select only the alarms associated * with the key.

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

The value of the key used as a filter to select only the alarms associated * with the key.

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

The value of the key used as a filter to select only the alarms associated * with the key.

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

The value of the key used as a filter to select only the alarms associated * with the key.

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

The value of the key used as a filter to select only the alarms associated * with the key.

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

The value of the key used as a filter to select only the alarms associated * with the key.

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

The value of the key used as a filter to select only the alarms associated * with the key.

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

The value of the key used as a filter to select only the alarms associated * with the key.

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

The note that you can leave when you enable the alarm.

*/ inline const Aws::String& GetNote() const{ return m_note; } /** *

The note that you can leave when you enable the alarm.

*/ inline bool NoteHasBeenSet() const { return m_noteHasBeenSet; } /** *

The note that you can leave when you enable the alarm.

*/ inline void SetNote(const Aws::String& value) { m_noteHasBeenSet = true; m_note = value; } /** *

The note that you can leave when you enable the alarm.

*/ inline void SetNote(Aws::String&& value) { m_noteHasBeenSet = true; m_note = std::move(value); } /** *

The note that you can leave when you enable the alarm.

*/ inline void SetNote(const char* value) { m_noteHasBeenSet = true; m_note.assign(value); } /** *

The note that you can leave when you enable the alarm.

*/ inline EnableAlarmActionRequest& WithNote(const Aws::String& value) { SetNote(value); return *this;} /** *

The note that you can leave when you enable the alarm.

*/ inline EnableAlarmActionRequest& WithNote(Aws::String&& value) { SetNote(std::move(value)); return *this;} /** *

The note that you can leave when you enable the alarm.

*/ inline EnableAlarmActionRequest& WithNote(const char* value) { SetNote(value); return *this;} private: Aws::String m_requestId; bool m_requestIdHasBeenSet = false; Aws::String m_alarmModelName; bool m_alarmModelNameHasBeenSet = false; Aws::String m_keyValue; bool m_keyValueHasBeenSet = false; Aws::String m_note; bool m_noteHasBeenSet = false; }; } // namespace Model } // namespace IoTEventsData } // namespace Aws