aws-sdk-continuum 1.1.0

AWS SDK for AWS Continuum
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.

/// Contains the current state and details of the requested issue.
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetCodeIssueOutput {
    /// The unique identifier of the issue.
    pub issue_id: ::std::string::String,
    /// The ARN of the issue.
    pub issue_arn: ::std::string::String,
    /// The name of the issue.
    pub name: ::std::string::String,
    /// A free-form synopsis of the issue.
    pub synopsis: ::std::string::String,
    /// Current severity: the FindingSeverity seed at create, overwritten by the authoritative severity that prioritization assigns after validation.
    pub severity: ::std::option::Option<crate::types::IssueSeverity>,
    /// The likelihood that this issue is a true positive, expressed as a percentage (0-100).
    pub confidence: ::std::option::Option<i32>,
    /// The justification for the current severity. Always leads with a customer-facing basis clause synthesized from how the severity was determined (e.g. "Severity from finding.", "Severity from Continuum system."); when prioritization has run, its own reasoning follows. Issues created before the basis clause was introduced return their original reasoning without it.
    pub severity_reasoning: ::std::option::Option<::std::string::String>,
    /// The remediation completion summary, when the green stage has run.
    pub summary: ::std::option::Option<::std::string::String>,
    /// The findings that motivated this issue. Bare identifiers only -- a caller authorized for GetCodeIssue is not necessarily authorized to read finding detail; call GetCodeFinding for that. Every referenced finding is included regardless of origin (both CustomerUploaded and ContinuumScanner).
    pub finding_ids: ::std::vec::Vec<::std::string::String>,
    /// The current lifecycle status of the issue.
    pub status: crate::types::IssueStatus,
    /// The part of the workflow the issue is in. Present when status is IN_PROGRESS, and when status is FAILED and the failing phase is known.
    pub phase: ::std::option::Option<crate::types::IssuePhase>,
    /// Why the issue failed. Present only when status is FAILED.
    pub status_reason: ::std::option::Option<crate::types::IssueStatusReason>,
    /// Customer-facing explanation of statusReason. Present only when status is FAILED.
    pub status_message: ::std::option::Option<::std::string::String>,
    /// The timestamp when the status or phase last changed.
    pub status_updated_at: ::aws_smithy_types::DateTime,
    /// The timestamp when the issue was created.
    pub created_at: ::aws_smithy_types::DateTime,
    /// The timestamp when any field of the issue last changed. Advances on every mutation (including score-only updates that do not transition status), so it is greater than or equal to statusUpdatedAt.
    pub updated_at: ::std::option::Option<::aws_smithy_types::DateTime>,
    /// Whether the issue has any attached evidence (formerly 'artifacts': tool output, remediation proposals, patches). NONE = no evidence; AVAILABLE = at least one evidence item exists. Computed at read time.
    pub evidence_availability: ::std::option::Option<crate::types::IssueEvidenceAvailability>,
    /// Customer delivery of the issue's patches, summarized from its PATCH artifacts at read time. Absent when no patch has a destination delivery.
    pub patch_delivery: ::std::option::Option<crate::types::IssuePatchDelivery>,
    _request_id: Option<String>,
}
impl GetCodeIssueOutput {
    /// The unique identifier of the issue.
    pub fn issue_id(&self) -> &str {
        use std::ops::Deref;
        self.issue_id.deref()
    }
    /// The ARN of the issue.
    pub fn issue_arn(&self) -> &str {
        use std::ops::Deref;
        self.issue_arn.deref()
    }
    /// The name of the issue.
    pub fn name(&self) -> &str {
        use std::ops::Deref;
        self.name.deref()
    }
    /// A free-form synopsis of the issue.
    pub fn synopsis(&self) -> &str {
        use std::ops::Deref;
        self.synopsis.deref()
    }
    /// Current severity: the FindingSeverity seed at create, overwritten by the authoritative severity that prioritization assigns after validation.
    pub fn severity(&self) -> ::std::option::Option<&crate::types::IssueSeverity> {
        self.severity.as_ref()
    }
    /// The likelihood that this issue is a true positive, expressed as a percentage (0-100).
    pub fn confidence(&self) -> ::std::option::Option<i32> {
        self.confidence
    }
    /// The justification for the current severity. Always leads with a customer-facing basis clause synthesized from how the severity was determined (e.g. "Severity from finding.", "Severity from Continuum system."); when prioritization has run, its own reasoning follows. Issues created before the basis clause was introduced return their original reasoning without it.
    pub fn severity_reasoning(&self) -> ::std::option::Option<&str> {
        self.severity_reasoning.as_deref()
    }
    /// The remediation completion summary, when the green stage has run.
    pub fn summary(&self) -> ::std::option::Option<&str> {
        self.summary.as_deref()
    }
    /// The findings that motivated this issue. Bare identifiers only -- a caller authorized for GetCodeIssue is not necessarily authorized to read finding detail; call GetCodeFinding for that. Every referenced finding is included regardless of origin (both CustomerUploaded and ContinuumScanner).
    pub fn finding_ids(&self) -> &[::std::string::String] {
        use std::ops::Deref;
        self.finding_ids.deref()
    }
    /// The current lifecycle status of the issue.
    pub fn status(&self) -> &crate::types::IssueStatus {
        &self.status
    }
    /// The part of the workflow the issue is in. Present when status is IN_PROGRESS, and when status is FAILED and the failing phase is known.
    pub fn phase(&self) -> ::std::option::Option<&crate::types::IssuePhase> {
        self.phase.as_ref()
    }
    /// Why the issue failed. Present only when status is FAILED.
    pub fn status_reason(&self) -> ::std::option::Option<&crate::types::IssueStatusReason> {
        self.status_reason.as_ref()
    }
    /// Customer-facing explanation of statusReason. Present only when status is FAILED.
    pub fn status_message(&self) -> ::std::option::Option<&str> {
        self.status_message.as_deref()
    }
    /// The timestamp when the status or phase last changed.
    pub fn status_updated_at(&self) -> &::aws_smithy_types::DateTime {
        &self.status_updated_at
    }
    /// The timestamp when the issue was created.
    pub fn created_at(&self) -> &::aws_smithy_types::DateTime {
        &self.created_at
    }
    /// The timestamp when any field of the issue last changed. Advances on every mutation (including score-only updates that do not transition status), so it is greater than or equal to statusUpdatedAt.
    pub fn updated_at(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
        self.updated_at.as_ref()
    }
    /// Whether the issue has any attached evidence (formerly 'artifacts': tool output, remediation proposals, patches). NONE = no evidence; AVAILABLE = at least one evidence item exists. Computed at read time.
    pub fn evidence_availability(&self) -> ::std::option::Option<&crate::types::IssueEvidenceAvailability> {
        self.evidence_availability.as_ref()
    }
    /// Customer delivery of the issue's patches, summarized from its PATCH artifacts at read time. Absent when no patch has a destination delivery.
    pub fn patch_delivery(&self) -> ::std::option::Option<&crate::types::IssuePatchDelivery> {
        self.patch_delivery.as_ref()
    }
}
impl ::aws_types::request_id::RequestId for GetCodeIssueOutput {
    fn request_id(&self) -> Option<&str> {
        self._request_id.as_deref()
    }
}
impl GetCodeIssueOutput {
    /// Creates a new builder-style object to manufacture [`GetCodeIssueOutput`](crate::operation::get_code_issue::GetCodeIssueOutput).
    pub fn builder() -> crate::operation::get_code_issue::builders::GetCodeIssueOutputBuilder {
        crate::operation::get_code_issue::builders::GetCodeIssueOutputBuilder::default()
    }
}

