aws_sdk_transfer/operation/start_server/
_start_server_input.rs#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct StartServerInput {
pub server_id: ::std::option::Option<::std::string::String>,
}
impl StartServerInput {
pub fn server_id(&self) -> ::std::option::Option<&str> {
self.server_id.as_deref()
}
}
impl StartServerInput {
pub fn builder() -> crate::operation::start_server::builders::StartServerInputBuilder {
crate::operation::start_server::builders::StartServerInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct StartServerInputBuilder {
pub(crate) server_id: ::std::option::Option<::std::string::String>,
}
impl StartServerInputBuilder {
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::start_server::StartServerInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::start_server::StartServerInput { server_id: self.server_id })
}
}