aws_sdk_s3/types/
_progress.rs
1#[non_exhaustive]
5#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
6pub struct Progress {
7 pub bytes_scanned: ::std::option::Option<i64>,
9 pub bytes_processed: ::std::option::Option<i64>,
11 pub bytes_returned: ::std::option::Option<i64>,
13}
14impl Progress {
15 pub fn bytes_scanned(&self) -> ::std::option::Option<i64> {
17 self.bytes_scanned
18 }
19 pub fn bytes_processed(&self) -> ::std::option::Option<i64> {
21 self.bytes_processed
22 }
23 pub fn bytes_returned(&self) -> ::std::option::Option<i64> {
25 self.bytes_returned
26 }
27}
28impl Progress {
29 pub fn builder() -> crate::types::builders::ProgressBuilder {
31 crate::types::builders::ProgressBuilder::default()
32 }
33}
34
35#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
37#[non_exhaustive]
38pub struct ProgressBuilder {
39 pub(crate) bytes_scanned: ::std::option::Option<i64>,
40 pub(crate) bytes_processed: ::std::option::Option<i64>,
41 pub(crate) bytes_returned: ::std::option::Option<i64>,
42}
43impl ProgressBuilder {
44 pub fn bytes_scanned(mut self, input: i64) -> Self {
46 self.bytes_scanned = ::std::option::Option::Some(input);
47 self
48 }
49 pub fn set_bytes_scanned(mut self, input: ::std::option::Option<i64>) -> Self {
51 self.bytes_scanned = input;
52 self
53 }
54 pub fn get_bytes_scanned(&self) -> &::std::option::Option<i64> {
56 &self.bytes_scanned
57 }
58 pub fn bytes_processed(mut self, input: i64) -> Self {
60 self.bytes_processed = ::std::option::Option::Some(input);
61 self
62 }
63 pub fn set_bytes_processed(mut self, input: ::std::option::Option<i64>) -> Self {
65 self.bytes_processed = input;
66 self
67 }
68 pub fn get_bytes_processed(&self) -> &::std::option::Option<i64> {
70 &self.bytes_processed
71 }
72 pub fn bytes_returned(mut self, input: i64) -> Self {
74 self.bytes_returned = ::std::option::Option::Some(input);
75 self
76 }
77 pub fn set_bytes_returned(mut self, input: ::std::option::Option<i64>) -> Self {
79 self.bytes_returned = input;
80 self
81 }
82 pub fn get_bytes_returned(&self) -> &::std::option::Option<i64> {
84 &self.bytes_returned
85 }
86 pub fn build(self) -> crate::types::Progress {
88 crate::types::Progress {
89 bytes_scanned: self.bytes_scanned,
90 bytes_processed: self.bytes_processed,
91 bytes_returned: self.bytes_returned,
92 }
93 }
94}