aws-sdk-mgn 1.102.0

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

/// <p>Operating System.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct Os {
    /// <p>OS full string.</p>
    pub full_string: ::std::option::Option<::std::string::String>,
}
impl Os {
    /// <p>OS full string.</p>
    pub fn full_string(&self) -> ::std::option::Option<&str> {
        self.full_string.as_deref()
    }
}
impl Os {
    /// Creates a new builder-style object to manufacture [`Os`](crate::types::Os).
    pub fn builder() -> crate::types::builders::OsBuilder {
        crate::types::builders::OsBuilder::default()
    }
}

/// A builder for [`Os`](crate::types::Os).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct OsBuilder {
    pub(crate) full_string: ::std::option::Option<::std::string::String>,
}
impl OsBuilder {
    /// <p>OS full string.</p>
    pub fn full_string(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.full_string = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>OS full string.</p>
    pub fn set_full_string(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.full_string = input;
        self
    }
    /// <p>OS full string.</p>
    pub fn get_full_string(&self) -> &::std::option::Option<::std::string::String> {
        &self.full_string
    }
    /// Consumes the builder and constructs a [`Os`](crate::types::Os).
    pub fn build(self) -> crate::types::Os {
        crate::types::Os {
            full_string: self.full_string,
        }
    }
}