AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
JourneyLimits.h
1
6#pragma once
7#include <aws/pinpoint/Pinpoint_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/pinpoint/model/JourneyTimeframeCap.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Pinpoint
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_PINPOINT_API JourneyLimits();
37 AWS_PINPOINT_API JourneyLimits(Aws::Utils::Json::JsonView jsonValue);
39 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline int GetDailyCap() const{ return m_dailyCap; }
48 inline bool DailyCapHasBeenSet() const { return m_dailyCapHasBeenSet; }
49 inline void SetDailyCap(int value) { m_dailyCapHasBeenSet = true; m_dailyCap = value; }
50 inline JourneyLimits& WithDailyCap(int value) { SetDailyCap(value); return *this;}
52
54
59 inline int GetEndpointReentryCap() const{ return m_endpointReentryCap; }
60 inline bool EndpointReentryCapHasBeenSet() const { return m_endpointReentryCapHasBeenSet; }
61 inline void SetEndpointReentryCap(int value) { m_endpointReentryCapHasBeenSet = true; m_endpointReentryCap = value; }
62 inline JourneyLimits& WithEndpointReentryCap(int value) { SetEndpointReentryCap(value); return *this;}
64
66
69 inline int GetMessagesPerSecond() const{ return m_messagesPerSecond; }
70 inline bool MessagesPerSecondHasBeenSet() const { return m_messagesPerSecondHasBeenSet; }
71 inline void SetMessagesPerSecond(int value) { m_messagesPerSecondHasBeenSet = true; m_messagesPerSecond = value; }
72 inline JourneyLimits& WithMessagesPerSecond(int value) { SetMessagesPerSecond(value); return *this;}
74
76
80 inline const Aws::String& GetEndpointReentryInterval() const{ return m_endpointReentryInterval; }
81 inline bool EndpointReentryIntervalHasBeenSet() const { return m_endpointReentryIntervalHasBeenSet; }
82 inline void SetEndpointReentryInterval(const Aws::String& value) { m_endpointReentryIntervalHasBeenSet = true; m_endpointReentryInterval = value; }
83 inline void SetEndpointReentryInterval(Aws::String&& value) { m_endpointReentryIntervalHasBeenSet = true; m_endpointReentryInterval = std::move(value); }
84 inline void SetEndpointReentryInterval(const char* value) { m_endpointReentryIntervalHasBeenSet = true; m_endpointReentryInterval.assign(value); }
86 inline JourneyLimits& WithEndpointReentryInterval(Aws::String&& value) { SetEndpointReentryInterval(std::move(value)); return *this;}
87 inline JourneyLimits& WithEndpointReentryInterval(const char* value) { SetEndpointReentryInterval(value); return *this;}
89
91
95 inline const JourneyTimeframeCap& GetTimeframeCap() const{ return m_timeframeCap; }
96 inline bool TimeframeCapHasBeenSet() const { return m_timeframeCapHasBeenSet; }
97 inline void SetTimeframeCap(const JourneyTimeframeCap& value) { m_timeframeCapHasBeenSet = true; m_timeframeCap = value; }
98 inline void SetTimeframeCap(JourneyTimeframeCap&& value) { m_timeframeCapHasBeenSet = true; m_timeframeCap = std::move(value); }
99 inline JourneyLimits& WithTimeframeCap(const JourneyTimeframeCap& value) { SetTimeframeCap(value); return *this;}
100 inline JourneyLimits& WithTimeframeCap(JourneyTimeframeCap&& value) { SetTimeframeCap(std::move(value)); return *this;}
102
104
108 inline int GetTotalCap() const{ return m_totalCap; }
109 inline bool TotalCapHasBeenSet() const { return m_totalCapHasBeenSet; }
110 inline void SetTotalCap(int value) { m_totalCapHasBeenSet = true; m_totalCap = value; }
111 inline JourneyLimits& WithTotalCap(int value) { SetTotalCap(value); return *this;}
113 private:
114
115 int m_dailyCap;
116 bool m_dailyCapHasBeenSet = false;
117
118 int m_endpointReentryCap;
119 bool m_endpointReentryCapHasBeenSet = false;
120
121 int m_messagesPerSecond;
122 bool m_messagesPerSecondHasBeenSet = false;
123
124 Aws::String m_endpointReentryInterval;
125 bool m_endpointReentryIntervalHasBeenSet = false;
126
127 JourneyTimeframeCap m_timeframeCap;
128 bool m_timeframeCapHasBeenSet = false;
129
130 int m_totalCap;
131 bool m_totalCapHasBeenSet = false;
132 };
133
134} // namespace Model
135} // namespace Pinpoint
136} // namespace Aws
JourneyLimits & WithTotalCap(int value)
JourneyLimits & WithTimeframeCap(JourneyTimeframeCap &&value)
const JourneyTimeframeCap & GetTimeframeCap() const
void SetEndpointReentryInterval(const Aws::String &value)
JourneyLimits & WithEndpointReentryInterval(const Aws::String &value)
void SetEndpointReentryInterval(Aws::String &&value)
JourneyLimits & WithEndpointReentryInterval(const char *value)
void SetEndpointReentryInterval(const char *value)
const Aws::String & GetEndpointReentryInterval() const
AWS_PINPOINT_API JourneyLimits(Aws::Utils::Json::JsonView jsonValue)
void SetTimeframeCap(JourneyTimeframeCap &&value)
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
JourneyLimits & WithEndpointReentryCap(int value)
void SetTimeframeCap(const JourneyTimeframeCap &value)
JourneyLimits & WithDailyCap(int value)
AWS_PINPOINT_API JourneyLimits & operator=(Aws::Utils::Json::JsonView jsonValue)
JourneyLimits & WithTimeframeCap(const JourneyTimeframeCap &value)
JourneyLimits & WithMessagesPerSecond(int value)
JourneyLimits & WithEndpointReentryInterval(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue