AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
GetWorkflowResult.h
1
6#pragma once
7#include <aws/customer-profiles/CustomerProfiles_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/customer-profiles/model/WorkflowType.h>
10#include <aws/customer-profiles/model/Status.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/customer-profiles/model/WorkflowAttributes.h>
13#include <aws/customer-profiles/model/WorkflowMetrics.h>
14#include <utility>
15
16namespace Aws
17{
18template<typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils
22{
23namespace Json
24{
25 class JsonValue;
26} // namespace Json
27} // namespace Utils
28namespace CustomerProfiles
29{
30namespace Model
31{
33 {
34 public:
35 AWS_CUSTOMERPROFILES_API GetWorkflowResult() = default;
38
39
41
44 inline const Aws::String& GetWorkflowId() const { return m_workflowId; }
45 template<typename WorkflowIdT = Aws::String>
46 void SetWorkflowId(WorkflowIdT&& value) { m_workflowIdHasBeenSet = true; m_workflowId = std::forward<WorkflowIdT>(value); }
47 template<typename WorkflowIdT = Aws::String>
48 GetWorkflowResult& WithWorkflowId(WorkflowIdT&& value) { SetWorkflowId(std::forward<WorkflowIdT>(value)); return *this;}
50
52
55 inline WorkflowType GetWorkflowType() const { return m_workflowType; }
56 inline void SetWorkflowType(WorkflowType value) { m_workflowTypeHasBeenSet = true; m_workflowType = value; }
57 inline GetWorkflowResult& WithWorkflowType(WorkflowType value) { SetWorkflowType(value); return *this;}
59
61
64 inline Status GetStatus() const { return m_status; }
65 inline void SetStatus(Status value) { m_statusHasBeenSet = true; m_status = value; }
66 inline GetWorkflowResult& WithStatus(Status value) { SetStatus(value); return *this;}
68
70
73 inline const Aws::String& GetErrorDescription() const { return m_errorDescription; }
74 template<typename ErrorDescriptionT = Aws::String>
75 void SetErrorDescription(ErrorDescriptionT&& value) { m_errorDescriptionHasBeenSet = true; m_errorDescription = std::forward<ErrorDescriptionT>(value); }
76 template<typename ErrorDescriptionT = Aws::String>
77 GetWorkflowResult& WithErrorDescription(ErrorDescriptionT&& value) { SetErrorDescription(std::forward<ErrorDescriptionT>(value)); return *this;}
79
81
84 inline const Aws::Utils::DateTime& GetStartDate() const { return m_startDate; }
85 template<typename StartDateT = Aws::Utils::DateTime>
86 void SetStartDate(StartDateT&& value) { m_startDateHasBeenSet = true; m_startDate = std::forward<StartDateT>(value); }
87 template<typename StartDateT = Aws::Utils::DateTime>
88 GetWorkflowResult& WithStartDate(StartDateT&& value) { SetStartDate(std::forward<StartDateT>(value)); return *this;}
90
92
95 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const { return m_lastUpdatedAt; }
96 template<typename LastUpdatedAtT = Aws::Utils::DateTime>
97 void SetLastUpdatedAt(LastUpdatedAtT&& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = std::forward<LastUpdatedAtT>(value); }
98 template<typename LastUpdatedAtT = Aws::Utils::DateTime>
99 GetWorkflowResult& WithLastUpdatedAt(LastUpdatedAtT&& value) { SetLastUpdatedAt(std::forward<LastUpdatedAtT>(value)); return *this;}
101
103
106 inline const WorkflowAttributes& GetAttributes() const { return m_attributes; }
107 template<typename AttributesT = WorkflowAttributes>
108 void SetAttributes(AttributesT&& value) { m_attributesHasBeenSet = true; m_attributes = std::forward<AttributesT>(value); }
109 template<typename AttributesT = WorkflowAttributes>
110 GetWorkflowResult& WithAttributes(AttributesT&& value) { SetAttributes(std::forward<AttributesT>(value)); return *this;}
112
114
117 inline const WorkflowMetrics& GetMetrics() const { return m_metrics; }
118 template<typename MetricsT = WorkflowMetrics>
119 void SetMetrics(MetricsT&& value) { m_metricsHasBeenSet = true; m_metrics = std::forward<MetricsT>(value); }
120 template<typename MetricsT = WorkflowMetrics>
121 GetWorkflowResult& WithMetrics(MetricsT&& value) { SetMetrics(std::forward<MetricsT>(value)); return *this;}
123
125
126 inline const Aws::String& GetRequestId() const { return m_requestId; }
127 template<typename RequestIdT = Aws::String>
128 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
129 template<typename RequestIdT = Aws::String>
130 GetWorkflowResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
132 private:
133
134 Aws::String m_workflowId;
135 bool m_workflowIdHasBeenSet = false;
136
137 WorkflowType m_workflowType{WorkflowType::NOT_SET};
138 bool m_workflowTypeHasBeenSet = false;
139
140 Status m_status{Status::NOT_SET};
141 bool m_statusHasBeenSet = false;
142
143 Aws::String m_errorDescription;
144 bool m_errorDescriptionHasBeenSet = false;
145
146 Aws::Utils::DateTime m_startDate{};
147 bool m_startDateHasBeenSet = false;
148
149 Aws::Utils::DateTime m_lastUpdatedAt{};
150 bool m_lastUpdatedAtHasBeenSet = false;
151
152 WorkflowAttributes m_attributes;
153 bool m_attributesHasBeenSet = false;
154
155 WorkflowMetrics m_metrics;
156 bool m_metricsHasBeenSet = false;
157
158 Aws::String m_requestId;
159 bool m_requestIdHasBeenSet = false;
160 };
161
162} // namespace Model
163} // namespace CustomerProfiles
164} // 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