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

The number of messages that can be sent to an endpoint during the specified * timeframe for all journeys.

See Also:

AWS * API Reference

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

The maximum number of messages that all journeys can send to an endpoint * during the specified timeframe. The maximum value is 100. If set to 0, this * limit will not apply.

*/ inline int GetCap() const{ return m_cap; } /** *

The maximum number of messages that all journeys can send to an endpoint * during the specified timeframe. The maximum value is 100. If set to 0, this * limit will not apply.

*/ inline bool CapHasBeenSet() const { return m_capHasBeenSet; } /** *

The maximum number of messages that all journeys can send to an endpoint * during the specified timeframe. The maximum value is 100. If set to 0, this * limit will not apply.

*/ inline void SetCap(int value) { m_capHasBeenSet = true; m_cap = value; } /** *

The maximum number of messages that all journeys can send to an endpoint * during the specified timeframe. The maximum value is 100. If set to 0, this * limit will not apply.

*/ inline JourneyTimeframeCap& WithCap(int value) { SetCap(value); return *this;} /** *

The length of the timeframe in days. The maximum value is 30. If set to 0, * this limit will not apply.

*/ inline int GetDays() const{ return m_days; } /** *

The length of the timeframe in days. The maximum value is 30. If set to 0, * this limit will not apply.

*/ inline bool DaysHasBeenSet() const { return m_daysHasBeenSet; } /** *

The length of the timeframe in days. The maximum value is 30. If set to 0, * this limit will not apply.

*/ inline void SetDays(int value) { m_daysHasBeenSet = true; m_days = value; } /** *

The length of the timeframe in days. The maximum value is 30. If set to 0, * this limit will not apply.

*/ inline JourneyTimeframeCap& WithDays(int value) { SetDays(value); return *this;} private: int m_cap; bool m_capHasBeenSet = false; int m_days; bool m_daysHasBeenSet = false; }; } // namespace Model } // namespace Pinpoint } // namespace Aws