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
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.

/// <p>An error entity for assessment report evidence errors. This is used to provide more meaningful errors than a simple string message.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct AssessmentReportEvidenceError {
    /// <p>The identifier for the evidence.</p>
    pub evidence_id: ::std::option::Option<::std::string::String>,
    /// <p>The error code that was returned.</p>
    pub error_code: ::std::option::Option<::std::string::String>,
    /// <p>The error message that was returned.</p>
    pub error_message: ::std::option::Option<::std::string::String>,
}
impl AssessmentReportEvidenceError {
    /// <p>The identifier for the evidence.</p>
    pub fn evidence_id(&self) -> ::std::option::Option<&str> {
        self.evidence_id.as_deref()
    }
    /// <p>The error code that was returned.</p>
    pub fn error_code(&self) -> ::std::option::Option<&str> {
        self.error_code.as_deref()
    }
    /// <p>The error message that was returned.</p>
    pub fn error_message(&self) -> ::std::option::Option<&str> {
        self.error_message.as_deref()
    }
}
impl AssessmentReportEvidenceError {
    /// Creates a new builder-style object to manufacture [`AssessmentReportEvidenceError`](crate::types::AssessmentReportEvidenceError).
    pub fn builder() -> crate::types::builders::AssessmentReportEvidenceErrorBuilder {
        crate::types::builders::AssessmentReportEvidenceErrorBuilder::default()
    }
}

/// A builder for [`AssessmentReportEvidenceError`](crate::types::AssessmentReportEvidenceError).
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct AssessmentReportEvidenceErrorBuilder {
    pub(crate) evidence_id: ::std::option::Option<::std::string::String>,
    pub(crate) error_code: ::std::option::Option<::std::string::String>,
    pub(crate) error_message: ::std::option::Option<::std::string::String>,
}
impl AssessmentReportEvidenceErrorBuilder {
    /// <p>The identifier for the evidence.</p>
    pub fn evidence_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.evidence_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The identifier for the evidence.</p>
    pub fn set_evidence_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.evidence_id = input;
        self
    }
    /// <p>The identifier for the evidence.</p>
    pub fn get_evidence_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.evidence_id
    }
    /// <p>The error code that was returned.</p>
    pub fn error_code(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.error_code = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The error code that was returned.</p>
    pub fn set_error_code(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.error_code = input;
        self
    }
    /// <p>The error code that was returned.</p>
    pub fn get_error_code(&self) -> &::std::option::Option<::std::string::String> {
        &self.error_code
    }
    /// <p>The error message that was returned.</p>
    pub fn error_message(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.error_message = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The error message that was returned.</p>
    pub fn set_error_message(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.error_message = input;
        self
    }
    /// <p>The error message that was returned.</p>
    pub fn get_error_message(&self) -> &::std::option::Option<::std::string::String> {
        &self.error_message
    }
    /// Consumes the builder and constructs a [`AssessmentReportEvidenceError`](crate::types::AssessmentReportEvidenceError).
    pub fn build(self) -> crate::types::AssessmentReportEvidenceError {
        crate::types::AssessmentReportEvidenceError {
            evidence_id: self.evidence_id,
            error_code: self.error_code,
            error_message: self.error_message,
        }
    }
}