AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CampaignLimits.h
1
6#pragma once
7#include <aws/pinpoint/Pinpoint_EXPORTS.h>
8
9namespace Aws
10{
11namespace Utils
12{
13namespace Json
14{
15 class JsonValue;
16 class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Pinpoint
20{
21namespace Model
22{
23
32 {
33 public:
34 AWS_PINPOINT_API CampaignLimits();
35 AWS_PINPOINT_API CampaignLimits(Aws::Utils::Json::JsonView jsonValue);
37 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
38
39
41
47 inline int GetDaily() const{ return m_daily; }
48 inline bool DailyHasBeenSet() const { return m_dailyHasBeenSet; }
49 inline void SetDaily(int value) { m_dailyHasBeenSet = true; m_daily = value; }
50 inline CampaignLimits& WithDaily(int value) { SetDaily(value); return *this;}
52
54
59 inline int GetMaximumDuration() const{ return m_maximumDuration; }
60 inline bool MaximumDurationHasBeenSet() const { return m_maximumDurationHasBeenSet; }
61 inline void SetMaximumDuration(int value) { m_maximumDurationHasBeenSet = true; m_maximumDuration = value; }
62 inline CampaignLimits& WithMaximumDuration(int value) { SetMaximumDuration(value); return *this;}
64
66
72 inline int GetMessagesPerSecond() const{ return m_messagesPerSecond; }
73 inline bool MessagesPerSecondHasBeenSet() const { return m_messagesPerSecondHasBeenSet; }
74 inline void SetMessagesPerSecond(int value) { m_messagesPerSecondHasBeenSet = true; m_messagesPerSecond = value; }
75 inline CampaignLimits& WithMessagesPerSecond(int value) { SetMessagesPerSecond(value); return *this;}
77
79
84 inline int GetTotal() const{ return m_total; }
85 inline bool TotalHasBeenSet() const { return m_totalHasBeenSet; }
86 inline void SetTotal(int value) { m_totalHasBeenSet = true; m_total = value; }
87 inline CampaignLimits& WithTotal(int value) { SetTotal(value); return *this;}
89
91
95 inline int GetSession() const{ return m_session; }
96 inline bool SessionHasBeenSet() const { return m_sessionHasBeenSet; }
97 inline void SetSession(int value) { m_sessionHasBeenSet = true; m_session = value; }
98 inline CampaignLimits& WithSession(int value) { SetSession(value); return *this;}
100 private:
101
102 int m_daily;
103 bool m_dailyHasBeenSet = false;
104
105 int m_maximumDuration;
106 bool m_maximumDurationHasBeenSet = false;
107
108 int m_messagesPerSecond;
109 bool m_messagesPerSecondHasBeenSet = false;
110
111 int m_total;
112 bool m_totalHasBeenSet = false;
113
114 int m_session;
115 bool m_sessionHasBeenSet = false;
116 };
117
118} // namespace Model
119} // namespace Pinpoint
120} // namespace Aws
CampaignLimits & WithSession(int value)
CampaignLimits & WithDaily(int value)
CampaignLimits & WithTotal(int value)
CampaignLimits & WithMaximumDuration(int value)
AWS_PINPOINT_API CampaignLimits(Aws::Utils::Json::JsonView jsonValue)
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
CampaignLimits & WithMessagesPerSecond(int value)
AWS_PINPOINT_API CampaignLimits & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue