AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
GetMatchingJobResult.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/entityresolution/EntityResolution_EXPORTS.h>
12#include <aws/entityresolution/model/ErrorDetails.h>
13#include <aws/entityresolution/model/JobMetrics.h>
14#include <aws/entityresolution/model/JobOutputSource.h>
15#include <aws/entityresolution/model/JobStatus.h>
16
17#include <utility>
18
19namespace Aws {
20template <typename RESULT_TYPE>
21class AmazonWebServiceResult;
22
23namespace Utils {
24namespace Json {
25class JsonValue;
26} // namespace Json
27} // namespace Utils
28namespace EntityResolution {
29namespace Model {
31 public:
32 AWS_ENTITYRESOLUTION_API GetMatchingJobResult() = default;
35
37
40 inline const Aws::String& GetJobId() const { return m_jobId; }
41 template <typename JobIdT = Aws::String>
42 void SetJobId(JobIdT&& value) {
43 m_jobIdHasBeenSet = true;
44 m_jobId = std::forward<JobIdT>(value);
45 }
46 template <typename JobIdT = Aws::String>
48 SetJobId(std::forward<JobIdT>(value));
49 return *this;
50 }
52
54
57 inline JobStatus GetStatus() const { return m_status; }
58 inline void SetStatus(JobStatus value) {
59 m_statusHasBeenSet = true;
60 m_status = value;
61 }
63 SetStatus(value);
64 return *this;
65 }
67
69
72 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
73 template <typename StartTimeT = Aws::Utils::DateTime>
74 void SetStartTime(StartTimeT&& value) {
75 m_startTimeHasBeenSet = true;
76 m_startTime = std::forward<StartTimeT>(value);
77 }
78 template <typename StartTimeT = Aws::Utils::DateTime>
79 GetMatchingJobResult& WithStartTime(StartTimeT&& value) {
80 SetStartTime(std::forward<StartTimeT>(value));
81 return *this;
82 }
84
86
89 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
90 template <typename EndTimeT = Aws::Utils::DateTime>
91 void SetEndTime(EndTimeT&& value) {
92 m_endTimeHasBeenSet = true;
93 m_endTime = std::forward<EndTimeT>(value);
94 }
95 template <typename EndTimeT = Aws::Utils::DateTime>
96 GetMatchingJobResult& WithEndTime(EndTimeT&& value) {
97 SetEndTime(std::forward<EndTimeT>(value));
98 return *this;
99 }
101
103
107 inline const JobMetrics& GetMetrics() const { return m_metrics; }
108 template <typename MetricsT = JobMetrics>
109 void SetMetrics(MetricsT&& value) {
110 m_metricsHasBeenSet = true;
111 m_metrics = std::forward<MetricsT>(value);
112 }
113 template <typename MetricsT = JobMetrics>
115 SetMetrics(std::forward<MetricsT>(value));
116 return *this;
117 }
119
121
124 inline const ErrorDetails& GetErrorDetails() const { return m_errorDetails; }
125 template <typename ErrorDetailsT = ErrorDetails>
126 void SetErrorDetails(ErrorDetailsT&& value) {
127 m_errorDetailsHasBeenSet = true;
128 m_errorDetails = std::forward<ErrorDetailsT>(value);
129 }
130 template <typename ErrorDetailsT = ErrorDetails>
131 GetMatchingJobResult& WithErrorDetails(ErrorDetailsT&& value) {
132 SetErrorDetails(std::forward<ErrorDetailsT>(value));
133 return *this;
134 }
136
138
141 inline const Aws::Vector<JobOutputSource>& GetOutputSourceConfig() const { return m_outputSourceConfig; }
142 template <typename OutputSourceConfigT = Aws::Vector<JobOutputSource>>
143 void SetOutputSourceConfig(OutputSourceConfigT&& value) {
144 m_outputSourceConfigHasBeenSet = true;
145 m_outputSourceConfig = std::forward<OutputSourceConfigT>(value);
146 }
147 template <typename OutputSourceConfigT = Aws::Vector<JobOutputSource>>
148 GetMatchingJobResult& WithOutputSourceConfig(OutputSourceConfigT&& value) {
149 SetOutputSourceConfig(std::forward<OutputSourceConfigT>(value));
150 return *this;
151 }
152 template <typename OutputSourceConfigT = JobOutputSource>
153 GetMatchingJobResult& AddOutputSourceConfig(OutputSourceConfigT&& value) {
154 m_outputSourceConfigHasBeenSet = true;
155 m_outputSourceConfig.emplace_back(std::forward<OutputSourceConfigT>(value));
156 return *this;
157 }
159
161
162 inline const Aws::String& GetRequestId() const { return m_requestId; }
163 template <typename RequestIdT = Aws::String>
164 void SetRequestId(RequestIdT&& value) {
165 m_requestIdHasBeenSet = true;
166 m_requestId = std::forward<RequestIdT>(value);
167 }
168 template <typename RequestIdT = Aws::String>
169 GetMatchingJobResult& WithRequestId(RequestIdT&& value) {
170 SetRequestId(std::forward<RequestIdT>(value));
171 return *this;
172 }
174 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
175
176 private:
177 Aws::String m_jobId;
178
180
181 Aws::Utils::DateTime m_startTime{};
182
183 Aws::Utils::DateTime m_endTime{};
184
185 JobMetrics m_metrics;
186
187 ErrorDetails m_errorDetails;
188
189 Aws::Vector<JobOutputSource> m_outputSourceConfig;
190
191 Aws::String m_requestId;
192 Aws::Http::HttpResponseCode m_HttpResponseCode;
193 bool m_jobIdHasBeenSet = false;
194 bool m_statusHasBeenSet = false;
195 bool m_startTimeHasBeenSet = false;
196 bool m_endTimeHasBeenSet = false;
197 bool m_metricsHasBeenSet = false;
198 bool m_errorDetailsHasBeenSet = false;
199 bool m_outputSourceConfigHasBeenSet = false;
200 bool m_requestIdHasBeenSet = false;
201};
202
203} // namespace Model
204} // namespace EntityResolution
205} // namespace Aws
const Aws::Vector< JobOutputSource > & GetOutputSourceConfig() const
const Aws::Utils::DateTime & GetStartTime() const
GetMatchingJobResult & WithOutputSourceConfig(OutputSourceConfigT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
GetMatchingJobResult & WithStartTime(StartTimeT &&value)
GetMatchingJobResult & WithStatus(JobStatus value)
GetMatchingJobResult & WithRequestId(RequestIdT &&value)
GetMatchingJobResult & AddOutputSourceConfig(OutputSourceConfigT &&value)
AWS_ENTITYRESOLUTION_API GetMatchingJobResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetMatchingJobResult & WithEndTime(EndTimeT &&value)
GetMatchingJobResult & WithErrorDetails(ErrorDetailsT &&value)
void SetOutputSourceConfig(OutputSourceConfigT &&value)
GetMatchingJobResult & WithMetrics(MetricsT &&value)
const Aws::Utils::DateTime & GetEndTime() const
AWS_ENTITYRESOLUTION_API GetMatchingJobResult()=default
GetMatchingJobResult & WithJobId(JobIdT &&value)
AWS_ENTITYRESOLUTION_API GetMatchingJobResult(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