AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
ProtectedJob.h
1
6#pragma once
7#include <aws/cleanrooms/CleanRooms_EXPORTS.h>
8#include <aws/cleanrooms/model/ProtectedJobComputeConfiguration.h>
9#include <aws/cleanrooms/model/ProtectedJobError.h>
10#include <aws/cleanrooms/model/ProtectedJobParameters.h>
11#include <aws/cleanrooms/model/ProtectedJobResult.h>
12#include <aws/cleanrooms/model/ProtectedJobResultConfigurationOutput.h>
13#include <aws/cleanrooms/model/ProtectedJobStatistics.h>
14#include <aws/cleanrooms/model/ProtectedJobStatus.h>
15#include <aws/core/utils/DateTime.h>
16#include <aws/core/utils/memory/stl/AWSString.h>
17
18#include <utility>
19
20namespace Aws {
21namespace Utils {
22namespace Json {
23class JsonValue;
24class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace CleanRooms {
28namespace Model {
29
37 public:
38 AWS_CLEANROOMS_API ProtectedJob() = default;
39 AWS_CLEANROOMS_API ProtectedJob(Aws::Utils::Json::JsonView jsonValue);
40 AWS_CLEANROOMS_API ProtectedJob& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_CLEANROOMS_API Aws::Utils::Json::JsonValue Jsonize() const;
42
44
47 inline const Aws::String& GetId() const { return m_id; }
48 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
49 template <typename IdT = Aws::String>
50 void SetId(IdT&& value) {
51 m_idHasBeenSet = true;
52 m_id = std::forward<IdT>(value);
53 }
54 template <typename IdT = Aws::String>
55 ProtectedJob& WithId(IdT&& value) {
56 SetId(std::forward<IdT>(value));
57 return *this;
58 }
60
62
65 inline const Aws::String& GetMembershipId() const { return m_membershipId; }
66 inline bool MembershipIdHasBeenSet() const { return m_membershipIdHasBeenSet; }
67 template <typename MembershipIdT = Aws::String>
68 void SetMembershipId(MembershipIdT&& value) {
69 m_membershipIdHasBeenSet = true;
70 m_membershipId = std::forward<MembershipIdT>(value);
71 }
72 template <typename MembershipIdT = Aws::String>
73 ProtectedJob& WithMembershipId(MembershipIdT&& value) {
74 SetMembershipId(std::forward<MembershipIdT>(value));
75 return *this;
76 }
78
80
83 inline const Aws::String& GetMembershipArn() const { return m_membershipArn; }
84 inline bool MembershipArnHasBeenSet() const { return m_membershipArnHasBeenSet; }
85 template <typename MembershipArnT = Aws::String>
86 void SetMembershipArn(MembershipArnT&& value) {
87 m_membershipArnHasBeenSet = true;
88 m_membershipArn = std::forward<MembershipArnT>(value);
89 }
90 template <typename MembershipArnT = Aws::String>
91 ProtectedJob& WithMembershipArn(MembershipArnT&& value) {
92 SetMembershipArn(std::forward<MembershipArnT>(value));
93 return *this;
94 }
96
98
101 inline const Aws::Utils::DateTime& GetCreateTime() const { return m_createTime; }
102 inline bool CreateTimeHasBeenSet() const { return m_createTimeHasBeenSet; }
103 template <typename CreateTimeT = Aws::Utils::DateTime>
104 void SetCreateTime(CreateTimeT&& value) {
105 m_createTimeHasBeenSet = true;
106 m_createTime = std::forward<CreateTimeT>(value);
107 }
108 template <typename CreateTimeT = Aws::Utils::DateTime>
109 ProtectedJob& WithCreateTime(CreateTimeT&& value) {
110 SetCreateTime(std::forward<CreateTimeT>(value));
111 return *this;
112 }
114
116
119 inline const ProtectedJobParameters& GetJobParameters() const { return m_jobParameters; }
120 inline bool JobParametersHasBeenSet() const { return m_jobParametersHasBeenSet; }
121 template <typename JobParametersT = ProtectedJobParameters>
122 void SetJobParameters(JobParametersT&& value) {
123 m_jobParametersHasBeenSet = true;
124 m_jobParameters = std::forward<JobParametersT>(value);
125 }
126 template <typename JobParametersT = ProtectedJobParameters>
127 ProtectedJob& WithJobParameters(JobParametersT&& value) {
128 SetJobParameters(std::forward<JobParametersT>(value));
129 return *this;
130 }
132
134
137 inline ProtectedJobStatus GetStatus() const { return m_status; }
138 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
139 inline void SetStatus(ProtectedJobStatus value) {
140 m_statusHasBeenSet = true;
141 m_status = value;
142 }
144 SetStatus(value);
145 return *this;
146 }
148
150
153 inline const ProtectedJobResultConfigurationOutput& GetResultConfiguration() const { return m_resultConfiguration; }
154 inline bool ResultConfigurationHasBeenSet() const { return m_resultConfigurationHasBeenSet; }
155 template <typename ResultConfigurationT = ProtectedJobResultConfigurationOutput>
156 void SetResultConfiguration(ResultConfigurationT&& value) {
157 m_resultConfigurationHasBeenSet = true;
158 m_resultConfiguration = std::forward<ResultConfigurationT>(value);
159 }
160 template <typename ResultConfigurationT = ProtectedJobResultConfigurationOutput>
161 ProtectedJob& WithResultConfiguration(ResultConfigurationT&& value) {
162 SetResultConfiguration(std::forward<ResultConfigurationT>(value));
163 return *this;
164 }
166
168
171 inline const ProtectedJobStatistics& GetStatistics() const { return m_statistics; }
172 inline bool StatisticsHasBeenSet() const { return m_statisticsHasBeenSet; }
173 template <typename StatisticsT = ProtectedJobStatistics>
174 void SetStatistics(StatisticsT&& value) {
175 m_statisticsHasBeenSet = true;
176 m_statistics = std::forward<StatisticsT>(value);
177 }
178 template <typename StatisticsT = ProtectedJobStatistics>
179 ProtectedJob& WithStatistics(StatisticsT&& value) {
180 SetStatistics(std::forward<StatisticsT>(value));
181 return *this;
182 }
184
186
189 inline const ProtectedJobResult& GetResult() const { return m_result; }
190 inline bool ResultHasBeenSet() const { return m_resultHasBeenSet; }
191 template <typename ResultT = ProtectedJobResult>
192 void SetResult(ResultT&& value) {
193 m_resultHasBeenSet = true;
194 m_result = std::forward<ResultT>(value);
195 }
196 template <typename ResultT = ProtectedJobResult>
197 ProtectedJob& WithResult(ResultT&& value) {
198 SetResult(std::forward<ResultT>(value));
199 return *this;
200 }
202
204
207 inline const ProtectedJobError& GetError() const { return m_error; }
208 inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
209 template <typename ErrorT = ProtectedJobError>
210 void SetError(ErrorT&& value) {
211 m_errorHasBeenSet = true;
212 m_error = std::forward<ErrorT>(value);
213 }
214 template <typename ErrorT = ProtectedJobError>
215 ProtectedJob& WithError(ErrorT&& value) {
216 SetError(std::forward<ErrorT>(value));
217 return *this;
218 }
220
222
225 inline const ProtectedJobComputeConfiguration& GetComputeConfiguration() const { return m_computeConfiguration; }
226 inline bool ComputeConfigurationHasBeenSet() const { return m_computeConfigurationHasBeenSet; }
227 template <typename ComputeConfigurationT = ProtectedJobComputeConfiguration>
228 void SetComputeConfiguration(ComputeConfigurationT&& value) {
229 m_computeConfigurationHasBeenSet = true;
230 m_computeConfiguration = std::forward<ComputeConfigurationT>(value);
231 }
232 template <typename ComputeConfigurationT = ProtectedJobComputeConfiguration>
233 ProtectedJob& WithComputeConfiguration(ComputeConfigurationT&& value) {
234 SetComputeConfiguration(std::forward<ComputeConfigurationT>(value));
235 return *this;
236 }
238 private:
239 Aws::String m_id;
240
241 Aws::String m_membershipId;
242
243 Aws::String m_membershipArn;
244
245 Aws::Utils::DateTime m_createTime{};
246
247 ProtectedJobParameters m_jobParameters;
248
250
251 ProtectedJobResultConfigurationOutput m_resultConfiguration;
252
253 ProtectedJobStatistics m_statistics;
254
255 ProtectedJobResult m_result;
256
257 ProtectedJobError m_error;
258
259 ProtectedJobComputeConfiguration m_computeConfiguration;
260 bool m_idHasBeenSet = false;
261 bool m_membershipIdHasBeenSet = false;
262 bool m_membershipArnHasBeenSet = false;
263 bool m_createTimeHasBeenSet = false;
264 bool m_jobParametersHasBeenSet = false;
265 bool m_statusHasBeenSet = false;
266 bool m_resultConfigurationHasBeenSet = false;
267 bool m_statisticsHasBeenSet = false;
268 bool m_resultHasBeenSet = false;
269 bool m_errorHasBeenSet = false;
270 bool m_computeConfigurationHasBeenSet = false;
271};
272
273} // namespace Model
274} // namespace CleanRooms
275} // namespace Aws
ProtectedJob & WithError(ErrorT &&value)
ProtectedJob & WithComputeConfiguration(ComputeConfigurationT &&value)
void SetStatus(ProtectedJobStatus value)
ProtectedJob & WithResult(ResultT &&value)
ProtectedJob & WithMembershipArn(MembershipArnT &&value)
const ProtectedJobParameters & GetJobParameters() const
const ProtectedJobComputeConfiguration & GetComputeConfiguration() const
void SetCreateTime(CreateTimeT &&value)
AWS_CLEANROOMS_API ProtectedJob(Aws::Utils::Json::JsonView jsonValue)
AWS_CLEANROOMS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetStatistics(StatisticsT &&value)
const ProtectedJobResultConfigurationOutput & GetResultConfiguration() const
void SetComputeConfiguration(ComputeConfigurationT &&value)
AWS_CLEANROOMS_API ProtectedJob()=default
ProtectedJob & WithCreateTime(CreateTimeT &&value)
const Aws::String & GetMembershipId() const
ProtectedJob & WithJobParameters(JobParametersT &&value)
ProtectedJob & WithId(IdT &&value)
ProtectedJobStatus GetStatus() const
void SetMembershipArn(MembershipArnT &&value)
ProtectedJob & WithMembershipId(MembershipIdT &&value)
const Aws::Utils::DateTime & GetCreateTime() const
AWS_CLEANROOMS_API ProtectedJob & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetJobParameters(JobParametersT &&value)
void SetMembershipId(MembershipIdT &&value)
const Aws::String & GetId() const
ProtectedJob & WithStatistics(StatisticsT &&value)
const ProtectedJobError & GetError() const
const ProtectedJobStatistics & GetStatistics() const
ProtectedJob & WithResultConfiguration(ResultConfigurationT &&value)
void SetResultConfiguration(ResultConfigurationT &&value)
ProtectedJob & WithStatus(ProtectedJobStatus value)
const Aws::String & GetMembershipArn() const
const ProtectedJobResult & GetResult() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue