AWS SDK for C++

AWS SDK for C++ Version 1.11.754

Loading...
Searching...
No Matches
GetWorkflowResult.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/customer-profiles/CustomerProfiles_EXPORTS.h>
10#include <aws/customer-profiles/model/Status.h>
11#include <aws/customer-profiles/model/WorkflowAttributes.h>
12#include <aws/customer-profiles/model/WorkflowMetrics.h>
13#include <aws/customer-profiles/model/WorkflowType.h>
14
15#include <utility>
16
17namespace Aws {
18template <typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils {
22namespace Json {
23class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace CustomerProfiles {
27namespace Model {
29 public:
30 AWS_CUSTOMERPROFILES_API GetWorkflowResult() = default;
33
35
38 inline const Aws::String& GetWorkflowId() const { return m_workflowId; }
39 template <typename WorkflowIdT = Aws::String>
40 void SetWorkflowId(WorkflowIdT&& value) {
41 m_workflowIdHasBeenSet = true;
42 m_workflowId = std::forward<WorkflowIdT>(value);
43 }
44 template <typename WorkflowIdT = Aws::String>
45 GetWorkflowResult& WithWorkflowId(WorkflowIdT&& value) {
46 SetWorkflowId(std::forward<WorkflowIdT>(value));
47 return *this;
48 }
50
52
55 inline WorkflowType GetWorkflowType() const { return m_workflowType; }
56 inline void SetWorkflowType(WorkflowType value) {
57 m_workflowTypeHasBeenSet = true;
58 m_workflowType = value;
59 }
61 SetWorkflowType(value);
62 return *this;
63 }
65
67
70 inline Status GetStatus() const { return m_status; }
71 inline void SetStatus(Status value) {
72 m_statusHasBeenSet = true;
73 m_status = value;
74 }
76 SetStatus(value);
77 return *this;
78 }
80
82
85 inline const Aws::String& GetErrorDescription() const { return m_errorDescription; }
86 template <typename ErrorDescriptionT = Aws::String>
87 void SetErrorDescription(ErrorDescriptionT&& value) {
88 m_errorDescriptionHasBeenSet = true;
89 m_errorDescription = std::forward<ErrorDescriptionT>(value);
90 }
91 template <typename ErrorDescriptionT = Aws::String>
92 GetWorkflowResult& WithErrorDescription(ErrorDescriptionT&& value) {
93 SetErrorDescription(std::forward<ErrorDescriptionT>(value));
94 return *this;
95 }
97
99
102 inline const Aws::Utils::DateTime& GetStartDate() const { return m_startDate; }
103 template <typename StartDateT = Aws::Utils::DateTime>
104 void SetStartDate(StartDateT&& value) {
105 m_startDateHasBeenSet = true;
106 m_startDate = std::forward<StartDateT>(value);
107 }
108 template <typename StartDateT = Aws::Utils::DateTime>
109 GetWorkflowResult& WithStartDate(StartDateT&& value) {
110 SetStartDate(std::forward<StartDateT>(value));
111 return *this;
112 }
114
116
119 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const { return m_lastUpdatedAt; }
120 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
121 void SetLastUpdatedAt(LastUpdatedAtT&& value) {
122 m_lastUpdatedAtHasBeenSet = true;
123 m_lastUpdatedAt = std::forward<LastUpdatedAtT>(value);
124 }
125 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
126 GetWorkflowResult& WithLastUpdatedAt(LastUpdatedAtT&& value) {
127 SetLastUpdatedAt(std::forward<LastUpdatedAtT>(value));
128 return *this;
129 }
131
133
136 inline const WorkflowAttributes& GetAttributes() const { return m_attributes; }
137 template <typename AttributesT = WorkflowAttributes>
138 void SetAttributes(AttributesT&& value) {
139 m_attributesHasBeenSet = true;
140 m_attributes = std::forward<AttributesT>(value);
141 }
142 template <typename AttributesT = WorkflowAttributes>
143 GetWorkflowResult& WithAttributes(AttributesT&& value) {
144 SetAttributes(std::forward<AttributesT>(value));
145 return *this;
146 }
148
150
153 inline const WorkflowMetrics& GetMetrics() const { return m_metrics; }
154 template <typename MetricsT = WorkflowMetrics>
155 void SetMetrics(MetricsT&& value) {
156 m_metricsHasBeenSet = true;
157 m_metrics = std::forward<MetricsT>(value);
158 }
159 template <typename MetricsT = WorkflowMetrics>
160 GetWorkflowResult& WithMetrics(MetricsT&& value) {
161 SetMetrics(std::forward<MetricsT>(value));
162 return *this;
163 }
165
167
168 inline const Aws::String& GetRequestId() const { return m_requestId; }
169 template <typename RequestIdT = Aws::String>
170 void SetRequestId(RequestIdT&& value) {
171 m_requestIdHasBeenSet = true;
172 m_requestId = std::forward<RequestIdT>(value);
173 }
174 template <typename RequestIdT = Aws::String>
175 GetWorkflowResult& WithRequestId(RequestIdT&& value) {
176 SetRequestId(std::forward<RequestIdT>(value));
177 return *this;
178 }
180 private:
181 Aws::String m_workflowId;
182
183 WorkflowType m_workflowType{WorkflowType::NOT_SET};
184
185 Status m_status{Status::NOT_SET};
186
187 Aws::String m_errorDescription;
188
189 Aws::Utils::DateTime m_startDate{};
190
191 Aws::Utils::DateTime m_lastUpdatedAt{};
192
193 WorkflowAttributes m_attributes;
194
195 WorkflowMetrics m_metrics;
196
197 Aws::String m_requestId;
198 bool m_workflowIdHasBeenSet = false;
199 bool m_workflowTypeHasBeenSet = false;
200 bool m_statusHasBeenSet = false;
201 bool m_errorDescriptionHasBeenSet = false;
202 bool m_startDateHasBeenSet = false;
203 bool m_lastUpdatedAtHasBeenSet = false;
204 bool m_attributesHasBeenSet = false;
205 bool m_metricsHasBeenSet = false;
206 bool m_requestIdHasBeenSet = false;
207};
208
209} // namespace Model
210} // namespace CustomerProfiles
211} // 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
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