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