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

/// <p>The status summary of the server analysis.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct ServerStatusSummary {
    /// <p>The status of the run time.</p>
    pub run_time_assessment_status: ::std::option::Option<crate::types::RunTimeAssessmentStatus>,
    /// <p>The number of servers successfully analyzed, partially successful or failed analysis.</p>
    pub count: ::std::option::Option<i32>,
}
impl ServerStatusSummary {
    /// <p>The status of the run time.</p>
    pub fn run_time_assessment_status(&self) -> ::std::option::Option<&crate::types::RunTimeAssessmentStatus> {
        self.run_time_assessment_status.as_ref()
    }
    /// <p>The number of servers successfully analyzed, partially successful or failed analysis.</p>
    pub fn count(&self) -> ::std::option::Option<i32> {
        self.count
    }
}
impl ServerStatusSummary {
    /// Creates a new builder-style object to manufacture [`ServerStatusSummary`](crate::types::ServerStatusSummary).
    pub fn builder() -> crate::types::builders::ServerStatusSummaryBuilder {
        crate::types::builders::ServerStatusSummaryBuilder::default()
    }
}

/// A builder for [`ServerStatusSummary`](crate::types::ServerStatusSummary).
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct ServerStatusSummaryBuilder {
    pub(crate) run_time_assessment_status: ::std::option::Option<crate::types::RunTimeAssessmentStatus>,
    pub(crate) count: ::std::option::Option<i32>,
}
impl ServerStatusSummaryBuilder {
    /// <p>The status of the run time.</p>
    pub fn run_time_assessment_status(mut self, input: crate::types::RunTimeAssessmentStatus) -> Self {
        self.run_time_assessment_status = ::std::option::Option::Some(input);
        self
    }
    /// <p>The status of the run time.</p>
    pub fn set_run_time_assessment_status(mut self, input: ::std::option::Option<crate::types::RunTimeAssessmentStatus>) -> Self {
        self.run_time_assessment_status = input;
        self
    }
    /// <p>The status of the run time.</p>
    pub fn get_run_time_assessment_status(&self) -> &::std::option::Option<crate::types::RunTimeAssessmentStatus> {
        &self.run_time_assessment_status
    }
    /// <p>The number of servers successfully analyzed, partially successful or failed analysis.</p>
    pub fn count(mut self, input: i32) -> Self {
        self.count = ::std::option::Option::Some(input);
        self
    }
    /// <p>The number of servers successfully analyzed, partially successful or failed analysis.</p>
    pub fn set_count(mut self, input: ::std::option::Option<i32>) -> Self {
        self.count = input;
        self
    }
    /// <p>The number of servers successfully analyzed, partially successful or failed analysis.</p>
    pub fn get_count(&self) -> &::std::option::Option<i32> {
        &self.count
    }
    /// Consumes the builder and constructs a [`ServerStatusSummary`](crate::types::ServerStatusSummary).
    pub fn build(self) -> crate::types::ServerStatusSummary {
        crate::types::ServerStatusSummary {
            run_time_assessment_status: self.run_time_assessment_status,
            count: self.count,
        }
    }
}