AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
ProtectedJob.h
1
6#pragma once
7#include <aws/cleanrooms/CleanRooms_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/cleanrooms/model/ProtectedJobParameters.h>
11#include <aws/cleanrooms/model/ProtectedJobStatus.h>
12#include <aws/cleanrooms/model/ProtectedJobResultConfigurationOutput.h>
13#include <aws/cleanrooms/model/ProtectedJobStatistics.h>
14#include <aws/cleanrooms/model/ProtectedJobResult.h>
15#include <aws/cleanrooms/model/ProtectedJobError.h>
16#include <utility>
17
18namespace Aws
19{
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25 class JsonView;
26} // namespace Json
27} // namespace Utils
28namespace CleanRooms
29{
30namespace Model
31{
32
40 {
41 public:
42 AWS_CLEANROOMS_API ProtectedJob() = default;
43 AWS_CLEANROOMS_API ProtectedJob(Aws::Utils::Json::JsonView jsonValue);
44 AWS_CLEANROOMS_API ProtectedJob& operator=(Aws::Utils::Json::JsonView jsonValue);
45 AWS_CLEANROOMS_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
52 inline const Aws::String& GetId() const { return m_id; }
53 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
54 template<typename IdT = Aws::String>
55 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
56 template<typename IdT = Aws::String>
57 ProtectedJob& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
59
61
64 inline const Aws::String& GetMembershipId() const { return m_membershipId; }
65 inline bool MembershipIdHasBeenSet() const { return m_membershipIdHasBeenSet; }
66 template<typename MembershipIdT = Aws::String>
67 void SetMembershipId(MembershipIdT&& value) { m_membershipIdHasBeenSet = true; m_membershipId = std::forward<MembershipIdT>(value); }
68 template<typename MembershipIdT = Aws::String>
69 ProtectedJob& WithMembershipId(MembershipIdT&& value) { SetMembershipId(std::forward<MembershipIdT>(value)); return *this;}
71
73
76 inline const Aws::String& GetMembershipArn() const { return m_membershipArn; }
77 inline bool MembershipArnHasBeenSet() const { return m_membershipArnHasBeenSet; }
78 template<typename MembershipArnT = Aws::String>
79 void SetMembershipArn(MembershipArnT&& value) { m_membershipArnHasBeenSet = true; m_membershipArn = std::forward<MembershipArnT>(value); }
80 template<typename MembershipArnT = Aws::String>
81 ProtectedJob& WithMembershipArn(MembershipArnT&& value) { SetMembershipArn(std::forward<MembershipArnT>(value)); return *this;}
83
85
88 inline const Aws::Utils::DateTime& GetCreateTime() const { return m_createTime; }
89 inline bool CreateTimeHasBeenSet() const { return m_createTimeHasBeenSet; }
90 template<typename CreateTimeT = Aws::Utils::DateTime>
91 void SetCreateTime(CreateTimeT&& value) { m_createTimeHasBeenSet = true; m_createTime = std::forward<CreateTimeT>(value); }
92 template<typename CreateTimeT = Aws::Utils::DateTime>
93 ProtectedJob& WithCreateTime(CreateTimeT&& value) { SetCreateTime(std::forward<CreateTimeT>(value)); return *this;}
95
97
100 inline const ProtectedJobParameters& GetJobParameters() const { return m_jobParameters; }
101 inline bool JobParametersHasBeenSet() const { return m_jobParametersHasBeenSet; }
102 template<typename JobParametersT = ProtectedJobParameters>
103 void SetJobParameters(JobParametersT&& value) { m_jobParametersHasBeenSet = true; m_jobParameters = std::forward<JobParametersT>(value); }
104 template<typename JobParametersT = ProtectedJobParameters>
105 ProtectedJob& WithJobParameters(JobParametersT&& value) { SetJobParameters(std::forward<JobParametersT>(value)); return *this;}
107
109
112 inline ProtectedJobStatus GetStatus() const { return m_status; }
113 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
114 inline void SetStatus(ProtectedJobStatus value) { m_statusHasBeenSet = true; m_status = value; }
115 inline ProtectedJob& WithStatus(ProtectedJobStatus value) { SetStatus(value); return *this;}
117
119
122 inline const ProtectedJobResultConfigurationOutput& GetResultConfiguration() const { return m_resultConfiguration; }
123 inline bool ResultConfigurationHasBeenSet() const { return m_resultConfigurationHasBeenSet; }
124 template<typename ResultConfigurationT = ProtectedJobResultConfigurationOutput>
125 void SetResultConfiguration(ResultConfigurationT&& value) { m_resultConfigurationHasBeenSet = true; m_resultConfiguration = std::forward<ResultConfigurationT>(value); }
126 template<typename ResultConfigurationT = ProtectedJobResultConfigurationOutput>
127 ProtectedJob& WithResultConfiguration(ResultConfigurationT&& value) { SetResultConfiguration(std::forward<ResultConfigurationT>(value)); return *this;}
129
131
134 inline const ProtectedJobStatistics& GetStatistics() const { return m_statistics; }
135 inline bool StatisticsHasBeenSet() const { return m_statisticsHasBeenSet; }
136 template<typename StatisticsT = ProtectedJobStatistics>
137 void SetStatistics(StatisticsT&& value) { m_statisticsHasBeenSet = true; m_statistics = std::forward<StatisticsT>(value); }
138 template<typename StatisticsT = ProtectedJobStatistics>
139 ProtectedJob& WithStatistics(StatisticsT&& value) { SetStatistics(std::forward<StatisticsT>(value)); return *this;}
141
143
146 inline const ProtectedJobResult& GetResult() const { return m_result; }
147 inline bool ResultHasBeenSet() const { return m_resultHasBeenSet; }
148 template<typename ResultT = ProtectedJobResult>
149 void SetResult(ResultT&& value) { m_resultHasBeenSet = true; m_result = std::forward<ResultT>(value); }
150 template<typename ResultT = ProtectedJobResult>
151 ProtectedJob& WithResult(ResultT&& value) { SetResult(std::forward<ResultT>(value)); return *this;}
153
155
158 inline const ProtectedJobError& GetError() const { return m_error; }
159 inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
160 template<typename ErrorT = ProtectedJobError>
161 void SetError(ErrorT&& value) { m_errorHasBeenSet = true; m_error = std::forward<ErrorT>(value); }
162 template<typename ErrorT = ProtectedJobError>
163 ProtectedJob& WithError(ErrorT&& value) { SetError(std::forward<ErrorT>(value)); return *this;}
165 private:
166
167 Aws::String m_id;
168 bool m_idHasBeenSet = false;
169
170 Aws::String m_membershipId;
171 bool m_membershipIdHasBeenSet = false;
172
173 Aws::String m_membershipArn;
174 bool m_membershipArnHasBeenSet = false;
175
176 Aws::Utils::DateTime m_createTime{};
177 bool m_createTimeHasBeenSet = false;
178
179 ProtectedJobParameters m_jobParameters;
180 bool m_jobParametersHasBeenSet = false;
181
183 bool m_statusHasBeenSet = false;
184
185 ProtectedJobResultConfigurationOutput m_resultConfiguration;
186 bool m_resultConfigurationHasBeenSet = false;
187
188 ProtectedJobStatistics m_statistics;
189 bool m_statisticsHasBeenSet = false;
190
191 ProtectedJobResult m_result;
192 bool m_resultHasBeenSet = false;
193
194 ProtectedJobError m_error;
195 bool m_errorHasBeenSet = false;
196 };
197
198} // namespace Model
199} // namespace CleanRooms
200} // namespace Aws
ProtectedJob & WithError(ErrorT &&value)
void SetStatus(ProtectedJobStatus value)
ProtectedJob & WithResult(ResultT &&value)
ProtectedJob & WithMembershipArn(MembershipArnT &&value)
const ProtectedJobParameters & GetJobParameters() 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
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