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>Configuration of a machine's license.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct Licensing {
    /// <p>Whether to enable "Bring your own license" or not.</p>
    pub os_byol: ::std::option::Option<bool>,
}
impl Licensing {
    /// <p>Whether to enable "Bring your own license" or not.</p>
    pub fn os_byol(&self) -> ::std::option::Option<bool> {
        self.os_byol
    }
}
impl Licensing {
    /// Creates a new builder-style object to manufacture [`Licensing`](crate::types::Licensing).
    pub fn builder() -> crate::types::builders::LicensingBuilder {
        crate::types::builders::LicensingBuilder::default()
    }
}

/// A builder for [`Licensing`](crate::types::Licensing).
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct LicensingBuilder {
    pub(crate) os_byol: ::std::option::Option<bool>,
}
impl LicensingBuilder {
    /// <p>Whether to enable "Bring your own license" or not.</p>
    pub fn os_byol(mut self, input: bool) -> Self {
        self.os_byol = ::std::option::Option::Some(input);
        self
    }
    /// <p>Whether to enable "Bring your own license" or not.</p>
    pub fn set_os_byol(mut self, input: ::std::option::Option<bool>) -> Self {
        self.os_byol = input;
        self
    }
    /// <p>Whether to enable "Bring your own license" or not.</p>
    pub fn get_os_byol(&self) -> &::std::option::Option<bool> {
        &self.os_byol
    }
    /// Consumes the builder and constructs a [`Licensing`](crate::types::Licensing).
    pub fn build(self) -> crate::types::Licensing {
        crate::types::Licensing { os_byol: self.os_byol }
    }
}