AWS SDK for C++

AWS SDK for C++ Version 1.11.685

Loading...
Searching...
No Matches
ActivityResponse.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/pinpoint/Pinpoint_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Pinpoint {
21namespace Model {
22
30 public:
31 AWS_PINPOINT_API ActivityResponse() = default;
32 AWS_PINPOINT_API ActivityResponse(Aws::Utils::Json::JsonView jsonValue);
34 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetApplicationId() const { return m_applicationId; }
41 inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
42 template <typename ApplicationIdT = Aws::String>
43 void SetApplicationId(ApplicationIdT&& value) {
44 m_applicationIdHasBeenSet = true;
45 m_applicationId = std::forward<ApplicationIdT>(value);
46 }
47 template <typename ApplicationIdT = Aws::String>
48 ActivityResponse& WithApplicationId(ApplicationIdT&& value) {
49 SetApplicationId(std::forward<ApplicationIdT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetCampaignId() const { return m_campaignId; }
59 inline bool CampaignIdHasBeenSet() const { return m_campaignIdHasBeenSet; }
60 template <typename CampaignIdT = Aws::String>
61 void SetCampaignId(CampaignIdT&& value) {
62 m_campaignIdHasBeenSet = true;
63 m_campaignId = std::forward<CampaignIdT>(value);
64 }
65 template <typename CampaignIdT = Aws::String>
66 ActivityResponse& WithCampaignId(CampaignIdT&& value) {
67 SetCampaignId(std::forward<CampaignIdT>(value));
68 return *this;
69 }
71
73
77 inline const Aws::String& GetEnd() const { return m_end; }
78 inline bool EndHasBeenSet() const { return m_endHasBeenSet; }
79 template <typename EndT = Aws::String>
80 void SetEnd(EndT&& value) {
81 m_endHasBeenSet = true;
82 m_end = std::forward<EndT>(value);
83 }
84 template <typename EndT = Aws::String>
85 ActivityResponse& WithEnd(EndT&& value) {
86 SetEnd(std::forward<EndT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::String& GetId() const { return m_id; }
96 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
97 template <typename IdT = Aws::String>
98 void SetId(IdT&& value) {
99 m_idHasBeenSet = true;
100 m_id = std::forward<IdT>(value);
101 }
102 template <typename IdT = Aws::String>
103 ActivityResponse& WithId(IdT&& value) {
104 SetId(std::forward<IdT>(value));
105 return *this;
106 }
108
110
114 inline const Aws::String& GetResult() const { return m_result; }
115 inline bool ResultHasBeenSet() const { return m_resultHasBeenSet; }
116 template <typename ResultT = Aws::String>
117 void SetResult(ResultT&& value) {
118 m_resultHasBeenSet = true;
119 m_result = std::forward<ResultT>(value);
120 }
121 template <typename ResultT = Aws::String>
122 ActivityResponse& WithResult(ResultT&& value) {
123 SetResult(std::forward<ResultT>(value));
124 return *this;
125 }
127
129
132 inline const Aws::String& GetScheduledStart() const { return m_scheduledStart; }
133 inline bool ScheduledStartHasBeenSet() const { return m_scheduledStartHasBeenSet; }
134 template <typename ScheduledStartT = Aws::String>
135 void SetScheduledStart(ScheduledStartT&& value) {
136 m_scheduledStartHasBeenSet = true;
137 m_scheduledStart = std::forward<ScheduledStartT>(value);
138 }
139 template <typename ScheduledStartT = Aws::String>
140 ActivityResponse& WithScheduledStart(ScheduledStartT&& value) {
141 SetScheduledStart(std::forward<ScheduledStartT>(value));
142 return *this;
143 }
145
147
150 inline const Aws::String& GetStart() const { return m_start; }
151 inline bool StartHasBeenSet() const { return m_startHasBeenSet; }
152 template <typename StartT = Aws::String>
153 void SetStart(StartT&& value) {
154 m_startHasBeenSet = true;
155 m_start = std::forward<StartT>(value);
156 }
157 template <typename StartT = Aws::String>
158 ActivityResponse& WithStart(StartT&& value) {
159 SetStart(std::forward<StartT>(value));
160 return *this;
161 }
163
165
169 inline const Aws::String& GetState() const { return m_state; }
170 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
171 template <typename StateT = Aws::String>
172 void SetState(StateT&& value) {
173 m_stateHasBeenSet = true;
174 m_state = std::forward<StateT>(value);
175 }
176 template <typename StateT = Aws::String>
177 ActivityResponse& WithState(StateT&& value) {
178 SetState(std::forward<StateT>(value));
179 return *this;
180 }
182
184
188 inline int GetSuccessfulEndpointCount() const { return m_successfulEndpointCount; }
189 inline bool SuccessfulEndpointCountHasBeenSet() const { return m_successfulEndpointCountHasBeenSet; }
190 inline void SetSuccessfulEndpointCount(int value) {
191 m_successfulEndpointCountHasBeenSet = true;
192 m_successfulEndpointCount = value;
193 }
196 return *this;
197 }
199
201
204 inline int GetTimezonesCompletedCount() const { return m_timezonesCompletedCount; }
205 inline bool TimezonesCompletedCountHasBeenSet() const { return m_timezonesCompletedCountHasBeenSet; }
206 inline void SetTimezonesCompletedCount(int value) {
207 m_timezonesCompletedCountHasBeenSet = true;
208 m_timezonesCompletedCount = value;
209 }
212 return *this;
213 }
215
217
221 inline int GetTimezonesTotalCount() const { return m_timezonesTotalCount; }
222 inline bool TimezonesTotalCountHasBeenSet() const { return m_timezonesTotalCountHasBeenSet; }
223 inline void SetTimezonesTotalCount(int value) {
224 m_timezonesTotalCountHasBeenSet = true;
225 m_timezonesTotalCount = value;
226 }
229 return *this;
230 }
232
234
238 inline int GetTotalEndpointCount() const { return m_totalEndpointCount; }
239 inline bool TotalEndpointCountHasBeenSet() const { return m_totalEndpointCountHasBeenSet; }
240 inline void SetTotalEndpointCount(int value) {
241 m_totalEndpointCountHasBeenSet = true;
242 m_totalEndpointCount = value;
243 }
246 return *this;
247 }
249
251
256 inline const Aws::String& GetTreatmentId() const { return m_treatmentId; }
257 inline bool TreatmentIdHasBeenSet() const { return m_treatmentIdHasBeenSet; }
258 template <typename TreatmentIdT = Aws::String>
259 void SetTreatmentId(TreatmentIdT&& value) {
260 m_treatmentIdHasBeenSet = true;
261 m_treatmentId = std::forward<TreatmentIdT>(value);
262 }
263 template <typename TreatmentIdT = Aws::String>
264 ActivityResponse& WithTreatmentId(TreatmentIdT&& value) {
265 SetTreatmentId(std::forward<TreatmentIdT>(value));
266 return *this;
267 }
269
271
279 inline const Aws::Map<Aws::String, Aws::String>& GetExecutionMetrics() const { return m_executionMetrics; }
280 inline bool ExecutionMetricsHasBeenSet() const { return m_executionMetricsHasBeenSet; }
281 template <typename ExecutionMetricsT = Aws::Map<Aws::String, Aws::String>>
282 void SetExecutionMetrics(ExecutionMetricsT&& value) {
283 m_executionMetricsHasBeenSet = true;
284 m_executionMetrics = std::forward<ExecutionMetricsT>(value);
285 }
286 template <typename ExecutionMetricsT = Aws::Map<Aws::String, Aws::String>>
287 ActivityResponse& WithExecutionMetrics(ExecutionMetricsT&& value) {
288 SetExecutionMetrics(std::forward<ExecutionMetricsT>(value));
289 return *this;
290 }
291 template <typename ExecutionMetricsKeyT = Aws::String, typename ExecutionMetricsValueT = Aws::String>
292 ActivityResponse& AddExecutionMetrics(ExecutionMetricsKeyT&& key, ExecutionMetricsValueT&& value) {
293 m_executionMetricsHasBeenSet = true;
294 m_executionMetrics.emplace(std::forward<ExecutionMetricsKeyT>(key), std::forward<ExecutionMetricsValueT>(value));
295 return *this;
296 }
298 private:
299 Aws::String m_applicationId;
300 bool m_applicationIdHasBeenSet = false;
301
302 Aws::String m_campaignId;
303 bool m_campaignIdHasBeenSet = false;
304
305 Aws::String m_end;
306 bool m_endHasBeenSet = false;
307
308 Aws::String m_id;
309 bool m_idHasBeenSet = false;
310
311 Aws::String m_result;
312 bool m_resultHasBeenSet = false;
313
314 Aws::String m_scheduledStart;
315 bool m_scheduledStartHasBeenSet = false;
316
317 Aws::String m_start;
318 bool m_startHasBeenSet = false;
319
320 Aws::String m_state;
321 bool m_stateHasBeenSet = false;
322
323 int m_successfulEndpointCount{0};
324 bool m_successfulEndpointCountHasBeenSet = false;
325
326 int m_timezonesCompletedCount{0};
327 bool m_timezonesCompletedCountHasBeenSet = false;
328
329 int m_timezonesTotalCount{0};
330 bool m_timezonesTotalCountHasBeenSet = false;
331
332 int m_totalEndpointCount{0};
333 bool m_totalEndpointCountHasBeenSet = false;
334
335 Aws::String m_treatmentId;
336 bool m_treatmentIdHasBeenSet = false;
337
338 Aws::Map<Aws::String, Aws::String> m_executionMetrics;
339 bool m_executionMetricsHasBeenSet = false;
340};
341
342} // namespace Model
343} // namespace Pinpoint
344} // namespace Aws
const Aws::String & GetResult() const
const Aws::String & GetState() const
ActivityResponse & WithTotalEndpointCount(int value)
const Aws::String & GetEnd() const
const Aws::Map< Aws::String, Aws::String > & GetExecutionMetrics() const
ActivityResponse & WithScheduledStart(ScheduledStartT &&value)
void SetTreatmentId(TreatmentIdT &&value)
const Aws::String & GetStart() const
const Aws::String & GetScheduledStart() const
AWS_PINPOINT_API ActivityResponse & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetCampaignId() const
const Aws::String & GetId() const
ActivityResponse & WithApplicationId(ApplicationIdT &&value)
ActivityResponse & WithTimezonesCompletedCount(int value)
ActivityResponse & WithTimezonesTotalCount(int value)
ActivityResponse & WithCampaignId(CampaignIdT &&value)
void SetCampaignId(CampaignIdT &&value)
void SetExecutionMetrics(ExecutionMetricsT &&value)
ActivityResponse & WithEnd(EndT &&value)
ActivityResponse & WithSuccessfulEndpointCount(int value)
ActivityResponse & WithId(IdT &&value)
const Aws::String & GetApplicationId() const
ActivityResponse & AddExecutionMetrics(ExecutionMetricsKeyT &&key, ExecutionMetricsValueT &&value)
ActivityResponse & WithStart(StartT &&value)
AWS_PINPOINT_API ActivityResponse(Aws::Utils::Json::JsonView jsonValue)
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetScheduledStart(ScheduledStartT &&value)
void SetApplicationId(ApplicationIdT &&value)
AWS_PINPOINT_API ActivityResponse()=default
ActivityResponse & WithExecutionMetrics(ExecutionMetricsT &&value)
ActivityResponse & WithState(StateT &&value)
const Aws::String & GetTreatmentId() const
ActivityResponse & WithResult(ResultT &&value)
ActivityResponse & WithTreatmentId(TreatmentIdT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue