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
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetPatchBaselineForPatchGroupOutput {
    /// <p>The ID of the patch baseline that should be used for the patch group.</p>
    pub baseline_id: ::std::option::Option<::std::string::String>,
    /// <p>The name of the patch group.</p>
    pub patch_group: ::std::option::Option<::std::string::String>,
    /// <p>The operating system rule specified for patch groups using the patch baseline.</p>
    pub operating_system: ::std::option::Option<crate::types::OperatingSystem>,
    _request_id: Option<String>,
}
impl GetPatchBaselineForPatchGroupOutput {
    /// <p>The ID of the patch baseline that should be used for the patch group.</p>
    pub fn baseline_id(&self) -> ::std::option::Option<&str> {
        self.baseline_id.as_deref()
    }
    /// <p>The name of the patch group.</p>
    pub fn patch_group(&self) -> ::std::option::Option<&str> {
        self.patch_group.as_deref()
    }
    /// <p>The operating system rule specified for patch groups using the patch baseline.</p>
    pub fn operating_system(&self) -> ::std::option::Option<&crate::types::OperatingSystem> {
        self.operating_system.as_ref()
    }
}
impl ::aws_types::request_id::RequestId for GetPatchBaselineForPatchGroupOutput {
    fn request_id(&self) -> Option<&str> {
        self._request_id.as_deref()
    }
}
impl GetPatchBaselineForPatchGroupOutput {
    /// Creates a new builder-style object to manufacture [`GetPatchBaselineForPatchGroupOutput`](crate::operation::get_patch_baseline_for_patch_group::GetPatchBaselineForPatchGroupOutput).
    pub fn builder() -> crate::operation::get_patch_baseline_for_patch_group::builders::GetPatchBaselineForPatchGroupOutputBuilder {
        crate::operation::get_patch_baseline_for_patch_group::builders::GetPatchBaselineForPatchGroupOutputBuilder::default()
    }
}

/// A builder for [`GetPatchBaselineForPatchGroupOutput`](crate::operation::get_patch_baseline_for_patch_group::GetPatchBaselineForPatchGroupOutput).
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct GetPatchBaselineForPatchGroupOutputBuilder {
    pub(crate) baseline_id: ::std::option::Option<::std::string::String>,
    pub(crate) patch_group: ::std::option::Option<::std::string::String>,
    pub(crate) operating_system: ::std::option::Option<crate::types::OperatingSystem>,
    _request_id: Option<String>,
}
impl GetPatchBaselineForPatchGroupOutputBuilder {
    /// <p>The ID of the patch baseline that should be used for the patch group.</p>
    pub fn baseline_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.baseline_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The ID of the patch baseline that should be used for the patch group.</p>
    pub fn set_baseline_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.baseline_id = input;
        self
    }
    /// <p>The ID of the patch baseline that should be used for the patch group.</p>
    pub fn get_baseline_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.baseline_id
    }
    /// <p>The name of the patch group.</p>
    pub fn patch_group(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.patch_group = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The name of the patch group.</p>
    pub fn set_patch_group(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.patch_group = input;
        self
    }
    /// <p>The name of the patch group.</p>
    pub fn get_patch_group(&self) -> &::std::option::Option<::std::string::String> {
        &self.patch_group
    }
    /// <p>The operating system rule specified for patch groups using the patch baseline.</p>
    pub fn operating_system(mut self, input: crate::types::OperatingSystem) -> Self {
        self.operating_system = ::std::option::Option::Some(input);
        self
    }
    /// <p>The operating system rule specified for patch groups using the patch baseline.</p>
    pub fn set_operating_system(mut self, input: ::std::option::Option<crate::types::OperatingSystem>) -> Self {
        self.operating_system = input;
        self
    }
    /// <p>The operating system rule specified for patch groups using the patch baseline.</p>
    pub fn get_operating_system(&self) -> &::std::option::Option<crate::types::OperatingSystem> {
        &self.operating_system
    }
    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 [`GetPatchBaselineForPatchGroupOutput`](crate::operation::get_patch_baseline_for_patch_group::GetPatchBaselineForPatchGroupOutput).
    pub fn build(self) -> crate::operation::get_patch_baseline_for_patch_group::GetPatchBaselineForPatchGroupOutput {
        crate::operation::get_patch_baseline_for_patch_group::GetPatchBaselineForPatchGroupOutput {
            baseline_id: self.baseline_id,
            patch_group: self.patch_group,
            operating_system: self.operating_system,
            _request_id: self._request_id,
        }
    }
}