/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Pinpoint { namespace Model { /** *

Specifies limits on the messages that a journey can send and the number of * times participants can enter a journey.

See Also:

AWS * API Reference

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

The maximum number of messages that the journey can send to a single * participant during a 24-hour period. The maximum value is 100.

*/ inline int GetDailyCap() const{ return m_dailyCap; } /** *

The maximum number of messages that the journey can send to a single * participant during a 24-hour period. The maximum value is 100.

*/ inline bool DailyCapHasBeenSet() const { return m_dailyCapHasBeenSet; } /** *

The maximum number of messages that the journey can send to a single * participant during a 24-hour period. The maximum value is 100.

*/ inline void SetDailyCap(int value) { m_dailyCapHasBeenSet = true; m_dailyCap = value; } /** *

The maximum number of messages that the journey can send to a single * participant during a 24-hour period. The maximum value is 100.

*/ inline JourneyLimits& WithDailyCap(int value) { SetDailyCap(value); return *this;} /** *

The maximum number of times that a participant can enter the journey. The * maximum value is 100. To allow participants to enter the journey an unlimited * number of times, set this value to 0.

*/ inline int GetEndpointReentryCap() const{ return m_endpointReentryCap; } /** *

The maximum number of times that a participant can enter the journey. The * maximum value is 100. To allow participants to enter the journey an unlimited * number of times, set this value to 0.

*/ inline bool EndpointReentryCapHasBeenSet() const { return m_endpointReentryCapHasBeenSet; } /** *

The maximum number of times that a participant can enter the journey. The * maximum value is 100. To allow participants to enter the journey an unlimited * number of times, set this value to 0.

*/ inline void SetEndpointReentryCap(int value) { m_endpointReentryCapHasBeenSet = true; m_endpointReentryCap = value; } /** *

The maximum number of times that a participant can enter the journey. The * maximum value is 100. To allow participants to enter the journey an unlimited * number of times, set this value to 0.

*/ inline JourneyLimits& WithEndpointReentryCap(int value) { SetEndpointReentryCap(value); return *this;} /** *

The maximum number of messages that the journey can send each second.

*/ inline int GetMessagesPerSecond() const{ return m_messagesPerSecond; } /** *

The maximum number of messages that the journey can send each second.

*/ inline bool MessagesPerSecondHasBeenSet() const { return m_messagesPerSecondHasBeenSet; } /** *

The maximum number of messages that the journey can send each second.

*/ inline void SetMessagesPerSecond(int value) { m_messagesPerSecondHasBeenSet = true; m_messagesPerSecond = value; } /** *

The maximum number of messages that the journey can send each second.

*/ inline JourneyLimits& WithMessagesPerSecond(int value) { SetMessagesPerSecond(value); return *this;} private: int m_dailyCap; bool m_dailyCapHasBeenSet; int m_endpointReentryCap; bool m_endpointReentryCapHasBeenSet; int m_messagesPerSecond; bool m_messagesPerSecondHasBeenSet; }; } // namespace Model } // namespace Pinpoint } // namespace Aws