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