AWS SDK for C++

AWS SDK for C++ Version 1.11.686

Loading...
Searching...
No Matches
GetAccountActivityResult.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/freetier/FreeTier_EXPORTS.h>
10#include <aws/freetier/model/ActivityReward.h>
11#include <aws/freetier/model/ActivityStatus.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace FreeTier {
25namespace Model {
27 public:
28 AWS_FREETIER_API GetAccountActivityResult() = default;
31
33
36 inline const Aws::String& GetActivityId() const { return m_activityId; }
37 template <typename ActivityIdT = Aws::String>
38 void SetActivityId(ActivityIdT&& value) {
39 m_activityIdHasBeenSet = true;
40 m_activityId = std::forward<ActivityIdT>(value);
41 }
42 template <typename ActivityIdT = Aws::String>
44 SetActivityId(std::forward<ActivityIdT>(value));
45 return *this;
46 }
48
50
53 inline const Aws::String& GetTitle() const { return m_title; }
54 template <typename TitleT = Aws::String>
55 void SetTitle(TitleT&& value) {
56 m_titleHasBeenSet = true;
57 m_title = std::forward<TitleT>(value);
58 }
59 template <typename TitleT = Aws::String>
61 SetTitle(std::forward<TitleT>(value));
62 return *this;
63 }
65
67
71 inline const Aws::String& GetDescription() const { return m_description; }
72 template <typename DescriptionT = Aws::String>
73 void SetDescription(DescriptionT&& value) {
74 m_descriptionHasBeenSet = true;
75 m_description = std::forward<DescriptionT>(value);
76 }
77 template <typename DescriptionT = Aws::String>
79 SetDescription(std::forward<DescriptionT>(value));
80 return *this;
81 }
83
85
88 inline ActivityStatus GetStatus() const { return m_status; }
89 inline void SetStatus(ActivityStatus value) {
90 m_statusHasBeenSet = true;
91 m_status = value;
92 }
94 SetStatus(value);
95 return *this;
96 }
98
100
104 inline const Aws::String& GetInstructionsUrl() const { return m_instructionsUrl; }
105 template <typename InstructionsUrlT = Aws::String>
106 void SetInstructionsUrl(InstructionsUrlT&& value) {
107 m_instructionsUrlHasBeenSet = true;
108 m_instructionsUrl = std::forward<InstructionsUrlT>(value);
109 }
110 template <typename InstructionsUrlT = Aws::String>
112 SetInstructionsUrl(std::forward<InstructionsUrlT>(value));
113 return *this;
114 }
116
118
121 inline const ActivityReward& GetReward() const { return m_reward; }
122 template <typename RewardT = ActivityReward>
123 void SetReward(RewardT&& value) {
124 m_rewardHasBeenSet = true;
125 m_reward = std::forward<RewardT>(value);
126 }
127 template <typename RewardT = ActivityReward>
129 SetReward(std::forward<RewardT>(value));
130 return *this;
131 }
133
135
139 inline int GetEstimatedTimeToCompleteInMinutes() const { return m_estimatedTimeToCompleteInMinutes; }
140 inline void SetEstimatedTimeToCompleteInMinutes(int value) {
141 m_estimatedTimeToCompleteInMinutesHasBeenSet = true;
142 m_estimatedTimeToCompleteInMinutes = value;
143 }
146 return *this;
147 }
149
151
154 inline const Aws::Utils::DateTime& GetExpiresAt() const { return m_expiresAt; }
155 template <typename ExpiresAtT = Aws::Utils::DateTime>
156 void SetExpiresAt(ExpiresAtT&& value) {
157 m_expiresAtHasBeenSet = true;
158 m_expiresAt = std::forward<ExpiresAtT>(value);
159 }
160 template <typename ExpiresAtT = Aws::Utils::DateTime>
162 SetExpiresAt(std::forward<ExpiresAtT>(value));
163 return *this;
164 }
166
168
173 inline const Aws::Utils::DateTime& GetStartedAt() const { return m_startedAt; }
174 template <typename StartedAtT = Aws::Utils::DateTime>
175 void SetStartedAt(StartedAtT&& value) {
176 m_startedAtHasBeenSet = true;
177 m_startedAt = std::forward<StartedAtT>(value);
178 }
179 template <typename StartedAtT = Aws::Utils::DateTime>
181 SetStartedAt(std::forward<StartedAtT>(value));
182 return *this;
183 }
185
187
191 inline const Aws::Utils::DateTime& GetCompletedAt() const { return m_completedAt; }
192 template <typename CompletedAtT = Aws::Utils::DateTime>
193 void SetCompletedAt(CompletedAtT&& value) {
194 m_completedAtHasBeenSet = true;
195 m_completedAt = std::forward<CompletedAtT>(value);
196 }
197 template <typename CompletedAtT = Aws::Utils::DateTime>
199 SetCompletedAt(std::forward<CompletedAtT>(value));
200 return *this;
201 }
203
205
206 inline const Aws::String& GetRequestId() const { return m_requestId; }
207 template <typename RequestIdT = Aws::String>
208 void SetRequestId(RequestIdT&& value) {
209 m_requestIdHasBeenSet = true;
210 m_requestId = std::forward<RequestIdT>(value);
211 }
212 template <typename RequestIdT = Aws::String>
214 SetRequestId(std::forward<RequestIdT>(value));
215 return *this;
216 }
218 private:
219 Aws::String m_activityId;
220 bool m_activityIdHasBeenSet = false;
221
222 Aws::String m_title;
223 bool m_titleHasBeenSet = false;
224
225 Aws::String m_description;
226 bool m_descriptionHasBeenSet = false;
227
229 bool m_statusHasBeenSet = false;
230
231 Aws::String m_instructionsUrl;
232 bool m_instructionsUrlHasBeenSet = false;
233
234 ActivityReward m_reward;
235 bool m_rewardHasBeenSet = false;
236
237 int m_estimatedTimeToCompleteInMinutes{0};
238 bool m_estimatedTimeToCompleteInMinutesHasBeenSet = false;
239
240 Aws::Utils::DateTime m_expiresAt{};
241 bool m_expiresAtHasBeenSet = false;
242
243 Aws::Utils::DateTime m_startedAt{};
244 bool m_startedAtHasBeenSet = false;
245
246 Aws::Utils::DateTime m_completedAt{};
247 bool m_completedAtHasBeenSet = false;
248
249 Aws::String m_requestId;
250 bool m_requestIdHasBeenSet = false;
251};
252
253} // namespace Model
254} // namespace FreeTier
255} // 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)
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