AWS SDK for C++

AWS SDK for C++ Version 1.11.683

Loading...
Searching...
No Matches
ApplicationSettingsJourneyLimits.h
1
6#pragma once
7#include <aws/pinpoint/Pinpoint_EXPORTS.h>
8#include <aws/pinpoint/model/JourneyTimeframeCap.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Pinpoint {
20namespace Model {
21
30 public:
31 AWS_PINPOINT_API ApplicationSettingsJourneyLimits() = default;
34 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline int GetDailyCap() const { return m_dailyCap; }
42 inline bool DailyCapHasBeenSet() const { return m_dailyCapHasBeenSet; }
43 inline void SetDailyCap(int value) {
44 m_dailyCapHasBeenSet = true;
45 m_dailyCap = value;
46 }
48 SetDailyCap(value);
49 return *this;
50 }
52
54
58 inline const JourneyTimeframeCap& GetTimeframeCap() const { return m_timeframeCap; }
59 inline bool TimeframeCapHasBeenSet() const { return m_timeframeCapHasBeenSet; }
60 template <typename TimeframeCapT = JourneyTimeframeCap>
61 void SetTimeframeCap(TimeframeCapT&& value) {
62 m_timeframeCapHasBeenSet = true;
63 m_timeframeCap = std::forward<TimeframeCapT>(value);
64 }
65 template <typename TimeframeCapT = JourneyTimeframeCap>
67 SetTimeframeCap(std::forward<TimeframeCapT>(value));
68 return *this;
69 }
71
73
78 inline int GetTotalCap() const { return m_totalCap; }
79 inline bool TotalCapHasBeenSet() const { return m_totalCapHasBeenSet; }
80 inline void SetTotalCap(int value) {
81 m_totalCapHasBeenSet = true;
82 m_totalCap = value;
83 }
85 SetTotalCap(value);
86 return *this;
87 }
89 private:
90 int m_dailyCap{0};
91 bool m_dailyCapHasBeenSet = false;
92
93 JourneyTimeframeCap m_timeframeCap;
94 bool m_timeframeCapHasBeenSet = false;
95
96 int m_totalCap{0};
97 bool m_totalCapHasBeenSet = false;
98};
99
100} // namespace Model
101} // namespace Pinpoint
102} // namespace Aws
ApplicationSettingsJourneyLimits & WithTimeframeCap(TimeframeCapT &&value)
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_PINPOINT_API ApplicationSettingsJourneyLimits & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_PINPOINT_API ApplicationSettingsJourneyLimits()=default
AWS_PINPOINT_API ApplicationSettingsJourneyLimits(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue