aws_sdk_transfer/operation/stop_server/
_stop_server_input.rs#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct StopServerInput {
    pub server_id: ::std::option::Option<::std::string::String>,
}
impl StopServerInput {
    pub fn server_id(&self) -> ::std::option::Option<&str> {
        self.server_id.as_deref()
    }
}
impl StopServerInput {
    pub fn builder() -> crate::operation::stop_server::builders::StopServerInputBuilder {
        crate::operation::stop_server::builders::StopServerInputBuilder::default()
    }
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct StopServerInputBuilder {
    pub(crate) server_id: ::std::option::Option<::std::string::String>,
}
impl StopServerInputBuilder {
    pub fn server_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.server_id = ::std::option::Option::Some(input.into());
        self
    }
    pub fn set_server_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.server_id = input;
        self
    }
    pub fn get_server_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.server_id
    }
    pub fn build(self) -> ::std::result::Result<crate::operation::stop_server::StopServerInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::stop_server::StopServerInput { server_id: self.server_id })
    }
}