#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct UpdateConsumableResourceOutput {
pub consumable_resource_name: ::std::option::Option<::std::string::String>,
pub consumable_resource_arn: ::std::option::Option<::std::string::String>,
pub total_quantity: ::std::option::Option<i64>,
_request_id: Option<String>,
}
impl UpdateConsumableResourceOutput {
pub fn consumable_resource_name(&self) -> ::std::option::Option<&str> {
self.consumable_resource_name.as_deref()
}
pub fn consumable_resource_arn(&self) -> ::std::option::Option<&str> {
self.consumable_resource_arn.as_deref()
}
pub fn total_quantity(&self) -> ::std::option::Option<i64> {
self.total_quantity
}
}
impl ::aws_types::request_id::RequestId for UpdateConsumableResourceOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl UpdateConsumableResourceOutput {
pub fn builder() -> crate::operation::update_consumable_resource::builders::UpdateConsumableResourceOutputBuilder {
crate::operation::update_consumable_resource::builders::UpdateConsumableResourceOutputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct UpdateConsumableResourceOutputBuilder {
pub(crate) consumable_resource_name: ::std::option::Option<::std::string::String>,
pub(crate) consumable_resource_arn: ::std::option::Option<::std::string::String>,
pub(crate) total_quantity: ::std::option::Option<i64>,
_request_id: Option<String>,
}
impl UpdateConsumableResourceOutputBuilder {
pub fn consumable_resource_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.consumable_resource_name = ::std::option::Option::Some(input.into());
self
}
pub fn set_consumable_resource_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.consumable_resource_name = input;
self
}
pub fn get_consumable_resource_name(&self) -> &::std::option::Option<::std::string::String> {
&self.consumable_resource_name
}
pub fn consumable_resource_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.consumable_resource_arn = ::std::option::Option::Some(input.into());
self
}
pub fn set_consumable_resource_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.consumable_resource_arn = input;
self
}
pub fn get_consumable_resource_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.consumable_resource_arn
}
pub fn total_quantity(mut self, input: i64) -> Self {
self.total_quantity = ::std::option::Option::Some(input);
self
}
pub fn set_total_quantity(mut self, input: ::std::option::Option<i64>) -> Self {
self.total_quantity = input;
self
}
pub fn get_total_quantity(&self) -> &::std::option::Option<i64> {
&self.total_quantity
}
pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
self._request_id = Some(request_id.into());
self
}
pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
self._request_id = request_id;
self
}
pub fn build(self) -> crate::operation::update_consumable_resource::UpdateConsumableResourceOutput {
crate::operation::update_consumable_resource::UpdateConsumableResourceOutput {
consumable_resource_name: self.consumable_resource_name,
consumable_resource_arn: self.consumable_resource_arn,
total_quantity: self.total_quantity,
_request_id: self._request_id,
}
}
}