#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DescribeRecipeInput {
#[doc(hidden)]
pub name: std::option::Option<std::string::String>,
#[doc(hidden)]
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()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
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 Into<std::string::String>) -> Self {
self.name = Some(input.into());
self
}
pub fn set_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.name = input;
self
}
pub fn recipe_version(mut self, input: impl Into<std::string::String>) -> Self {
self.recipe_version = 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 build(
self,
) -> Result<
crate::operation::describe_recipe::DescribeRecipeInput,
aws_smithy_http::operation::error::BuildError,
> {
Ok(crate::operation::describe_recipe::DescribeRecipeInput {
name: self.name,
recipe_version: self.recipe_version,
})
}
}