AWS SDK for C++

AWS SDK for C++ Version 1.11.608

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() = default;
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 template<typename ApplicationIdT = Aws::String>
49 void SetApplicationId(ApplicationIdT&& value) { m_applicationIdHasBeenSet = true; m_applicationId = std::forward<ApplicationIdT>(value); }
50 template<typename ApplicationIdT = Aws::String>
51 ActivityResponse& WithApplicationId(ApplicationIdT&& value) { SetApplicationId(std::forward<ApplicationIdT>(value)); return *this;}
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) { m_campaignIdHasBeenSet = true; m_campaignId = std::forward<CampaignIdT>(value); }
62 template<typename CampaignIdT = Aws::String>
63 ActivityResponse& WithCampaignId(CampaignIdT&& value) { SetCampaignId(std::forward<CampaignIdT>(value)); return *this;}
65
67
71 inline const Aws::String& GetEnd() const { return m_end; }
72 inline bool EndHasBeenSet() const { return m_endHasBeenSet; }
73 template<typename EndT = Aws::String>
74 void SetEnd(EndT&& value) { m_endHasBeenSet = true; m_end = std::forward<EndT>(value); }
75 template<typename EndT = Aws::String>
76 ActivityResponse& WithEnd(EndT&& value) { SetEnd(std::forward<EndT>(value)); return *this;}
78
80
83 inline const Aws::String& GetId() const { return m_id; }
84 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
85 template<typename IdT = Aws::String>
86 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
87 template<typename IdT = Aws::String>
88 ActivityResponse& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
90
92
96 inline const Aws::String& GetResult() const { return m_result; }
97 inline bool ResultHasBeenSet() const { return m_resultHasBeenSet; }
98 template<typename ResultT = Aws::String>
99 void SetResult(ResultT&& value) { m_resultHasBeenSet = true; m_result = std::forward<ResultT>(value); }
100 template<typename ResultT = Aws::String>
101 ActivityResponse& WithResult(ResultT&& value) { SetResult(std::forward<ResultT>(value)); return *this;}
103
105
108 inline const Aws::String& GetScheduledStart() const { return m_scheduledStart; }
109 inline bool ScheduledStartHasBeenSet() const { return m_scheduledStartHasBeenSet; }
110 template<typename ScheduledStartT = Aws::String>
111 void SetScheduledStart(ScheduledStartT&& value) { m_scheduledStartHasBeenSet = true; m_scheduledStart = std::forward<ScheduledStartT>(value); }
112 template<typename ScheduledStartT = Aws::String>
113 ActivityResponse& WithScheduledStart(ScheduledStartT&& value) { SetScheduledStart(std::forward<ScheduledStartT>(value)); return *this;}
115
117
120 inline const Aws::String& GetStart() const { return m_start; }
121 inline bool StartHasBeenSet() const { return m_startHasBeenSet; }
122 template<typename StartT = Aws::String>
123 void SetStart(StartT&& value) { m_startHasBeenSet = true; m_start = std::forward<StartT>(value); }
124 template<typename StartT = Aws::String>
125 ActivityResponse& WithStart(StartT&& value) { SetStart(std::forward<StartT>(value)); return *this;}
127
129
133 inline const Aws::String& GetState() const { return m_state; }
134 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
135 template<typename StateT = Aws::String>
136 void SetState(StateT&& value) { m_stateHasBeenSet = true; m_state = std::forward<StateT>(value); }
137 template<typename StateT = Aws::String>
138 ActivityResponse& WithState(StateT&& value) { SetState(std::forward<StateT>(value)); return *this;}
140
142
146 inline int GetSuccessfulEndpointCount() const { return m_successfulEndpointCount; }
147 inline bool SuccessfulEndpointCountHasBeenSet() const { return m_successfulEndpointCountHasBeenSet; }
148 inline void SetSuccessfulEndpointCount(int value) { m_successfulEndpointCountHasBeenSet = true; m_successfulEndpointCount = value; }
151
153
156 inline int GetTimezonesCompletedCount() const { return m_timezonesCompletedCount; }
157 inline bool TimezonesCompletedCountHasBeenSet() const { return m_timezonesCompletedCountHasBeenSet; }
158 inline void SetTimezonesCompletedCount(int value) { m_timezonesCompletedCountHasBeenSet = true; m_timezonesCompletedCount = value; }
161
163
167 inline int GetTimezonesTotalCount() const { return m_timezonesTotalCount; }
168 inline bool TimezonesTotalCountHasBeenSet() const { return m_timezonesTotalCountHasBeenSet; }
169 inline void SetTimezonesTotalCount(int value) { m_timezonesTotalCountHasBeenSet = true; m_timezonesTotalCount = value; }
170 inline ActivityResponse& WithTimezonesTotalCount(int value) { SetTimezonesTotalCount(value); return *this;}
172
174
178 inline int GetTotalEndpointCount() const { return m_totalEndpointCount; }
179 inline bool TotalEndpointCountHasBeenSet() const { return m_totalEndpointCountHasBeenSet; }
180 inline void SetTotalEndpointCount(int value) { m_totalEndpointCountHasBeenSet = true; m_totalEndpointCount = value; }
181 inline ActivityResponse& WithTotalEndpointCount(int value) { SetTotalEndpointCount(value); return *this;}
183
185
190 inline const Aws::String& GetTreatmentId() const { return m_treatmentId; }
191 inline bool TreatmentIdHasBeenSet() const { return m_treatmentIdHasBeenSet; }
192 template<typename TreatmentIdT = Aws::String>
193 void SetTreatmentId(TreatmentIdT&& value) { m_treatmentIdHasBeenSet = true; m_treatmentId = std::forward<TreatmentIdT>(value); }
194 template<typename TreatmentIdT = Aws::String>
195 ActivityResponse& WithTreatmentId(TreatmentIdT&& value) { SetTreatmentId(std::forward<TreatmentIdT>(value)); return *this;}
197
199
207 inline const Aws::Map<Aws::String, Aws::String>& GetExecutionMetrics() const { return m_executionMetrics; }
208 inline bool ExecutionMetricsHasBeenSet() const { return m_executionMetricsHasBeenSet; }
209 template<typename ExecutionMetricsT = Aws::Map<Aws::String, Aws::String>>
210 void SetExecutionMetrics(ExecutionMetricsT&& value) { m_executionMetricsHasBeenSet = true; m_executionMetrics = std::forward<ExecutionMetricsT>(value); }
211 template<typename ExecutionMetricsT = Aws::Map<Aws::String, Aws::String>>
212 ActivityResponse& WithExecutionMetrics(ExecutionMetricsT&& value) { SetExecutionMetrics(std::forward<ExecutionMetricsT>(value)); return *this;}
213 template<typename ExecutionMetricsKeyT = Aws::String, typename ExecutionMetricsValueT = Aws::String>
214 ActivityResponse& AddExecutionMetrics(ExecutionMetricsKeyT&& key, ExecutionMetricsValueT&& value) {
215 m_executionMetricsHasBeenSet = true; m_executionMetrics.emplace(std::forward<ExecutionMetricsKeyT>(key), std::forward<ExecutionMetricsValueT>(value)); return *this;
216 }
218 private:
219
220 Aws::String m_applicationId;
221 bool m_applicationIdHasBeenSet = false;
222
223 Aws::String m_campaignId;
224 bool m_campaignIdHasBeenSet = false;
225
226 Aws::String m_end;
227 bool m_endHasBeenSet = false;
228
229 Aws::String m_id;
230 bool m_idHasBeenSet = false;
231
232 Aws::String m_result;
233 bool m_resultHasBeenSet = false;
234
235 Aws::String m_scheduledStart;
236 bool m_scheduledStartHasBeenSet = false;
237
238 Aws::String m_start;
239 bool m_startHasBeenSet = false;
240
241 Aws::String m_state;
242 bool m_stateHasBeenSet = false;
243
244 int m_successfulEndpointCount{0};
245 bool m_successfulEndpointCountHasBeenSet = false;
246
247 int m_timezonesCompletedCount{0};
248 bool m_timezonesCompletedCountHasBeenSet = false;
249
250 int m_timezonesTotalCount{0};
251 bool m_timezonesTotalCountHasBeenSet = false;
252
253 int m_totalEndpointCount{0};
254 bool m_totalEndpointCountHasBeenSet = false;
255
256 Aws::String m_treatmentId;
257 bool m_treatmentIdHasBeenSet = false;
258
259 Aws::Map<Aws::String, Aws::String> m_executionMetrics;
260 bool m_executionMetricsHasBeenSet = false;
261 };
262
263} // namespace Model
264} // namespace Pinpoint
265} // 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