aws_sdk_s3/types/
_progress.rs#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct Progress {
pub bytes_scanned: ::std::option::Option<i64>,
pub bytes_processed: ::std::option::Option<i64>,
pub bytes_returned: ::std::option::Option<i64>,
}
impl Progress {
pub fn bytes_scanned(&self) -> ::std::option::Option<i64> {
self.bytes_scanned
}
pub fn bytes_processed(&self) -> ::std::option::Option<i64> {
self.bytes_processed
}
pub fn bytes_returned(&self) -> ::std::option::Option<i64> {
self.bytes_returned
}
}
impl Progress {
pub fn builder() -> crate::types::builders::ProgressBuilder {
crate::types::builders::ProgressBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct ProgressBuilder {
pub(crate) bytes_scanned: ::std::option::Option<i64>,
pub(crate) bytes_processed: ::std::option::Option<i64>,
pub(crate) bytes_returned: ::std::option::Option<i64>,
}
impl ProgressBuilder {
pub fn bytes_scanned(mut self, input: i64) -> Self {
self.bytes_scanned = ::std::option::Option::Some(input);
self
}
pub fn set_bytes_scanned(mut self, input: ::std::option::Option<i64>) -> Self {
self.bytes_scanned = input;
self
}
pub fn get_bytes_scanned(&self) -> &::std::option::Option<i64> {
&self.bytes_scanned
}
pub fn bytes_processed(mut self, input: i64) -> Self {
self.bytes_processed = ::std::option::Option::Some(input);
self
}
pub fn set_bytes_processed(mut self, input: ::std::option::Option<i64>) -> Self {
self.bytes_processed = input;
self
}
pub fn get_bytes_processed(&self) -> &::std::option::Option<i64> {
&self.bytes_processed
}
pub fn bytes_returned(mut self, input: i64) -> Self {
self.bytes_returned = ::std::option::Option::Some(input);
self
}
pub fn set_bytes_returned(mut self, input: ::std::option::Option<i64>) -> Self {
self.bytes_returned = input;
self
}
pub fn get_bytes_returned(&self) -> &::std::option::Option<i64> {
&self.bytes_returned
}
pub fn build(self) -> crate::types::Progress {
crate::types::Progress {
bytes_scanned: self.bytes_scanned,
bytes_processed: self.bytes_processed,
bytes_returned: self.bytes_returned,
}
}
}