AWS SDK for C++

AWS SDK for C++ Version 1.11.751

Loading...
Searching...
No Matches
GetMatchingJobResult.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/entityresolution/EntityResolution_EXPORTS.h>
11#include <aws/entityresolution/model/ErrorDetails.h>
12#include <aws/entityresolution/model/JobMetrics.h>
13#include <aws/entityresolution/model/JobOutputSource.h>
14#include <aws/entityresolution/model/JobStatus.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 EntityResolution {
28namespace Model {
30 public:
31 AWS_ENTITYRESOLUTION_API GetMatchingJobResult() = default;
34
36
39 inline const Aws::String& GetJobId() const { return m_jobId; }
40 template <typename JobIdT = Aws::String>
41 void SetJobId(JobIdT&& value) {
42 m_jobIdHasBeenSet = true;
43 m_jobId = std::forward<JobIdT>(value);
44 }
45 template <typename JobIdT = Aws::String>
47 SetJobId(std::forward<JobIdT>(value));
48 return *this;
49 }
51
53
56 inline JobStatus GetStatus() const { return m_status; }
57 inline void SetStatus(JobStatus value) {
58 m_statusHasBeenSet = true;
59 m_status = value;
60 }
62 SetStatus(value);
63 return *this;
64 }
66
68
71 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
72 template <typename StartTimeT = Aws::Utils::DateTime>
73 void SetStartTime(StartTimeT&& value) {
74 m_startTimeHasBeenSet = true;
75 m_startTime = std::forward<StartTimeT>(value);
76 }
77 template <typename StartTimeT = Aws::Utils::DateTime>
78 GetMatchingJobResult& WithStartTime(StartTimeT&& value) {
79 SetStartTime(std::forward<StartTimeT>(value));
80 return *this;
81 }
83
85
88 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
89 template <typename EndTimeT = Aws::Utils::DateTime>
90 void SetEndTime(EndTimeT&& value) {
91 m_endTimeHasBeenSet = true;
92 m_endTime = std::forward<EndTimeT>(value);
93 }
94 template <typename EndTimeT = Aws::Utils::DateTime>
95 GetMatchingJobResult& WithEndTime(EndTimeT&& value) {
96 SetEndTime(std::forward<EndTimeT>(value));
97 return *this;
98 }
100
102
106 inline const JobMetrics& GetMetrics() const { return m_metrics; }
107 template <typename MetricsT = JobMetrics>
108 void SetMetrics(MetricsT&& value) {
109 m_metricsHasBeenSet = true;
110 m_metrics = std::forward<MetricsT>(value);
111 }
112 template <typename MetricsT = JobMetrics>
114 SetMetrics(std::forward<MetricsT>(value));
115 return *this;
116 }
118
120
123 inline const ErrorDetails& GetErrorDetails() const { return m_errorDetails; }
124 template <typename ErrorDetailsT = ErrorDetails>
125 void SetErrorDetails(ErrorDetailsT&& value) {
126 m_errorDetailsHasBeenSet = true;
127 m_errorDetails = std::forward<ErrorDetailsT>(value);
128 }
129 template <typename ErrorDetailsT = ErrorDetails>
130 GetMatchingJobResult& WithErrorDetails(ErrorDetailsT&& value) {
131 SetErrorDetails(std::forward<ErrorDetailsT>(value));
132 return *this;
133 }
135
137
140 inline const Aws::Vector<JobOutputSource>& GetOutputSourceConfig() const { return m_outputSourceConfig; }
141 template <typename OutputSourceConfigT = Aws::Vector<JobOutputSource>>
142 void SetOutputSourceConfig(OutputSourceConfigT&& value) {
143 m_outputSourceConfigHasBeenSet = true;
144 m_outputSourceConfig = std::forward<OutputSourceConfigT>(value);
145 }
146 template <typename OutputSourceConfigT = Aws::Vector<JobOutputSource>>
147 GetMatchingJobResult& WithOutputSourceConfig(OutputSourceConfigT&& value) {
148 SetOutputSourceConfig(std::forward<OutputSourceConfigT>(value));
149 return *this;
150 }
151 template <typename OutputSourceConfigT = JobOutputSource>
152 GetMatchingJobResult& AddOutputSourceConfig(OutputSourceConfigT&& value) {
153 m_outputSourceConfigHasBeenSet = true;
154 m_outputSourceConfig.emplace_back(std::forward<OutputSourceConfigT>(value));
155 return *this;
156 }
158
160
161 inline const Aws::String& GetRequestId() const { return m_requestId; }
162 template <typename RequestIdT = Aws::String>
163 void SetRequestId(RequestIdT&& value) {
164 m_requestIdHasBeenSet = true;
165 m_requestId = std::forward<RequestIdT>(value);
166 }
167 template <typename RequestIdT = Aws::String>
168 GetMatchingJobResult& WithRequestId(RequestIdT&& value) {
169 SetRequestId(std::forward<RequestIdT>(value));
170 return *this;
171 }
173 private:
174 Aws::String m_jobId;
175
177
178 Aws::Utils::DateTime m_startTime{};
179
180 Aws::Utils::DateTime m_endTime{};
181
182 JobMetrics m_metrics;
183
184 ErrorDetails m_errorDetails;
185
186 Aws::Vector<JobOutputSource> m_outputSourceConfig;
187
188 Aws::String m_requestId;
189 bool m_jobIdHasBeenSet = false;
190 bool m_statusHasBeenSet = false;
191 bool m_startTimeHasBeenSet = false;
192 bool m_endTimeHasBeenSet = false;
193 bool m_metricsHasBeenSet = false;
194 bool m_errorDetailsHasBeenSet = false;
195 bool m_outputSourceConfigHasBeenSet = false;
196 bool m_requestIdHasBeenSet = false;
197};
198
199} // namespace Model
200} // namespace EntityResolution
201} // namespace Aws
const Aws::Vector< JobOutputSource > & GetOutputSourceConfig() const
const Aws::Utils::DateTime & GetStartTime() const
GetMatchingJobResult & WithOutputSourceConfig(OutputSourceConfigT &&value)
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