aws-sdk-mgn 1.101.0

AWS SDK for Application Migration Service
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.

/// <p>Configure Licensing.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct Licensing {
    /// <p>Configure BYOL OS licensing.</p>
    pub os_byol: ::std::option::Option<bool>,
}
impl Licensing {
    /// <p>Configure BYOL OS licensing.</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).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct LicensingBuilder {
    pub(crate) os_byol: ::std::option::Option<bool>,
}
impl LicensingBuilder {
    /// <p>Configure BYOL OS licensing.</p>
    pub fn os_byol(mut self, input: bool) -> Self {
        self.os_byol = ::std::option::Option::Some(input);
        self
    }
    /// <p>Configure BYOL OS licensing.</p>
    pub fn set_os_byol(mut self, input: ::std::option::Option<bool>) -> Self {
        self.os_byol = input;
        self
    }
    /// <p>Configure BYOL OS licensing.</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 }
    }
}