AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ActivityResponse.h
1
6#pragma once
7#include <aws/pinpoint/Pinpoint_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSMap.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 ActivityResponse();
37 AWS_PINPOINT_API ActivityResponse(Aws::Utils::Json::JsonView jsonValue);
39 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetApplicationId() const{ return m_applicationId; }
47 inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
48 inline void SetApplicationId(const Aws::String& value) { m_applicationIdHasBeenSet = true; m_applicationId = value; }
49 inline void SetApplicationId(Aws::String&& value) { m_applicationIdHasBeenSet = true; m_applicationId = std::move(value); }
50 inline void SetApplicationId(const char* value) { m_applicationIdHasBeenSet = true; m_applicationId.assign(value); }
51 inline ActivityResponse& WithApplicationId(const Aws::String& value) { SetApplicationId(value); return *this;}
52 inline ActivityResponse& WithApplicationId(Aws::String&& value) { SetApplicationId(std::move(value)); return *this;}
53 inline ActivityResponse& WithApplicationId(const char* value) { SetApplicationId(value); return *this;}
55
57
60 inline const Aws::String& GetCampaignId() const{ return m_campaignId; }
61 inline bool CampaignIdHasBeenSet() const { return m_campaignIdHasBeenSet; }
62 inline void SetCampaignId(const Aws::String& value) { m_campaignIdHasBeenSet = true; m_campaignId = value; }
63 inline void SetCampaignId(Aws::String&& value) { m_campaignIdHasBeenSet = true; m_campaignId = std::move(value); }
64 inline void SetCampaignId(const char* value) { m_campaignIdHasBeenSet = true; m_campaignId.assign(value); }
65 inline ActivityResponse& WithCampaignId(const Aws::String& value) { SetCampaignId(value); return *this;}
66 inline ActivityResponse& WithCampaignId(Aws::String&& value) { SetCampaignId(std::move(value)); return *this;}
67 inline ActivityResponse& WithCampaignId(const char* value) { SetCampaignId(value); return *this;}
69
71
75 inline const Aws::String& GetEnd() const{ return m_end; }
76 inline bool EndHasBeenSet() const { return m_endHasBeenSet; }
77 inline void SetEnd(const Aws::String& value) { m_endHasBeenSet = true; m_end = value; }
78 inline void SetEnd(Aws::String&& value) { m_endHasBeenSet = true; m_end = std::move(value); }
79 inline void SetEnd(const char* value) { m_endHasBeenSet = true; m_end.assign(value); }
80 inline ActivityResponse& WithEnd(const Aws::String& value) { SetEnd(value); return *this;}
81 inline ActivityResponse& WithEnd(Aws::String&& value) { SetEnd(std::move(value)); return *this;}
82 inline ActivityResponse& WithEnd(const char* value) { SetEnd(value); return *this;}
84
86
89 inline const Aws::String& GetId() const{ return m_id; }
90 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
91 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
92 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
93 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
94 inline ActivityResponse& WithId(const Aws::String& value) { SetId(value); return *this;}
95 inline ActivityResponse& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
96 inline ActivityResponse& WithId(const char* value) { SetId(value); return *this;}
98
100
104 inline const Aws::String& GetResult() const{ return m_result; }
105 inline bool ResultHasBeenSet() const { return m_resultHasBeenSet; }
106 inline void SetResult(const Aws::String& value) { m_resultHasBeenSet = true; m_result = value; }
107 inline void SetResult(Aws::String&& value) { m_resultHasBeenSet = true; m_result = std::move(value); }
108 inline void SetResult(const char* value) { m_resultHasBeenSet = true; m_result.assign(value); }
109 inline ActivityResponse& WithResult(const Aws::String& value) { SetResult(value); return *this;}
110 inline ActivityResponse& WithResult(Aws::String&& value) { SetResult(std::move(value)); return *this;}
111 inline ActivityResponse& WithResult(const char* value) { SetResult(value); return *this;}
113
115
118 inline const Aws::String& GetScheduledStart() const{ return m_scheduledStart; }
119 inline bool ScheduledStartHasBeenSet() const { return m_scheduledStartHasBeenSet; }
120 inline void SetScheduledStart(const Aws::String& value) { m_scheduledStartHasBeenSet = true; m_scheduledStart = value; }
121 inline void SetScheduledStart(Aws::String&& value) { m_scheduledStartHasBeenSet = true; m_scheduledStart = std::move(value); }
122 inline void SetScheduledStart(const char* value) { m_scheduledStartHasBeenSet = true; m_scheduledStart.assign(value); }
123 inline ActivityResponse& WithScheduledStart(const Aws::String& value) { SetScheduledStart(value); return *this;}
124 inline ActivityResponse& WithScheduledStart(Aws::String&& value) { SetScheduledStart(std::move(value)); return *this;}
125 inline ActivityResponse& WithScheduledStart(const char* value) { SetScheduledStart(value); return *this;}
127
129
132 inline const Aws::String& GetStart() const{ return m_start; }
133 inline bool StartHasBeenSet() const { return m_startHasBeenSet; }
134 inline void SetStart(const Aws::String& value) { m_startHasBeenSet = true; m_start = value; }
135 inline void SetStart(Aws::String&& value) { m_startHasBeenSet = true; m_start = std::move(value); }
136 inline void SetStart(const char* value) { m_startHasBeenSet = true; m_start.assign(value); }
137 inline ActivityResponse& WithStart(const Aws::String& value) { SetStart(value); return *this;}
138 inline ActivityResponse& WithStart(Aws::String&& value) { SetStart(std::move(value)); return *this;}
139 inline ActivityResponse& WithStart(const char* value) { SetStart(value); return *this;}
141
143
147 inline const Aws::String& GetState() const{ return m_state; }
148 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
149 inline void SetState(const Aws::String& value) { m_stateHasBeenSet = true; m_state = value; }
150 inline void SetState(Aws::String&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
151 inline void SetState(const char* value) { m_stateHasBeenSet = true; m_state.assign(value); }
152 inline ActivityResponse& WithState(const Aws::String& value) { SetState(value); return *this;}
153 inline ActivityResponse& WithState(Aws::String&& value) { SetState(std::move(value)); return *this;}
154 inline ActivityResponse& WithState(const char* value) { SetState(value); return *this;}
156
158
162 inline int GetSuccessfulEndpointCount() const{ return m_successfulEndpointCount; }
163 inline bool SuccessfulEndpointCountHasBeenSet() const { return m_successfulEndpointCountHasBeenSet; }
164 inline void SetSuccessfulEndpointCount(int value) { m_successfulEndpointCountHasBeenSet = true; m_successfulEndpointCount = value; }
167
169
172 inline int GetTimezonesCompletedCount() const{ return m_timezonesCompletedCount; }
173 inline bool TimezonesCompletedCountHasBeenSet() const { return m_timezonesCompletedCountHasBeenSet; }
174 inline void SetTimezonesCompletedCount(int value) { m_timezonesCompletedCountHasBeenSet = true; m_timezonesCompletedCount = value; }
177
179
183 inline int GetTimezonesTotalCount() const{ return m_timezonesTotalCount; }
184 inline bool TimezonesTotalCountHasBeenSet() const { return m_timezonesTotalCountHasBeenSet; }
185 inline void SetTimezonesTotalCount(int value) { m_timezonesTotalCountHasBeenSet = true; m_timezonesTotalCount = value; }
186 inline ActivityResponse& WithTimezonesTotalCount(int value) { SetTimezonesTotalCount(value); return *this;}
188
190
194 inline int GetTotalEndpointCount() const{ return m_totalEndpointCount; }
195 inline bool TotalEndpointCountHasBeenSet() const { return m_totalEndpointCountHasBeenSet; }
196 inline void SetTotalEndpointCount(int value) { m_totalEndpointCountHasBeenSet = true; m_totalEndpointCount = value; }
197 inline ActivityResponse& WithTotalEndpointCount(int value) { SetTotalEndpointCount(value); return *this;}
199
201
206 inline const Aws::String& GetTreatmentId() const{ return m_treatmentId; }
207 inline bool TreatmentIdHasBeenSet() const { return m_treatmentIdHasBeenSet; }
208 inline void SetTreatmentId(const Aws::String& value) { m_treatmentIdHasBeenSet = true; m_treatmentId = value; }
209 inline void SetTreatmentId(Aws::String&& value) { m_treatmentIdHasBeenSet = true; m_treatmentId = std::move(value); }
210 inline void SetTreatmentId(const char* value) { m_treatmentIdHasBeenSet = true; m_treatmentId.assign(value); }
211 inline ActivityResponse& WithTreatmentId(const Aws::String& value) { SetTreatmentId(value); return *this;}
212 inline ActivityResponse& WithTreatmentId(Aws::String&& value) { SetTreatmentId(std::move(value)); return *this;}
213 inline ActivityResponse& WithTreatmentId(const char* value) { SetTreatmentId(value); return *this;}
215
217
225 inline const Aws::Map<Aws::String, Aws::String>& GetExecutionMetrics() const{ return m_executionMetrics; }
226 inline bool ExecutionMetricsHasBeenSet() const { return m_executionMetricsHasBeenSet; }
227 inline void SetExecutionMetrics(const Aws::Map<Aws::String, Aws::String>& value) { m_executionMetricsHasBeenSet = true; m_executionMetrics = value; }
228 inline void SetExecutionMetrics(Aws::Map<Aws::String, Aws::String>&& value) { m_executionMetricsHasBeenSet = true; m_executionMetrics = std::move(value); }
231 inline ActivityResponse& AddExecutionMetrics(const Aws::String& key, const Aws::String& value) { m_executionMetricsHasBeenSet = true; m_executionMetrics.emplace(key, value); return *this; }
232 inline ActivityResponse& AddExecutionMetrics(Aws::String&& key, const Aws::String& value) { m_executionMetricsHasBeenSet = true; m_executionMetrics.emplace(std::move(key), value); return *this; }
233 inline ActivityResponse& AddExecutionMetrics(const Aws::String& key, Aws::String&& value) { m_executionMetricsHasBeenSet = true; m_executionMetrics.emplace(key, std::move(value)); return *this; }
234 inline ActivityResponse& AddExecutionMetrics(Aws::String&& key, Aws::String&& value) { m_executionMetricsHasBeenSet = true; m_executionMetrics.emplace(std::move(key), std::move(value)); return *this; }
235 inline ActivityResponse& AddExecutionMetrics(const char* key, Aws::String&& value) { m_executionMetricsHasBeenSet = true; m_executionMetrics.emplace(key, std::move(value)); return *this; }
236 inline ActivityResponse& AddExecutionMetrics(Aws::String&& key, const char* value) { m_executionMetricsHasBeenSet = true; m_executionMetrics.emplace(std::move(key), value); return *this; }
237 inline ActivityResponse& AddExecutionMetrics(const char* key, const char* value) { m_executionMetricsHasBeenSet = true; m_executionMetrics.emplace(key, value); return *this; }
239 private:
240
241 Aws::String m_applicationId;
242 bool m_applicationIdHasBeenSet = false;
243
244 Aws::String m_campaignId;
245 bool m_campaignIdHasBeenSet = false;
246
247 Aws::String m_end;
248 bool m_endHasBeenSet = false;
249
250 Aws::String m_id;
251 bool m_idHasBeenSet = false;
252
253 Aws::String m_result;
254 bool m_resultHasBeenSet = false;
255
256 Aws::String m_scheduledStart;
257 bool m_scheduledStartHasBeenSet = false;
258
259 Aws::String m_start;
260 bool m_startHasBeenSet = false;
261
262 Aws::String m_state;
263 bool m_stateHasBeenSet = false;
264
265 int m_successfulEndpointCount;
266 bool m_successfulEndpointCountHasBeenSet = false;
267
268 int m_timezonesCompletedCount;
269 bool m_timezonesCompletedCountHasBeenSet = false;
270
271 int m_timezonesTotalCount;
272 bool m_timezonesTotalCountHasBeenSet = false;
273
274 int m_totalEndpointCount;
275 bool m_totalEndpointCountHasBeenSet = false;
276
277 Aws::String m_treatmentId;
278 bool m_treatmentIdHasBeenSet = false;
279
280 Aws::Map<Aws::String, Aws::String> m_executionMetrics;
281 bool m_executionMetricsHasBeenSet = false;
282 };
283
284} // namespace Model
285} // namespace Pinpoint
286} // namespace Aws
ActivityResponse & WithApplicationId(const Aws::String &value)
ActivityResponse & WithExecutionMetrics(const Aws::Map< Aws::String, Aws::String > &value)
ActivityResponse & WithScheduledStart(const Aws::String &value)
const Aws::String & GetResult() const
const Aws::String & GetState() const
ActivityResponse & WithResult(const char *value)
void SetState(const Aws::String &value)
ActivityResponse & WithScheduledStart(Aws::String &&value)
ActivityResponse & WithTotalEndpointCount(int value)
const Aws::String & GetEnd() const
void SetId(const Aws::String &value)
void SetStart(const Aws::String &value)
void SetCampaignId(Aws::String &&value)
void SetCampaignId(const Aws::String &value)
ActivityResponse & WithStart(const char *value)
ActivityResponse & WithEnd(const Aws::String &value)
ActivityResponse & AddExecutionMetrics(const Aws::String &key, const Aws::String &value)
void SetTreatmentId(Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetExecutionMetrics() const
ActivityResponse & WithState(Aws::String &&value)
ActivityResponse & AddExecutionMetrics(Aws::String &&key, Aws::String &&value)
ActivityResponse & WithState(const char *value)
void SetExecutionMetrics(const Aws::Map< Aws::String, Aws::String > &value)
const Aws::String & GetStart() const
ActivityResponse & WithId(const Aws::String &value)
ActivityResponse & WithCampaignId(const char *value)
ActivityResponse & WithId(const char *value)
const Aws::String & GetScheduledStart() const
AWS_PINPOINT_API ActivityResponse & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetExecutionMetrics(Aws::Map< Aws::String, Aws::String > &&value)
ActivityResponse & WithExecutionMetrics(Aws::Map< Aws::String, Aws::String > &&value)
const Aws::String & GetCampaignId() const
ActivityResponse & WithCampaignId(Aws::String &&value)
const Aws::String & GetId() const
ActivityResponse & WithTimezonesCompletedCount(int value)
ActivityResponse & WithApplicationId(Aws::String &&value)
ActivityResponse & AddExecutionMetrics(Aws::String &&key, const char *value)
ActivityResponse & WithTimezonesTotalCount(int value)
ActivityResponse & WithTreatmentId(const Aws::String &value)
ActivityResponse & AddExecutionMetrics(const char *key, const char *value)
ActivityResponse & WithTreatmentId(const char *value)
ActivityResponse & WithStart(Aws::String &&value)
void SetEnd(const Aws::String &value)
ActivityResponse & AddExecutionMetrics(Aws::String &&key, const Aws::String &value)
ActivityResponse & WithScheduledStart(const char *value)
void SetResult(const Aws::String &value)
void SetApplicationId(Aws::String &&value)
ActivityResponse & WithSuccessfulEndpointCount(int value)
void SetScheduledStart(Aws::String &&value)
const Aws::String & GetApplicationId() const
ActivityResponse & WithResult(Aws::String &&value)
ActivityResponse & WithStart(const Aws::String &value)
ActivityResponse & WithState(const Aws::String &value)
ActivityResponse & WithEnd(Aws::String &&value)
AWS_PINPOINT_API ActivityResponse(Aws::Utils::Json::JsonView jsonValue)
ActivityResponse & WithId(Aws::String &&value)
ActivityResponse & WithApplicationId(const char *value)
ActivityResponse & AddExecutionMetrics(const Aws::String &key, Aws::String &&value)
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
ActivityResponse & WithCampaignId(const Aws::String &value)
ActivityResponse & WithEnd(const char *value)
ActivityResponse & WithTreatmentId(Aws::String &&value)
const Aws::String & GetTreatmentId() const
ActivityResponse & AddExecutionMetrics(const char *key, Aws::String &&value)
void SetScheduledStart(const Aws::String &value)
void SetTreatmentId(const Aws::String &value)
ActivityResponse & WithResult(const Aws::String &value)
void SetApplicationId(const Aws::String &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