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

/// <p>Information about the Amazon Inspector score given to a finding.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct ScoreDetails {
    /// <p>An object that contains details about the CVSS score given to a finding.</p>
    pub cvss: ::std::option::Option<crate::types::CvssScoreDetails>,
}
impl ScoreDetails {
    /// <p>An object that contains details about the CVSS score given to a finding.</p>
    pub fn cvss(&self) -> ::std::option::Option<&crate::types::CvssScoreDetails> {
        self.cvss.as_ref()
    }
}
impl ScoreDetails {
    /// Creates a new builder-style object to manufacture [`ScoreDetails`](crate::types::ScoreDetails).
    pub fn builder() -> crate::types::builders::ScoreDetailsBuilder {
        crate::types::builders::ScoreDetailsBuilder::default()
    }
}

/// A builder for [`ScoreDetails`](crate::types::ScoreDetails).
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct ScoreDetailsBuilder {
    pub(crate) cvss: ::std::option::Option<crate::types::CvssScoreDetails>,
}
impl ScoreDetailsBuilder {
    /// <p>An object that contains details about the CVSS score given to a finding.</p>
    pub fn cvss(mut self, input: crate::types::CvssScoreDetails) -> Self {
        self.cvss = ::std::option::Option::Some(input);
        self
    }
    /// <p>An object that contains details about the CVSS score given to a finding.</p>
    pub fn set_cvss(mut self, input: ::std::option::Option<crate::types::CvssScoreDetails>) -> Self {
        self.cvss = input;
        self
    }
    /// <p>An object that contains details about the CVSS score given to a finding.</p>
    pub fn get_cvss(&self) -> &::std::option::Option<crate::types::CvssScoreDetails> {
        &self.cvss
    }
    /// Consumes the builder and constructs a [`ScoreDetails`](crate::types::ScoreDetails).
    pub fn build(self) -> crate::types::ScoreDetails {
        crate::types::ScoreDetails { cvss: self.cvss }
    }
}