#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DescribeConsumableResourceInput {
pub consumable_resource: ::std::option::Option<::std::string::String>,
}
impl DescribeConsumableResourceInput {
pub fn consumable_resource(&self) -> ::std::option::Option<&str> {
self.consumable_resource.as_deref()
}
}
impl DescribeConsumableResourceInput {
pub fn builder() -> crate::operation::describe_consumable_resource::builders::DescribeConsumableResourceInputBuilder {
crate::operation::describe_consumable_resource::builders::DescribeConsumableResourceInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DescribeConsumableResourceInputBuilder {
pub(crate) consumable_resource: ::std::option::Option<::std::string::String>,
}
impl DescribeConsumableResourceInputBuilder {
pub fn consumable_resource(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.consumable_resource = ::std::option::Option::Some(input.into());
self
}
pub fn set_consumable_resource(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.consumable_resource = input;
self
}
pub fn get_consumable_resource(&self) -> &::std::option::Option<::std::string::String> {
&self.consumable_resource
}
pub fn build(
self,
) -> ::std::result::Result<
crate::operation::describe_consumable_resource::DescribeConsumableResourceInput,
::aws_smithy_types::error::operation::BuildError,
> {
::std::result::Result::Ok(crate::operation::describe_consumable_resource::DescribeConsumableResourceInput {
consumable_resource: self.consumable_resource,
})
}
}