AWS SDK for C++

AWS SDK for C++ Version 1.11.765

Loading...
Searching...
No Matches
CancelProfileUpdateTaskResult.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/core/utils/memory/stl/AWSVector.h>
11#include <aws/partnercentral-account/PartnerCentralAccount_EXPORTS.h>
12#include <aws/partnercentral-account/model/ErrorDetail.h>
13#include <aws/partnercentral-account/model/ProfileTaskStatus.h>
14#include <aws/partnercentral-account/model/TaskDetails.h>
15
16#include <utility>
17
18namespace Aws {
19template <typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils {
23namespace Json {
24class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace PartnerCentralAccount {
28namespace Model {
30 public:
31 AWS_PARTNERCENTRALACCOUNT_API CancelProfileUpdateTaskResult() = default;
33 AWS_PARTNERCENTRALACCOUNT_API CancelProfileUpdateTaskResult& operator=(
35
37
40 inline const Aws::String& GetCatalog() const { return m_catalog; }
41 template <typename CatalogT = Aws::String>
42 void SetCatalog(CatalogT&& value) {
43 m_catalogHasBeenSet = true;
44 m_catalog = std::forward<CatalogT>(value);
45 }
46 template <typename CatalogT = Aws::String>
48 SetCatalog(std::forward<CatalogT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetArn() const { return m_arn; }
58 template <typename ArnT = Aws::String>
59 void SetArn(ArnT&& value) {
60 m_arnHasBeenSet = true;
61 m_arn = std::forward<ArnT>(value);
62 }
63 template <typename ArnT = Aws::String>
65 SetArn(std::forward<ArnT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetId() const { return m_id; }
75 template <typename IdT = Aws::String>
76 void SetId(IdT&& value) {
77 m_idHasBeenSet = true;
78 m_id = std::forward<IdT>(value);
79 }
80 template <typename IdT = Aws::String>
82 SetId(std::forward<IdT>(value));
83 return *this;
84 }
86
88
91 inline const Aws::String& GetTaskId() const { return m_taskId; }
92 template <typename TaskIdT = Aws::String>
93 void SetTaskId(TaskIdT&& value) {
94 m_taskIdHasBeenSet = true;
95 m_taskId = std::forward<TaskIdT>(value);
96 }
97 template <typename TaskIdT = Aws::String>
99 SetTaskId(std::forward<TaskIdT>(value));
100 return *this;
101 }
103
105
108 inline const TaskDetails& GetTaskDetails() const { return m_taskDetails; }
109 template <typename TaskDetailsT = TaskDetails>
110 void SetTaskDetails(TaskDetailsT&& value) {
111 m_taskDetailsHasBeenSet = true;
112 m_taskDetails = std::forward<TaskDetailsT>(value);
113 }
114 template <typename TaskDetailsT = TaskDetails>
116 SetTaskDetails(std::forward<TaskDetailsT>(value));
117 return *this;
118 }
120
122
125 inline const Aws::Utils::DateTime& GetStartedAt() const { return m_startedAt; }
126 template <typename StartedAtT = Aws::Utils::DateTime>
127 void SetStartedAt(StartedAtT&& value) {
128 m_startedAtHasBeenSet = true;
129 m_startedAt = std::forward<StartedAtT>(value);
130 }
131 template <typename StartedAtT = Aws::Utils::DateTime>
133 SetStartedAt(std::forward<StartedAtT>(value));
134 return *this;
135 }
137
139
142 inline ProfileTaskStatus GetStatus() const { return m_status; }
143 inline void SetStatus(ProfileTaskStatus value) {
144 m_statusHasBeenSet = true;
145 m_status = value;
146 }
148 SetStatus(value);
149 return *this;
150 }
152
154
157 inline const Aws::Utils::DateTime& GetEndedAt() const { return m_endedAt; }
158 template <typename EndedAtT = Aws::Utils::DateTime>
159 void SetEndedAt(EndedAtT&& value) {
160 m_endedAtHasBeenSet = true;
161 m_endedAt = std::forward<EndedAtT>(value);
162 }
163 template <typename EndedAtT = Aws::Utils::DateTime>
165 SetEndedAt(std::forward<EndedAtT>(value));
166 return *this;
167 }
169
171
175 inline const Aws::Vector<ErrorDetail>& GetErrorDetailList() const { return m_errorDetailList; }
176 template <typename ErrorDetailListT = Aws::Vector<ErrorDetail>>
177 void SetErrorDetailList(ErrorDetailListT&& value) {
178 m_errorDetailListHasBeenSet = true;
179 m_errorDetailList = std::forward<ErrorDetailListT>(value);
180 }
181 template <typename ErrorDetailListT = Aws::Vector<ErrorDetail>>
183 SetErrorDetailList(std::forward<ErrorDetailListT>(value));
184 return *this;
185 }
186 template <typename ErrorDetailListT = ErrorDetail>
188 m_errorDetailListHasBeenSet = true;
189 m_errorDetailList.emplace_back(std::forward<ErrorDetailListT>(value));
190 return *this;
191 }
193
195
196 inline const Aws::String& GetRequestId() const { return m_requestId; }
197 template <typename RequestIdT = Aws::String>
198 void SetRequestId(RequestIdT&& value) {
199 m_requestIdHasBeenSet = true;
200 m_requestId = std::forward<RequestIdT>(value);
201 }
202 template <typename RequestIdT = Aws::String>
204 SetRequestId(std::forward<RequestIdT>(value));
205 return *this;
206 }
208 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
209
210 private:
211 Aws::String m_catalog;
212
213 Aws::String m_arn;
214
215 Aws::String m_id;
216
217 Aws::String m_taskId;
218
219 TaskDetails m_taskDetails;
220
221 Aws::Utils::DateTime m_startedAt{};
222
224
225 Aws::Utils::DateTime m_endedAt{};
226
227 Aws::Vector<ErrorDetail> m_errorDetailList;
228
229 Aws::String m_requestId;
230 Aws::Http::HttpResponseCode m_HttpResponseCode;
231 bool m_catalogHasBeenSet = false;
232 bool m_arnHasBeenSet = false;
233 bool m_idHasBeenSet = false;
234 bool m_taskIdHasBeenSet = false;
235 bool m_taskDetailsHasBeenSet = false;
236 bool m_startedAtHasBeenSet = false;
237 bool m_statusHasBeenSet = false;
238 bool m_endedAtHasBeenSet = false;
239 bool m_errorDetailListHasBeenSet = false;
240 bool m_requestIdHasBeenSet = false;
241};
242
243} // namespace Model
244} // namespace PartnerCentralAccount
245} // namespace Aws
AWS_PARTNERCENTRALACCOUNT_API CancelProfileUpdateTaskResult()=default
CancelProfileUpdateTaskResult & WithTaskDetails(TaskDetailsT &&value)
AWS_PARTNERCENTRALACCOUNT_API CancelProfileUpdateTaskResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CancelProfileUpdateTaskResult & WithStatus(ProfileTaskStatus value)
CancelProfileUpdateTaskResult & WithErrorDetailList(ErrorDetailListT &&value)
CancelProfileUpdateTaskResult & WithRequestId(RequestIdT &&value)
CancelProfileUpdateTaskResult & AddErrorDetailList(ErrorDetailListT &&value)
CancelProfileUpdateTaskResult & WithStartedAt(StartedAtT &&value)
AWS_PARTNERCENTRALACCOUNT_API CancelProfileUpdateTaskResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue