AWS SDK for C++

AWS SDK for C++ Version 1.11.762

Loading...
Searching...
No Matches
GetAccountActivityResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/freetier/FreeTier_EXPORTS.h>
11#include <aws/freetier/model/ActivityReward.h>
12#include <aws/freetier/model/ActivityStatus.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Json {
22class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace FreeTier {
26namespace Model {
28 public:
29 AWS_FREETIER_API GetAccountActivityResult() = default;
32
34
37 inline const Aws::String& GetActivityId() const { return m_activityId; }
38 template <typename ActivityIdT = Aws::String>
39 void SetActivityId(ActivityIdT&& value) {
40 m_activityIdHasBeenSet = true;
41 m_activityId = std::forward<ActivityIdT>(value);
42 }
43 template <typename ActivityIdT = Aws::String>
45 SetActivityId(std::forward<ActivityIdT>(value));
46 return *this;
47 }
49
51
54 inline const Aws::String& GetTitle() const { return m_title; }
55 template <typename TitleT = Aws::String>
56 void SetTitle(TitleT&& value) {
57 m_titleHasBeenSet = true;
58 m_title = std::forward<TitleT>(value);
59 }
60 template <typename TitleT = Aws::String>
62 SetTitle(std::forward<TitleT>(value));
63 return *this;
64 }
66
68
72 inline const Aws::String& GetDescription() const { return m_description; }
73 template <typename DescriptionT = Aws::String>
74 void SetDescription(DescriptionT&& value) {
75 m_descriptionHasBeenSet = true;
76 m_description = std::forward<DescriptionT>(value);
77 }
78 template <typename DescriptionT = Aws::String>
80 SetDescription(std::forward<DescriptionT>(value));
81 return *this;
82 }
84
86
89 inline ActivityStatus GetStatus() const { return m_status; }
90 inline void SetStatus(ActivityStatus value) {
91 m_statusHasBeenSet = true;
92 m_status = value;
93 }
95 SetStatus(value);
96 return *this;
97 }
99
101
105 inline const Aws::String& GetInstructionsUrl() const { return m_instructionsUrl; }
106 template <typename InstructionsUrlT = Aws::String>
107 void SetInstructionsUrl(InstructionsUrlT&& value) {
108 m_instructionsUrlHasBeenSet = true;
109 m_instructionsUrl = std::forward<InstructionsUrlT>(value);
110 }
111 template <typename InstructionsUrlT = Aws::String>
113 SetInstructionsUrl(std::forward<InstructionsUrlT>(value));
114 return *this;
115 }
117
119
122 inline const ActivityReward& GetReward() const { return m_reward; }
123 template <typename RewardT = ActivityReward>
124 void SetReward(RewardT&& value) {
125 m_rewardHasBeenSet = true;
126 m_reward = std::forward<RewardT>(value);
127 }
128 template <typename RewardT = ActivityReward>
130 SetReward(std::forward<RewardT>(value));
131 return *this;
132 }
134
136
140 inline int GetEstimatedTimeToCompleteInMinutes() const { return m_estimatedTimeToCompleteInMinutes; }
141 inline void SetEstimatedTimeToCompleteInMinutes(int value) {
142 m_estimatedTimeToCompleteInMinutesHasBeenSet = true;
143 m_estimatedTimeToCompleteInMinutes = value;
144 }
147 return *this;
148 }
150
152
155 inline const Aws::Utils::DateTime& GetExpiresAt() const { return m_expiresAt; }
156 template <typename ExpiresAtT = Aws::Utils::DateTime>
157 void SetExpiresAt(ExpiresAtT&& value) {
158 m_expiresAtHasBeenSet = true;
159 m_expiresAt = std::forward<ExpiresAtT>(value);
160 }
161 template <typename ExpiresAtT = Aws::Utils::DateTime>
163 SetExpiresAt(std::forward<ExpiresAtT>(value));
164 return *this;
165 }
167
169
174 inline const Aws::Utils::DateTime& GetStartedAt() const { return m_startedAt; }
175 template <typename StartedAtT = Aws::Utils::DateTime>
176 void SetStartedAt(StartedAtT&& value) {
177 m_startedAtHasBeenSet = true;
178 m_startedAt = std::forward<StartedAtT>(value);
179 }
180 template <typename StartedAtT = Aws::Utils::DateTime>
182 SetStartedAt(std::forward<StartedAtT>(value));
183 return *this;
184 }
186
188
192 inline const Aws::Utils::DateTime& GetCompletedAt() const { return m_completedAt; }
193 template <typename CompletedAtT = Aws::Utils::DateTime>
194 void SetCompletedAt(CompletedAtT&& value) {
195 m_completedAtHasBeenSet = true;
196 m_completedAt = std::forward<CompletedAtT>(value);
197 }
198 template <typename CompletedAtT = Aws::Utils::DateTime>
200 SetCompletedAt(std::forward<CompletedAtT>(value));
201 return *this;
202 }
204
206
207 inline const Aws::String& GetRequestId() const { return m_requestId; }
208 template <typename RequestIdT = Aws::String>
209 void SetRequestId(RequestIdT&& value) {
210 m_requestIdHasBeenSet = true;
211 m_requestId = std::forward<RequestIdT>(value);
212 }
213 template <typename RequestIdT = Aws::String>
215 SetRequestId(std::forward<RequestIdT>(value));
216 return *this;
217 }
219 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
220
221 private:
222 Aws::String m_activityId;
223
224 Aws::String m_title;
225
226 Aws::String m_description;
227
229
230 Aws::String m_instructionsUrl;
231
232 ActivityReward m_reward;
233
234 int m_estimatedTimeToCompleteInMinutes{0};
235
236 Aws::Utils::DateTime m_expiresAt{};
237
238 Aws::Utils::DateTime m_startedAt{};
239
240 Aws::Utils::DateTime m_completedAt{};
241
242 Aws::String m_requestId;
243 Aws::Http::HttpResponseCode m_HttpResponseCode;
244 bool m_activityIdHasBeenSet = false;
245 bool m_titleHasBeenSet = false;
246 bool m_descriptionHasBeenSet = false;
247 bool m_statusHasBeenSet = false;
248 bool m_instructionsUrlHasBeenSet = false;
249 bool m_rewardHasBeenSet = false;
250 bool m_estimatedTimeToCompleteInMinutesHasBeenSet = false;
251 bool m_expiresAtHasBeenSet = false;
252 bool m_startedAtHasBeenSet = false;
253 bool m_completedAtHasBeenSet = false;
254 bool m_requestIdHasBeenSet = false;
255};
256
257} // namespace Model
258} // namespace FreeTier
259} // namespace Aws
GetAccountActivityResult & WithEstimatedTimeToCompleteInMinutes(int value)
GetAccountActivityResult & WithStartedAt(StartedAtT &&value)
AWS_FREETIER_API GetAccountActivityResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetAccountActivityResult & WithCompletedAt(CompletedAtT &&value)
GetAccountActivityResult & WithReward(RewardT &&value)
GetAccountActivityResult & WithExpiresAt(ExpiresAtT &&value)
AWS_FREETIER_API GetAccountActivityResult()=default
GetAccountActivityResult & WithDescription(DescriptionT &&value)
GetAccountActivityResult & WithStatus(ActivityStatus value)
GetAccountActivityResult & WithTitle(TitleT &&value)
GetAccountActivityResult & WithInstructionsUrl(InstructionsUrlT &&value)
const Aws::Utils::DateTime & GetExpiresAt() const
GetAccountActivityResult & WithRequestId(RequestIdT &&value)
AWS_FREETIER_API GetAccountActivityResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
GetAccountActivityResult & WithActivityId(ActivityIdT &&value)
const Aws::Utils::DateTime & GetCompletedAt() const
const Aws::Utils::DateTime & GetStartedAt() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue