AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GetAccountActivityResult.h
1
6#pragma once
7#include <aws/freetier/FreeTier_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/freetier/model/ActivityStatus.h>
10#include <aws/freetier/model/ActivityReward.h>
11#include <aws/core/utils/DateTime.h>
12#include <utility>
13
14namespace Aws
15{
16template<typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace FreeTier
27{
28namespace Model
29{
31 {
32 public:
33 AWS_FREETIER_API GetAccountActivityResult() = default;
36
37
39
42 inline const Aws::String& GetActivityId() const { return m_activityId; }
43 template<typename ActivityIdT = Aws::String>
44 void SetActivityId(ActivityIdT&& value) { m_activityIdHasBeenSet = true; m_activityId = std::forward<ActivityIdT>(value); }
45 template<typename ActivityIdT = Aws::String>
46 GetAccountActivityResult& WithActivityId(ActivityIdT&& value) { SetActivityId(std::forward<ActivityIdT>(value)); return *this;}
48
50
53 inline const Aws::String& GetTitle() const { return m_title; }
54 template<typename TitleT = Aws::String>
55 void SetTitle(TitleT&& value) { m_titleHasBeenSet = true; m_title = std::forward<TitleT>(value); }
56 template<typename TitleT = Aws::String>
57 GetAccountActivityResult& WithTitle(TitleT&& value) { SetTitle(std::forward<TitleT>(value)); return *this;}
59
61
65 inline const Aws::String& GetDescription() const { return m_description; }
66 template<typename DescriptionT = Aws::String>
67 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
68 template<typename DescriptionT = Aws::String>
69 GetAccountActivityResult& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
71
73
76 inline ActivityStatus GetStatus() const { return m_status; }
77 inline void SetStatus(ActivityStatus value) { m_statusHasBeenSet = true; m_status = value; }
78 inline GetAccountActivityResult& WithStatus(ActivityStatus value) { SetStatus(value); return *this;}
80
82
86 inline const Aws::String& GetInstructionsUrl() const { return m_instructionsUrl; }
87 template<typename InstructionsUrlT = Aws::String>
88 void SetInstructionsUrl(InstructionsUrlT&& value) { m_instructionsUrlHasBeenSet = true; m_instructionsUrl = std::forward<InstructionsUrlT>(value); }
89 template<typename InstructionsUrlT = Aws::String>
90 GetAccountActivityResult& WithInstructionsUrl(InstructionsUrlT&& value) { SetInstructionsUrl(std::forward<InstructionsUrlT>(value)); return *this;}
92
94
97 inline const ActivityReward& GetReward() const { return m_reward; }
98 template<typename RewardT = ActivityReward>
99 void SetReward(RewardT&& value) { m_rewardHasBeenSet = true; m_reward = std::forward<RewardT>(value); }
100 template<typename RewardT = ActivityReward>
101 GetAccountActivityResult& WithReward(RewardT&& value) { SetReward(std::forward<RewardT>(value)); return *this;}
103
105
109 inline int GetEstimatedTimeToCompleteInMinutes() const { return m_estimatedTimeToCompleteInMinutes; }
110 inline void SetEstimatedTimeToCompleteInMinutes(int value) { m_estimatedTimeToCompleteInMinutesHasBeenSet = true; m_estimatedTimeToCompleteInMinutes = value; }
113
115
118 inline const Aws::Utils::DateTime& GetExpiresAt() const { return m_expiresAt; }
119 template<typename ExpiresAtT = Aws::Utils::DateTime>
120 void SetExpiresAt(ExpiresAtT&& value) { m_expiresAtHasBeenSet = true; m_expiresAt = std::forward<ExpiresAtT>(value); }
121 template<typename ExpiresAtT = Aws::Utils::DateTime>
122 GetAccountActivityResult& WithExpiresAt(ExpiresAtT&& value) { SetExpiresAt(std::forward<ExpiresAtT>(value)); return *this;}
124
126
131 inline const Aws::Utils::DateTime& GetStartedAt() const { return m_startedAt; }
132 template<typename StartedAtT = Aws::Utils::DateTime>
133 void SetStartedAt(StartedAtT&& value) { m_startedAtHasBeenSet = true; m_startedAt = std::forward<StartedAtT>(value); }
134 template<typename StartedAtT = Aws::Utils::DateTime>
135 GetAccountActivityResult& WithStartedAt(StartedAtT&& value) { SetStartedAt(std::forward<StartedAtT>(value)); return *this;}
137
139
143 inline const Aws::Utils::DateTime& GetCompletedAt() const { return m_completedAt; }
144 template<typename CompletedAtT = Aws::Utils::DateTime>
145 void SetCompletedAt(CompletedAtT&& value) { m_completedAtHasBeenSet = true; m_completedAt = std::forward<CompletedAtT>(value); }
146 template<typename CompletedAtT = Aws::Utils::DateTime>
147 GetAccountActivityResult& WithCompletedAt(CompletedAtT&& value) { SetCompletedAt(std::forward<CompletedAtT>(value)); return *this;}
149
151
152 inline const Aws::String& GetRequestId() const { return m_requestId; }
153 template<typename RequestIdT = Aws::String>
154 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
155 template<typename RequestIdT = Aws::String>
156 GetAccountActivityResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
158 private:
159
160 Aws::String m_activityId;
161 bool m_activityIdHasBeenSet = false;
162
163 Aws::String m_title;
164 bool m_titleHasBeenSet = false;
165
166 Aws::String m_description;
167 bool m_descriptionHasBeenSet = false;
168
170 bool m_statusHasBeenSet = false;
171
172 Aws::String m_instructionsUrl;
173 bool m_instructionsUrlHasBeenSet = false;
174
175 ActivityReward m_reward;
176 bool m_rewardHasBeenSet = false;
177
178 int m_estimatedTimeToCompleteInMinutes{0};
179 bool m_estimatedTimeToCompleteInMinutesHasBeenSet = false;
180
181 Aws::Utils::DateTime m_expiresAt{};
182 bool m_expiresAtHasBeenSet = false;
183
184 Aws::Utils::DateTime m_startedAt{};
185 bool m_startedAtHasBeenSet = false;
186
187 Aws::Utils::DateTime m_completedAt{};
188 bool m_completedAtHasBeenSet = false;
189
190 Aws::String m_requestId;
191 bool m_requestIdHasBeenSet = false;
192 };
193
194} // namespace Model
195} // namespace FreeTier
196} // 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