/** * 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 { /** *

Contains the configuration information of a snooze action.

See * Also:

AWS * API Reference

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

The snooze time in seconds. The alarm automatically changes to the * NORMAL state after this duration.

*/ inline int GetSnoozeDuration() const{ return m_snoozeDuration; } /** *

The snooze time in seconds. The alarm automatically changes to the * NORMAL state after this duration.

*/ inline bool SnoozeDurationHasBeenSet() const { return m_snoozeDurationHasBeenSet; } /** *

The snooze time in seconds. The alarm automatically changes to the * NORMAL state after this duration.

*/ inline void SetSnoozeDuration(int value) { m_snoozeDurationHasBeenSet = true; m_snoozeDuration = value; } /** *

The snooze time in seconds. The alarm automatically changes to the * NORMAL state after this duration.

*/ inline SnoozeActionConfiguration& WithSnoozeDuration(int value) { SetSnoozeDuration(value); return *this;} /** *

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

*/ inline SnoozeActionConfiguration& WithNote(const char* value) { SetNote(value); return *this;} private: int m_snoozeDuration; bool m_snoozeDurationHasBeenSet = false; Aws::String m_note; bool m_noteHasBeenSet = false; }; } // namespace Model } // namespace IoTEventsData } // namespace Aws