#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DescribeStorageOutput {
pub total_backup_size_in_mega_bytes: ::std::option::Option<f64>,
pub total_provisioned_storage_in_mega_bytes: ::std::option::Option<f64>,
_request_id: Option<String>,
}
impl DescribeStorageOutput {
pub fn total_backup_size_in_mega_bytes(&self) -> ::std::option::Option<f64> {
self.total_backup_size_in_mega_bytes
}
pub fn total_provisioned_storage_in_mega_bytes(&self) -> ::std::option::Option<f64> {
self.total_provisioned_storage_in_mega_bytes
}
}
impl ::aws_types::request_id::RequestId for DescribeStorageOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl DescribeStorageOutput {
pub fn builder() -> crate::operation::describe_storage::builders::DescribeStorageOutputBuilder {
crate::operation::describe_storage::builders::DescribeStorageOutputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DescribeStorageOutputBuilder {
pub(crate) total_backup_size_in_mega_bytes: ::std::option::Option<f64>,
pub(crate) total_provisioned_storage_in_mega_bytes: ::std::option::Option<f64>,
_request_id: Option<String>,
}
impl DescribeStorageOutputBuilder {
pub fn total_backup_size_in_mega_bytes(mut self, input: f64) -> Self {
self.total_backup_size_in_mega_bytes = ::std::option::Option::Some(input);
self
}
pub fn set_total_backup_size_in_mega_bytes(mut self, input: ::std::option::Option<f64>) -> Self {
self.total_backup_size_in_mega_bytes = input;
self
}
pub fn get_total_backup_size_in_mega_bytes(&self) -> &::std::option::Option<f64> {
&self.total_backup_size_in_mega_bytes
}
pub fn total_provisioned_storage_in_mega_bytes(mut self, input: f64) -> Self {
self.total_provisioned_storage_in_mega_bytes = ::std::option::Option::Some(input);
self
}
pub fn set_total_provisioned_storage_in_mega_bytes(mut self, input: ::std::option::Option<f64>) -> Self {
self.total_provisioned_storage_in_mega_bytes = input;
self
}
pub fn get_total_provisioned_storage_in_mega_bytes(&self) -> &::std::option::Option<f64> {
&self.total_provisioned_storage_in_mega_bytes
}
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::describe_storage::DescribeStorageOutput {
crate::operation::describe_storage::DescribeStorageOutput {
total_backup_size_in_mega_bytes: self.total_backup_size_in_mega_bytes,
total_provisioned_storage_in_mega_bytes: self.total_provisioned_storage_in_mega_bytes,
_request_id: self._request_id,
}
}
}