AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
GetWorkflowResult.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/customer-profiles/CustomerProfiles_EXPORTS.h>
11#include <aws/customer-profiles/model/Status.h>
12#include <aws/customer-profiles/model/WorkflowAttributes.h>
13#include <aws/customer-profiles/model/WorkflowMetrics.h>
14#include <aws/customer-profiles/model/WorkflowType.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 CustomerProfiles {
28namespace Model {
30 public:
31 AWS_CUSTOMERPROFILES_API GetWorkflowResult() = default;
34
36
39 inline const Aws::String& GetWorkflowId() const { return m_workflowId; }
40 template <typename WorkflowIdT = Aws::String>
41 void SetWorkflowId(WorkflowIdT&& value) {
42 m_workflowIdHasBeenSet = true;
43 m_workflowId = std::forward<WorkflowIdT>(value);
44 }
45 template <typename WorkflowIdT = Aws::String>
46 GetWorkflowResult& WithWorkflowId(WorkflowIdT&& value) {
47 SetWorkflowId(std::forward<WorkflowIdT>(value));
48 return *this;
49 }
51
53
56 inline WorkflowType GetWorkflowType() const { return m_workflowType; }
57 inline void SetWorkflowType(WorkflowType value) {
58 m_workflowTypeHasBeenSet = true;
59 m_workflowType = value;
60 }
62 SetWorkflowType(value);
63 return *this;
64 }
66
68
71 inline Status GetStatus() const { return m_status; }
72 inline void SetStatus(Status value) {
73 m_statusHasBeenSet = true;
74 m_status = value;
75 }
77 SetStatus(value);
78 return *this;
79 }
81
83
86 inline const Aws::String& GetErrorDescription() const { return m_errorDescription; }
87 template <typename ErrorDescriptionT = Aws::String>
88 void SetErrorDescription(ErrorDescriptionT&& value) {
89 m_errorDescriptionHasBeenSet = true;
90 m_errorDescription = std::forward<ErrorDescriptionT>(value);
91 }
92 template <typename ErrorDescriptionT = Aws::String>
93 GetWorkflowResult& WithErrorDescription(ErrorDescriptionT&& value) {
94 SetErrorDescription(std::forward<ErrorDescriptionT>(value));
95 return *this;
96 }
98
100
103 inline const Aws::Utils::DateTime& GetStartDate() const { return m_startDate; }
104 template <typename StartDateT = Aws::Utils::DateTime>
105 void SetStartDate(StartDateT&& value) {
106 m_startDateHasBeenSet = true;
107 m_startDate = std::forward<StartDateT>(value);
108 }
109 template <typename StartDateT = Aws::Utils::DateTime>
110 GetWorkflowResult& WithStartDate(StartDateT&& value) {
111 SetStartDate(std::forward<StartDateT>(value));
112 return *this;
113 }
115
117
120 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const { return m_lastUpdatedAt; }
121 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
122 void SetLastUpdatedAt(LastUpdatedAtT&& value) {
123 m_lastUpdatedAtHasBeenSet = true;
124 m_lastUpdatedAt = std::forward<LastUpdatedAtT>(value);
125 }
126 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
127 GetWorkflowResult& WithLastUpdatedAt(LastUpdatedAtT&& value) {
128 SetLastUpdatedAt(std::forward<LastUpdatedAtT>(value));
129 return *this;
130 }
132
134
137 inline const WorkflowAttributes& GetAttributes() const { return m_attributes; }
138 template <typename AttributesT = WorkflowAttributes>
139 void SetAttributes(AttributesT&& value) {
140 m_attributesHasBeenSet = true;
141 m_attributes = std::forward<AttributesT>(value);
142 }
143 template <typename AttributesT = WorkflowAttributes>
144 GetWorkflowResult& WithAttributes(AttributesT&& value) {
145 SetAttributes(std::forward<AttributesT>(value));
146 return *this;
147 }
149
151
154 inline const WorkflowMetrics& GetMetrics() const { return m_metrics; }
155 template <typename MetricsT = WorkflowMetrics>
156 void SetMetrics(MetricsT&& value) {
157 m_metricsHasBeenSet = true;
158 m_metrics = std::forward<MetricsT>(value);
159 }
160 template <typename MetricsT = WorkflowMetrics>
161 GetWorkflowResult& WithMetrics(MetricsT&& value) {
162 SetMetrics(std::forward<MetricsT>(value));
163 return *this;
164 }
166
168
169 inline const Aws::String& GetRequestId() const { return m_requestId; }
170 template <typename RequestIdT = Aws::String>
171 void SetRequestId(RequestIdT&& value) {
172 m_requestIdHasBeenSet = true;
173 m_requestId = std::forward<RequestIdT>(value);
174 }
175 template <typename RequestIdT = Aws::String>
176 GetWorkflowResult& WithRequestId(RequestIdT&& value) {
177 SetRequestId(std::forward<RequestIdT>(value));
178 return *this;
179 }
181 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
182
183 private:
184 Aws::String m_workflowId;
185
186 WorkflowType m_workflowType{WorkflowType::NOT_SET};
187
188 Status m_status{Status::NOT_SET};
189
190 Aws::String m_errorDescription;
191
192 Aws::Utils::DateTime m_startDate{};
193
194 Aws::Utils::DateTime m_lastUpdatedAt{};
195
196 WorkflowAttributes m_attributes;
197
198 WorkflowMetrics m_metrics;
199
200 Aws::String m_requestId;
201 Aws::Http::HttpResponseCode m_HttpResponseCode;
202 bool m_workflowIdHasBeenSet = false;
203 bool m_workflowTypeHasBeenSet = false;
204 bool m_statusHasBeenSet = false;
205 bool m_errorDescriptionHasBeenSet = false;
206 bool m_startDateHasBeenSet = false;
207 bool m_lastUpdatedAtHasBeenSet = false;
208 bool m_attributesHasBeenSet = false;
209 bool m_metricsHasBeenSet = false;
210 bool m_requestIdHasBeenSet = false;
211};
212
213} // namespace Model
214} // namespace CustomerProfiles
215} // namespace Aws
const Aws::Utils::DateTime & GetStartDate() const
GetWorkflowResult & WithWorkflowType(WorkflowType value)
const Aws::Utils::DateTime & GetLastUpdatedAt() const
GetWorkflowResult & WithAttributes(AttributesT &&value)
GetWorkflowResult & WithRequestId(RequestIdT &&value)
AWS_CUSTOMERPROFILES_API GetWorkflowResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const WorkflowAttributes & GetAttributes() const
Aws::Http::HttpResponseCode GetHttpResponseCode() const
GetWorkflowResult & WithStatus(Status value)
GetWorkflowResult & WithLastUpdatedAt(LastUpdatedAtT &&value)
GetWorkflowResult & WithMetrics(MetricsT &&value)
AWS_CUSTOMERPROFILES_API GetWorkflowResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_CUSTOMERPROFILES_API GetWorkflowResult()=default
GetWorkflowResult & WithErrorDescription(ErrorDescriptionT &&value)
GetWorkflowResult & WithWorkflowId(WorkflowIdT &&value)
GetWorkflowResult & WithStartDate(StartDateT &&value)
void SetErrorDescription(ErrorDescriptionT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue