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

Specifies the start and end time for OpenHours.

See Also:

AWS * API Reference

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

The start of the scheduled time, in ISO 8601 format, when the channel can * send messages.

*/ inline const Aws::String& GetStartTime() const{ return m_startTime; } /** *

The start of the scheduled time, in ISO 8601 format, when the channel can * send messages.

*/ inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; } /** *

The start of the scheduled time, in ISO 8601 format, when the channel can * send messages.

*/ inline void SetStartTime(const Aws::String& value) { m_startTimeHasBeenSet = true; m_startTime = value; } /** *

The start of the scheduled time, in ISO 8601 format, when the channel can * send messages.

*/ inline void SetStartTime(Aws::String&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); } /** *

The start of the scheduled time, in ISO 8601 format, when the channel can * send messages.

*/ inline void SetStartTime(const char* value) { m_startTimeHasBeenSet = true; m_startTime.assign(value); } /** *

The start of the scheduled time, in ISO 8601 format, when the channel can * send messages.

*/ inline OpenHoursRule& WithStartTime(const Aws::String& value) { SetStartTime(value); return *this;} /** *

The start of the scheduled time, in ISO 8601 format, when the channel can * send messages.

*/ inline OpenHoursRule& WithStartTime(Aws::String&& value) { SetStartTime(std::move(value)); return *this;} /** *

The start of the scheduled time, in ISO 8601 format, when the channel can * send messages.

*/ inline OpenHoursRule& WithStartTime(const char* value) { SetStartTime(value); return *this;} /** *

The end of the scheduled time, in ISO 8601 format, when the channel can't * send messages.

*/ inline const Aws::String& GetEndTime() const{ return m_endTime; } /** *

The end of the scheduled time, in ISO 8601 format, when the channel can't * send messages.

*/ inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; } /** *

The end of the scheduled time, in ISO 8601 format, when the channel can't * send messages.

*/ inline void SetEndTime(const Aws::String& value) { m_endTimeHasBeenSet = true; m_endTime = value; } /** *

The end of the scheduled time, in ISO 8601 format, when the channel can't * send messages.

*/ inline void SetEndTime(Aws::String&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); } /** *

The end of the scheduled time, in ISO 8601 format, when the channel can't * send messages.

*/ inline void SetEndTime(const char* value) { m_endTimeHasBeenSet = true; m_endTime.assign(value); } /** *

The end of the scheduled time, in ISO 8601 format, when the channel can't * send messages.

*/ inline OpenHoursRule& WithEndTime(const Aws::String& value) { SetEndTime(value); return *this;} /** *

The end of the scheduled time, in ISO 8601 format, when the channel can't * send messages.

*/ inline OpenHoursRule& WithEndTime(Aws::String&& value) { SetEndTime(std::move(value)); return *this;} /** *

The end of the scheduled time, in ISO 8601 format, when the channel can't * send messages.

*/ inline OpenHoursRule& WithEndTime(const char* value) { SetEndTime(value); return *this;} private: Aws::String m_startTime; bool m_startTimeHasBeenSet = false; Aws::String m_endTime; bool m_endTimeHasBeenSet = false; }; } // namespace Model } // namespace Pinpoint } // namespace Aws