aws_sdk_networkmanager/types/
_bandwidth.rs1#[non_exhaustive]
5#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
6pub struct Bandwidth {
7 pub upload_speed: ::std::option::Option<i32>,
9 pub download_speed: ::std::option::Option<i32>,
11}
12impl Bandwidth {
13 pub fn upload_speed(&self) -> ::std::option::Option<i32> {
15 self.upload_speed
16 }
17 pub fn download_speed(&self) -> ::std::option::Option<i32> {
19 self.download_speed
20 }
21}
22impl Bandwidth {
23 pub fn builder() -> crate::types::builders::BandwidthBuilder {
25 crate::types::builders::BandwidthBuilder::default()
26 }
27}
28
29#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
31#[non_exhaustive]
32pub struct BandwidthBuilder {
33 pub(crate) upload_speed: ::std::option::Option<i32>,
34 pub(crate) download_speed: ::std::option::Option<i32>,
35}
36impl BandwidthBuilder {
37 pub fn upload_speed(mut self, input: i32) -> Self {
39 self.upload_speed = ::std::option::Option::Some(input);
40 self
41 }
42 pub fn set_upload_speed(mut self, input: ::std::option::Option<i32>) -> Self {
44 self.upload_speed = input;
45 self
46 }
47 pub fn get_upload_speed(&self) -> &::std::option::Option<i32> {
49 &self.upload_speed
50 }
51 pub fn download_speed(mut self, input: i32) -> Self {
53 self.download_speed = ::std::option::Option::Some(input);
54 self
55 }
56 pub fn set_download_speed(mut self, input: ::std::option::Option<i32>) -> Self {
58 self.download_speed = input;
59 self
60 }
61 pub fn get_download_speed(&self) -> &::std::option::Option<i32> {
63 &self.download_speed
64 }
65 pub fn build(self) -> crate::types::Bandwidth {
67 crate::types::Bandwidth {
68 upload_speed: self.upload_speed,
69 download_speed: self.download_speed,
70 }
71 }
72}