aws_sdk_databrew/operation/describe_recipe/
_describe_recipe_input.rs#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DescribeRecipeInput {
pub name: ::std::option::Option<::std::string::String>,
pub recipe_version: ::std::option::Option<::std::string::String>,
}
impl DescribeRecipeInput {
pub fn name(&self) -> ::std::option::Option<&str> {
self.name.as_deref()
}
pub fn recipe_version(&self) -> ::std::option::Option<&str> {
self.recipe_version.as_deref()
}
}
impl DescribeRecipeInput {
pub fn builder() -> crate::operation::describe_recipe::builders::DescribeRecipeInputBuilder {
crate::operation::describe_recipe::builders::DescribeRecipeInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DescribeRecipeInputBuilder {
pub(crate) name: ::std::option::Option<::std::string::String>,
pub(crate) recipe_version: ::std::option::Option<::std::string::String>,
}
impl DescribeRecipeInputBuilder {
pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.name = ::std::option::Option::Some(input.into());
self
}
pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.name = input;
self
}
pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
&self.name
}
pub fn recipe_version(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.recipe_version = ::std::option::Option::Some(input.into());
self
}
pub fn set_recipe_version(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.recipe_version = input;
self
}
pub fn get_recipe_version(&self) -> &::std::option::Option<::std::string::String> {
&self.recipe_version
}
pub fn build(
self,
) -> ::std::result::Result<crate::operation::describe_recipe::DescribeRecipeInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::describe_recipe::DescribeRecipeInput {
name: self.name,
recipe_version: self.recipe_version,
})
}
}