/// A builder for [`GetCodeIssueOutput`](crate::operation::get_code_issue::GetCodeIssueOutput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetCodeIssueOutputBuilder {
    pub(crate) issue_id: ::std::option::Option<::std::string::String>,
    pub(crate) issue_arn: ::std::option::Option<::std::string::String>,
    pub(crate) name: ::std::option::Option<::std::string::String>,
    pub(crate) synopsis: ::std::option::Option<::std::string::String>,
    pub(crate) severity: ::std::option::Option<crate::types::IssueSeverity>,
    pub(crate) confidence: ::std::option::Option<i32>,
    pub(crate) severity_reasoning: ::std::option::Option<::std::string::String>,
    pub(crate) summary: ::std::option::Option<::std::string::String>,
    pub(crate) finding_ids: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
    pub(crate) status: ::std::option::Option<crate::types::IssueStatus>,
    pub(crate) phase: ::std::option::Option<crate::types::IssuePhase>,
    pub(crate) status_reason: ::std::option::Option<crate::types::IssueStatusReason>,
    pub(crate) status_message: ::std::option::Option<::std::string::String>,
    pub(crate) status_updated_at: ::std::option::Option<::aws_smithy_types::DateTime>,
    pub(crate) created_at: ::std::option::Option<::aws_smithy_types::DateTime>,
    pub(crate) updated_at: ::std::option::Option<::aws_smithy_types::DateTime>,
    pub(crate) evidence_availability: ::std::option::Option<crate::types::IssueEvidenceAvailability>,
    pub(crate) patch_delivery: ::std::option::Option<crate::types::IssuePatchDelivery>,
    _request_id: Option<String>,
}
impl GetCodeIssueOutputBuilder {
    /// The unique identifier of the issue.
    /// This field is required.
    pub fn issue_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.issue_id = ::std::option::Option::Some(input.into());
        self
    }
    /// The unique identifier of the issue.
    pub fn set_issue_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.issue_id = input;
        self
    }
    /// The unique identifier of the issue.
    pub fn get_issue_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.issue_id
    }
    /// The ARN of the issue.
    /// This field is required.
    pub fn issue_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.issue_arn = ::std::option::Option::Some(input.into());
        self
    }
    /// The ARN of the issue.
    pub fn set_issue_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.issue_arn = input;
        self
    }
    /// The ARN of the issue.
    pub fn get_issue_arn(&self) -> &::std::option::Option<::std::string::String> {
        &self.issue_arn
    }
    /// The name of the issue.
    /// This field is required.
    pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.name = ::std::option::Option::Some(input.into());
        self
    }
    /// The name of the issue.
    pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.name = input;
        self
    }
    /// The name of the issue.
    pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.name
    }
    /// A free-form synopsis of the issue.
    /// This field is required.
    pub fn synopsis(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.synopsis = ::std::option::Option::Some(input.into());
        self
    }
    /// A free-form synopsis of the issue.
    pub fn set_synopsis(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.synopsis = input;
        self
    }
    /// A free-form synopsis of the issue.
    pub fn get_synopsis(&self) -> &::std::option::Option<::std::string::String> {
        &self.synopsis
    }
    /// Current severity: the FindingSeverity seed at create, overwritten by the authoritative severity that prioritization assigns after validation.
    pub fn severity(mut self, input: crate::types::IssueSeverity) -> Self {
        self.severity = ::std::option::Option::Some(input);
        self
    }
    /// Current severity: the FindingSeverity seed at create, overwritten by the authoritative severity that prioritization assigns after validation.
    pub fn set_severity(mut self, input: ::std::option::Option<crate::types::IssueSeverity>) -> Self {
        self.severity = input;
        self
    }
    /// Current severity: the FindingSeverity seed at create, overwritten by the authoritative severity that prioritization assigns after validation.
    pub fn get_severity(&self) -> &::std::option::Option<crate::types::IssueSeverity> {
        &self.severity
    }
    /// The likelihood that this issue is a true positive, expressed as a percentage (0-100).
    pub fn confidence(mut self, input: i32) -> Self {
        self.confidence = ::std::option::Option::Some(input);
        self
    }
    /// The likelihood that this issue is a true positive, expressed as a percentage (0-100).
    pub fn set_confidence(mut self, input: ::std::option::Option<i32>) -> Self {
        self.confidence = input;
        self
    }
    /// The likelihood that this issue is a true positive, expressed as a percentage (0-100).
    pub fn get_confidence(&self) -> &::std::option::Option<i32> {
        &self.confidence
    }
    /// The justification for the current severity. Always leads with a customer-facing basis clause synthesized from how the severity was determined (e.g. "Severity from finding.", "Severity from Continuum system."); when prioritization has run, its own reasoning follows. Issues created before the basis clause was introduced return their original reasoning without it.
    pub fn severity_reasoning(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.severity_reasoning = ::std::option::Option::Some(input.into());
        self
    }
    /// The justification for the current severity. Always leads with a customer-facing basis clause synthesized from how the severity was determined (e.g. "Severity from finding.", "Severity from Continuum system."); when prioritization has run, its own reasoning follows. Issues created before the basis clause was introduced return their original reasoning without it.
    pub fn set_severity_reasoning(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.severity_reasoning = input;
        self
    }
    /// The justification for the current severity. Always leads with a customer-facing basis clause synthesized from how the severity was determined (e.g. "Severity from finding.", "Severity from Continuum system."); when prioritization has run, its own reasoning follows. Issues created before the basis clause was introduced return their original reasoning without it.
    pub fn get_severity_reasoning(&self) -> &::std::option::Option<::std::string::String> {
        &self.severity_reasoning
    }
    /// The remediation completion summary, when the green stage has run.
    pub fn summary(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.summary = ::std::option::Option::Some(input.into());
        self
    }
    /// The remediation completion summary, when the green stage has run.
    pub fn set_summary(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.summary = input;
        self
    }
    /// The remediation completion summary, when the green stage has run.
    pub fn get_summary(&self) -> &::std::option::Option<::std::string::String> {
        &self.summary
    }
    /// Appends an item to `finding_ids`.
    ///
    /// To override the contents of this collection use [`set_finding_ids`](Self::set_finding_ids).
    ///
    /// The findings that motivated this issue. Bare identifiers only -- a caller authorized for GetCodeIssue is not necessarily authorized to read finding detail; call GetCodeFinding for that. Every referenced finding is included regardless of origin (both CustomerUploaded and ContinuumScanner).
    pub fn finding_ids(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        let mut v = self.finding_ids.unwrap_or_default();
        v.push(input.into());
        self.finding_ids = ::std::option::Option::Some(v);
        self
    }
    /// The findings that motivated this issue. Bare identifiers only -- a caller authorized for GetCodeIssue is not necessarily authorized to read finding detail; call GetCodeFinding for that. Every referenced finding is included regardless of origin (both CustomerUploaded and ContinuumScanner).
    pub fn set_finding_ids(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
        self.finding_ids = input;
        self
    }
    /// The findings that motivated this issue. Bare identifiers only -- a caller authorized for GetCodeIssue is not necessarily authorized to read finding detail; call GetCodeFinding for that. Every referenced finding is included regardless of origin (both CustomerUploaded and ContinuumScanner).
    pub fn get_finding_ids(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
        &self.finding_ids
    }
    /// The current lifecycle status of the issue.
    /// This field is required.
    pub fn status(mut self, input: crate::types::IssueStatus) -> Self {
        self.status = ::std::option::Option::Some(input);
        self
    }
    /// The current lifecycle status of the issue.
    pub fn set_status(mut self, input: ::std::option::Option<crate::types::IssueStatus>) -> Self {
        self.status = input;
        self
    }
    /// The current lifecycle status of the issue.
    pub fn get_status(&self) -> &::std::option::Option<crate::types::IssueStatus> {
        &self.status
    }
    /// The part of the workflow the issue is in. Present when status is IN_PROGRESS, and when status is FAILED and the failing phase is known.
    pub fn phase(mut self, input: crate::types::IssuePhase) -> Self {
        self.phase = ::std::option::Option::Some(input);
        self
    }
    /// The part of the workflow the issue is in. Present when status is IN_PROGRESS, and when status is FAILED and the failing phase is known.
    pub fn set_phase(mut self, input: ::std::option::Option<crate::types::IssuePhase>) -> Self {
        self.phase = input;
        self
    }
    /// The part of the workflow the issue is in. Present when status is IN_PROGRESS, and when status is FAILED and the failing phase is known.
    pub fn get_phase(&self) -> &::std::option::Option<crate::types::IssuePhase> {
        &self.phase
    }
    /// Why the issue failed. Present only when status is FAILED.
    pub fn status_reason(mut self, input: crate::types::IssueStatusReason) -> Self {
        self.status_reason = ::std::option::Option::Some(input);
        self
    }
    /// Why the issue failed. Present only when status is FAILED.
    pub fn set_status_reason(mut self, input: ::std::option::Option<crate::types::IssueStatusReason>) -> Self {
        self.status_reason = input;
        self
    }
    /// Why the issue failed. Present only when status is FAILED.
    pub fn get_status_reason(&self) -> &::std::option::Option<crate::types::IssueStatusReason> {
        &self.status_reason
    }
    /// Customer-facing explanation of statusReason. Present only when status is FAILED.
    pub fn status_message(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.status_message = ::std::option::Option::Some(input.into());
        self
    }
    /// Customer-facing explanation of statusReason. Present only when status is FAILED.
    pub fn set_status_message(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.status_message = input;
        self
    }
    /// Customer-facing explanation of statusReason. Present only when status is FAILED.
    pub fn get_status_message(&self) -> &::std::option::Option<::std::string::String> {
        &self.status_message
    }
    /// The timestamp when the status or phase last changed.
    /// This field is required.
    pub fn status_updated_at(mut self, input: ::aws_smithy_types::DateTime) -> Self {
        self.status_updated_at = ::std::option::Option::Some(input);
        self
    }
    /// The timestamp when the status or phase last changed.
    pub fn set_status_updated_at(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
        self.status_updated_at = input;
        self
    }
    /// The timestamp when the status or phase last changed.
    pub fn get_status_updated_at(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
        &self.status_updated_at
    }
    /// The timestamp when the issue was created.
    /// This field is required.
    pub fn created_at(mut self, input: ::aws_smithy_types::DateTime) -> Self {
        self.created_at = ::std::option::Option::Some(input);
        self
    }
    /// The timestamp when the issue was created.
    pub fn set_created_at(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
        self.created_at = input;
        self
    }
    /// The timestamp when the issue was created.
    pub fn get_created_at(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
        &self.created_at
    }
    /// The timestamp when any field of the issue last changed. Advances on every mutation (including score-only updates that do not transition status), so it is greater than or equal to statusUpdatedAt.
    pub fn updated_at(mut self, input: ::aws_smithy_types::DateTime) -> Self {
        self.updated_at = ::std::option::Option::Some(input);
        self
    }
    /// The timestamp when any field of the issue last changed. Advances on every mutation (including score-only updates that do not transition status), so it is greater than or equal to statusUpdatedAt.
    pub fn set_updated_at(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
        self.updated_at = input;
        self
    }
    /// The timestamp when any field of the issue last changed. Advances on every mutation (including score-only updates that do not transition status), so it is greater than or equal to statusUpdatedAt.
    pub fn get_updated_at(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
        &self.updated_at
    }
    /// Whether the issue has any attached evidence (formerly 'artifacts': tool output, remediation proposals, patches). NONE = no evidence; AVAILABLE = at least one evidence item exists. Computed at read time.
    pub fn evidence_availability(mut self, input: crate::types::IssueEvidenceAvailability) -> Self {
        self.evidence_availability = ::std::option::Option::Some(input);
        self
    }
    /// Whether the issue has any attached evidence (formerly 'artifacts': tool output, remediation proposals, patches). NONE = no evidence; AVAILABLE = at least one evidence item exists. Computed at read time.
    pub fn set_evidence_availability(mut self, input: ::std::option::Option<crate::types::IssueEvidenceAvailability>) -> Self {
        self.evidence_availability = input;
        self
    }
    /// Whether the issue has any attached evidence (formerly 'artifacts': tool output, remediation proposals, patches). NONE = no evidence; AVAILABLE = at least one evidence item exists. Computed at read time.
    pub fn get_evidence_availability(&self) -> &::std::option::Option<crate::types::IssueEvidenceAvailability> {
        &self.evidence_availability
    }
    /// Customer delivery of the issue's patches, summarized from its PATCH artifacts at read time. Absent when no patch has a destination delivery.
    pub fn patch_delivery(mut self, input: crate::types::IssuePatchDelivery) -> Self {
        self.patch_delivery = ::std::option::Option::Some(input);
        self
    }
    /// Customer delivery of the issue's patches, summarized from its PATCH artifacts at read time. Absent when no patch has a destination delivery.
    pub fn set_patch_delivery(mut self, input: ::std::option::Option<crate::types::IssuePatchDelivery>) -> Self {
        self.patch_delivery = input;
        self
    }
    /// Customer delivery of the issue's patches, summarized from its PATCH artifacts at read time. Absent when no patch has a destination delivery.
    pub fn get_patch_delivery(&self) -> &::std::option::Option<crate::types::IssuePatchDelivery> {
        &self.patch_delivery
    }
    pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
        self._request_id = Some(request_id.into());
        self
    }

    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
        self._request_id = request_id;
        self
    }
    /// Consumes the builder and constructs a [`GetCodeIssueOutput`](crate::operation::get_code_issue::GetCodeIssueOutput).
    /// This method will fail if any of the following fields are not set:
    /// - [`issue_id`](crate::operation::get_code_issue::builders::GetCodeIssueOutputBuilder::issue_id)
    /// - [`issue_arn`](crate::operation::get_code_issue::builders::GetCodeIssueOutputBuilder::issue_arn)
    /// - [`name`](crate::operation::get_code_issue::builders::GetCodeIssueOutputBuilder::name)
    /// - [`synopsis`](crate::operation::get_code_issue::builders::GetCodeIssueOutputBuilder::synopsis)
    /// - [`finding_ids`](crate::operation::get_code_issue::builders::GetCodeIssueOutputBuilder::finding_ids)
    /// - [`status`](crate::operation::get_code_issue::builders::GetCodeIssueOutputBuilder::status)
    /// - [`status_updated_at`](crate::operation::get_code_issue::builders::GetCodeIssueOutputBuilder::status_updated_at)
    /// - [`created_at`](crate::operation::get_code_issue::builders::GetCodeIssueOutputBuilder::created_at)
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::get_code_issue::GetCodeIssueOutput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::get_code_issue::GetCodeIssueOutput {
            issue_id: self.issue_id.ok_or_else(|| {
                ::aws_smithy_types::error::operation::BuildError::missing_field(
                    "issue_id",
                    "issue_id was not specified but it is required when building GetCodeIssueOutput",
                )
            })?,
            issue_arn: self.issue_arn.ok_or_else(|| {
                ::aws_smithy_types::error::operation::BuildError::missing_field(
                    "issue_arn",
                    "issue_arn was not specified but it is required when building GetCodeIssueOutput",
                )
            })?,
            name: self.name.ok_or_else(|| {
                ::aws_smithy_types::error::operation::BuildError::missing_field(
                    "name",
                    "name was not specified but it is required when building GetCodeIssueOutput",
                )
            })?,
            synopsis: self.synopsis.ok_or_else(|| {
                ::aws_smithy_types::error::operation::BuildError::missing_field(
                    "synopsis",
                    "synopsis was not specified but it is required when building GetCodeIssueOutput",
                )
            })?,
            severity: self.severity,
            confidence: self.confidence,
            severity_reasoning: self.severity_reasoning,
            summary: self.summary,
            finding_ids: self.finding_ids.ok_or_else(|| {
                ::aws_smithy_types::error::operation::BuildError::missing_field(
                    "finding_ids",
                    "finding_ids was not specified but it is required when building GetCodeIssueOutput",
                )
            })?,
            status: self.status.ok_or_else(|| {
                ::aws_smithy_types::error::operation::BuildError::missing_field(
                    "status",
                    "status was not specified but it is required when building GetCodeIssueOutput",
                )
            })?,
            phase: self.phase,
            status_reason: self.status_reason,
            status_message: self.status_message,
            status_updated_at: self.status_updated_at.ok_or_else(|| {
                ::aws_smithy_types::error::operation::BuildError::missing_field(
                    "status_updated_at",
                    "status_updated_at was not specified but it is required when building GetCodeIssueOutput",
                )
            })?,
            created_at: self.created_at.ok_or_else(|| {
                ::aws_smithy_types::error::operation::BuildError::missing_field(
                    "created_at",
                    "created_at was not specified but it is required when building GetCodeIssueOutput",
                )
            })?,
            updated_at: self.updated_at,
            evidence_availability: self.evidence_availability,
            patch_delivery: self.patch_delivery,
            _request_id: self._request_id,
        })
    }
}