AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
SigningJob.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/signer/Signer_EXPORTS.h>
10#include <aws/signer/model/SignedObject.h>
11#include <aws/signer/model/SigningMaterial.h>
12#include <aws/signer/model/SigningStatus.h>
13#include <aws/signer/model/Source.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace signer {
25namespace Model {
26
33 public:
34 AWS_SIGNER_API SigningJob() = default;
35 AWS_SIGNER_API SigningJob(Aws::Utils::Json::JsonView jsonValue);
37 AWS_SIGNER_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetJobId() const { return m_jobId; }
44 inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
45 template <typename JobIdT = Aws::String>
46 void SetJobId(JobIdT&& value) {
47 m_jobIdHasBeenSet = true;
48 m_jobId = std::forward<JobIdT>(value);
49 }
50 template <typename JobIdT = Aws::String>
51 SigningJob& WithJobId(JobIdT&& value) {
52 SetJobId(std::forward<JobIdT>(value));
53 return *this;
54 }
56
58
62 inline const Source& GetSource() const { return m_source; }
63 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
64 template <typename SourceT = Source>
65 void SetSource(SourceT&& value) {
66 m_sourceHasBeenSet = true;
67 m_source = std::forward<SourceT>(value);
68 }
69 template <typename SourceT = Source>
70 SigningJob& WithSource(SourceT&& value) {
71 SetSource(std::forward<SourceT>(value));
72 return *this;
73 }
75
77
81 inline const SignedObject& GetSignedObject() const { return m_signedObject; }
82 inline bool SignedObjectHasBeenSet() const { return m_signedObjectHasBeenSet; }
83 template <typename SignedObjectT = SignedObject>
84 void SetSignedObject(SignedObjectT&& value) {
85 m_signedObjectHasBeenSet = true;
86 m_signedObject = std::forward<SignedObjectT>(value);
87 }
88 template <typename SignedObjectT = SignedObject>
89 SigningJob& WithSignedObject(SignedObjectT&& value) {
90 SetSignedObject(std::forward<SignedObjectT>(value));
91 return *this;
92 }
94
96
100 inline const SigningMaterial& GetSigningMaterial() const { return m_signingMaterial; }
101 inline bool SigningMaterialHasBeenSet() const { return m_signingMaterialHasBeenSet; }
102 template <typename SigningMaterialT = SigningMaterial>
103 void SetSigningMaterial(SigningMaterialT&& value) {
104 m_signingMaterialHasBeenSet = true;
105 m_signingMaterial = std::forward<SigningMaterialT>(value);
106 }
107 template <typename SigningMaterialT = SigningMaterial>
108 SigningJob& WithSigningMaterial(SigningMaterialT&& value) {
109 SetSigningMaterial(std::forward<SigningMaterialT>(value));
110 return *this;
111 }
113
115
118 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
119 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
120 template <typename CreatedAtT = Aws::Utils::DateTime>
121 void SetCreatedAt(CreatedAtT&& value) {
122 m_createdAtHasBeenSet = true;
123 m_createdAt = std::forward<CreatedAtT>(value);
124 }
125 template <typename CreatedAtT = Aws::Utils::DateTime>
126 SigningJob& WithCreatedAt(CreatedAtT&& value) {
127 SetCreatedAt(std::forward<CreatedAtT>(value));
128 return *this;
129 }
131
133
136 inline SigningStatus GetStatus() const { return m_status; }
137 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
138 inline void SetStatus(SigningStatus value) {
139 m_statusHasBeenSet = true;
140 m_status = value;
141 }
143 SetStatus(value);
144 return *this;
145 }
147
149
152 inline bool GetIsRevoked() const { return m_isRevoked; }
153 inline bool IsRevokedHasBeenSet() const { return m_isRevokedHasBeenSet; }
154 inline void SetIsRevoked(bool value) {
155 m_isRevokedHasBeenSet = true;
156 m_isRevoked = value;
157 }
158 inline SigningJob& WithIsRevoked(bool value) {
159 SetIsRevoked(value);
160 return *this;
161 }
163
165
168 inline const Aws::String& GetProfileName() const { return m_profileName; }
169 inline bool ProfileNameHasBeenSet() const { return m_profileNameHasBeenSet; }
170 template <typename ProfileNameT = Aws::String>
171 void SetProfileName(ProfileNameT&& value) {
172 m_profileNameHasBeenSet = true;
173 m_profileName = std::forward<ProfileNameT>(value);
174 }
175 template <typename ProfileNameT = Aws::String>
176 SigningJob& WithProfileName(ProfileNameT&& value) {
177 SetProfileName(std::forward<ProfileNameT>(value));
178 return *this;
179 }
181
183
186 inline const Aws::String& GetProfileVersion() const { return m_profileVersion; }
187 inline bool ProfileVersionHasBeenSet() const { return m_profileVersionHasBeenSet; }
188 template <typename ProfileVersionT = Aws::String>
189 void SetProfileVersion(ProfileVersionT&& value) {
190 m_profileVersionHasBeenSet = true;
191 m_profileVersion = std::forward<ProfileVersionT>(value);
192 }
193 template <typename ProfileVersionT = Aws::String>
194 SigningJob& WithProfileVersion(ProfileVersionT&& value) {
195 SetProfileVersion(std::forward<ProfileVersionT>(value));
196 return *this;
197 }
199
201
204 inline const Aws::String& GetPlatformId() const { return m_platformId; }
205 inline bool PlatformIdHasBeenSet() const { return m_platformIdHasBeenSet; }
206 template <typename PlatformIdT = Aws::String>
207 void SetPlatformId(PlatformIdT&& value) {
208 m_platformIdHasBeenSet = true;
209 m_platformId = std::forward<PlatformIdT>(value);
210 }
211 template <typename PlatformIdT = Aws::String>
212 SigningJob& WithPlatformId(PlatformIdT&& value) {
213 SetPlatformId(std::forward<PlatformIdT>(value));
214 return *this;
215 }
217
219
222 inline const Aws::String& GetPlatformDisplayName() const { return m_platformDisplayName; }
223 inline bool PlatformDisplayNameHasBeenSet() const { return m_platformDisplayNameHasBeenSet; }
224 template <typename PlatformDisplayNameT = Aws::String>
225 void SetPlatformDisplayName(PlatformDisplayNameT&& value) {
226 m_platformDisplayNameHasBeenSet = true;
227 m_platformDisplayName = std::forward<PlatformDisplayNameT>(value);
228 }
229 template <typename PlatformDisplayNameT = Aws::String>
230 SigningJob& WithPlatformDisplayName(PlatformDisplayNameT&& value) {
231 SetPlatformDisplayName(std::forward<PlatformDisplayNameT>(value));
232 return *this;
233 }
235
237
240 inline const Aws::Utils::DateTime& GetSignatureExpiresAt() const { return m_signatureExpiresAt; }
241 inline bool SignatureExpiresAtHasBeenSet() const { return m_signatureExpiresAtHasBeenSet; }
242 template <typename SignatureExpiresAtT = Aws::Utils::DateTime>
243 void SetSignatureExpiresAt(SignatureExpiresAtT&& value) {
244 m_signatureExpiresAtHasBeenSet = true;
245 m_signatureExpiresAt = std::forward<SignatureExpiresAtT>(value);
246 }
247 template <typename SignatureExpiresAtT = Aws::Utils::DateTime>
248 SigningJob& WithSignatureExpiresAt(SignatureExpiresAtT&& value) {
249 SetSignatureExpiresAt(std::forward<SignatureExpiresAtT>(value));
250 return *this;
251 }
253
255
258 inline const Aws::String& GetJobOwner() const { return m_jobOwner; }
259 inline bool JobOwnerHasBeenSet() const { return m_jobOwnerHasBeenSet; }
260 template <typename JobOwnerT = Aws::String>
261 void SetJobOwner(JobOwnerT&& value) {
262 m_jobOwnerHasBeenSet = true;
263 m_jobOwner = std::forward<JobOwnerT>(value);
264 }
265 template <typename JobOwnerT = Aws::String>
266 SigningJob& WithJobOwner(JobOwnerT&& value) {
267 SetJobOwner(std::forward<JobOwnerT>(value));
268 return *this;
269 }
271
273
276 inline const Aws::String& GetJobInvoker() const { return m_jobInvoker; }
277 inline bool JobInvokerHasBeenSet() const { return m_jobInvokerHasBeenSet; }
278 template <typename JobInvokerT = Aws::String>
279 void SetJobInvoker(JobInvokerT&& value) {
280 m_jobInvokerHasBeenSet = true;
281 m_jobInvoker = std::forward<JobInvokerT>(value);
282 }
283 template <typename JobInvokerT = Aws::String>
284 SigningJob& WithJobInvoker(JobInvokerT&& value) {
285 SetJobInvoker(std::forward<JobInvokerT>(value));
286 return *this;
287 }
289 private:
290 Aws::String m_jobId;
291
292 Source m_source;
293
294 SignedObject m_signedObject;
295
296 SigningMaterial m_signingMaterial;
297
298 Aws::Utils::DateTime m_createdAt{};
299
301
302 bool m_isRevoked{false};
303
304 Aws::String m_profileName;
305
306 Aws::String m_profileVersion;
307
308 Aws::String m_platformId;
309
310 Aws::String m_platformDisplayName;
311
312 Aws::Utils::DateTime m_signatureExpiresAt{};
313
314 Aws::String m_jobOwner;
315
316 Aws::String m_jobInvoker;
317 bool m_jobIdHasBeenSet = false;
318 bool m_sourceHasBeenSet = false;
319 bool m_signedObjectHasBeenSet = false;
320 bool m_signingMaterialHasBeenSet = false;
321 bool m_createdAtHasBeenSet = false;
322 bool m_statusHasBeenSet = false;
323 bool m_isRevokedHasBeenSet = false;
324 bool m_profileNameHasBeenSet = false;
325 bool m_profileVersionHasBeenSet = false;
326 bool m_platformIdHasBeenSet = false;
327 bool m_platformDisplayNameHasBeenSet = false;
328 bool m_signatureExpiresAtHasBeenSet = false;
329 bool m_jobOwnerHasBeenSet = false;
330 bool m_jobInvokerHasBeenSet = false;
331};
332
333} // namespace Model
334} // namespace signer
335} // namespace Aws
AWS_SIGNER_API SigningJob()=default
const Aws::String & GetJobOwner() const
Definition SigningJob.h:258
SigningJob & WithJobId(JobIdT &&value)
Definition SigningJob.h:51
const SigningMaterial & GetSigningMaterial() const
Definition SigningJob.h:100
const Aws::String & GetProfileName() const
Definition SigningJob.h:168
AWS_SIGNER_API Aws::Utils::Json::JsonValue Jsonize() const
SigningJob & WithProfileVersion(ProfileVersionT &&value)
Definition SigningJob.h:194
SigningJob & WithCreatedAt(CreatedAtT &&value)
Definition SigningJob.h:126
const Aws::String & GetPlatformId() const
Definition SigningJob.h:204
void SetPlatformDisplayName(PlatformDisplayNameT &&value)
Definition SigningJob.h:225
void SetCreatedAt(CreatedAtT &&value)
Definition SigningJob.h:121
const Aws::String & GetJobId() const
Definition SigningJob.h:43
void SetSignedObject(SignedObjectT &&value)
Definition SigningJob.h:84
const Aws::Utils::DateTime & GetCreatedAt() const
Definition SigningJob.h:118
const Aws::String & GetProfileVersion() const
Definition SigningJob.h:186
SigningJob & WithPlatformDisplayName(PlatformDisplayNameT &&value)
Definition SigningJob.h:230
SigningJob & WithSigningMaterial(SigningMaterialT &&value)
Definition SigningJob.h:108
void SetSource(SourceT &&value)
Definition SigningJob.h:65
SigningJob & WithIsRevoked(bool value)
Definition SigningJob.h:158
const Source & GetSource() const
Definition SigningJob.h:62
SigningJob & WithProfileName(ProfileNameT &&value)
Definition SigningJob.h:176
AWS_SIGNER_API SigningJob & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetPlatformDisplayName() const
Definition SigningJob.h:222
SigningJob & WithSignedObject(SignedObjectT &&value)
Definition SigningJob.h:89
const Aws::String & GetJobInvoker() const
Definition SigningJob.h:276
void SetSigningMaterial(SigningMaterialT &&value)
Definition SigningJob.h:103
void SetPlatformId(PlatformIdT &&value)
Definition SigningJob.h:207
SigningJob & WithJobOwner(JobOwnerT &&value)
Definition SigningJob.h:266
void SetIsRevoked(bool value)
Definition SigningJob.h:154
void SetJobOwner(JobOwnerT &&value)
Definition SigningJob.h:261
SigningJob & WithSource(SourceT &&value)
Definition SigningJob.h:70
SigningJob & WithJobInvoker(JobInvokerT &&value)
Definition SigningJob.h:284
SigningJob & WithSignatureExpiresAt(SignatureExpiresAtT &&value)
Definition SigningJob.h:248
void SetJobInvoker(JobInvokerT &&value)
Definition SigningJob.h:279
bool SigningMaterialHasBeenSet() const
Definition SigningJob.h:101
void SetStatus(SigningStatus value)
Definition SigningJob.h:138
bool PlatformDisplayNameHasBeenSet() const
Definition SigningJob.h:223
bool SignatureExpiresAtHasBeenSet() const
Definition SigningJob.h:241
SigningJob & WithPlatformId(PlatformIdT &&value)
Definition SigningJob.h:212
void SetProfileVersion(ProfileVersionT &&value)
Definition SigningJob.h:189
const SignedObject & GetSignedObject() const
Definition SigningJob.h:81
const Aws::Utils::DateTime & GetSignatureExpiresAt() const
Definition SigningJob.h:240
void SetJobId(JobIdT &&value)
Definition SigningJob.h:46
AWS_SIGNER_API SigningJob(Aws::Utils::Json::JsonView jsonValue)
bool SignedObjectHasBeenSet() const
Definition SigningJob.h:82
bool ProfileVersionHasBeenSet() const
Definition SigningJob.h:187
SigningJob & WithStatus(SigningStatus value)
Definition SigningJob.h:142
void SetProfileName(ProfileNameT &&value)
Definition SigningJob.h:171
SigningStatus GetStatus() const
Definition SigningJob.h:136
void SetSignatureExpiresAt(SignatureExpiresAtT &&value)
Definition SigningJob.h:243
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue