#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct ProgressiveDialerConfig {
pub bandwidth_allocation: f64,
pub dialing_capacity: ::std::option::Option<f64>,
}
impl ProgressiveDialerConfig {
pub fn bandwidth_allocation(&self) -> f64 {
self.bandwidth_allocation
}
pub fn dialing_capacity(&self) -> ::std::option::Option<f64> {
self.dialing_capacity
}
}
impl ProgressiveDialerConfig {
pub fn builder() -> crate::types::builders::ProgressiveDialerConfigBuilder {
crate::types::builders::ProgressiveDialerConfigBuilder::default()
}
}
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct ProgressiveDialerConfigBuilder {
pub(crate) bandwidth_allocation: ::std::option::Option<f64>,
pub(crate) dialing_capacity: ::std::option::Option<f64>,
}
impl ProgressiveDialerConfigBuilder {
pub fn bandwidth_allocation(mut self, input: f64) -> Self {
self.bandwidth_allocation = ::std::option::Option::Some(input);
self
}
pub fn set_bandwidth_allocation(mut self, input: ::std::option::Option<f64>) -> Self {
self.bandwidth_allocation = input;
self
}
pub fn get_bandwidth_allocation(&self) -> &::std::option::Option<f64> {
&self.bandwidth_allocation
}
pub fn dialing_capacity(mut self, input: f64) -> Self {
self.dialing_capacity = ::std::option::Option::Some(input);
self
}
pub fn set_dialing_capacity(mut self, input: ::std::option::Option<f64>) -> Self {
self.dialing_capacity = input;
self
}
pub fn get_dialing_capacity(&self) -> &::std::option::Option<f64> {
&self.dialing_capacity
}
pub fn build(self) -> ::std::result::Result<crate::types::ProgressiveDialerConfig, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::types::ProgressiveDialerConfig {
bandwidth_allocation: self.bandwidth_allocation.ok_or_else(|| {
::aws_smithy_types::error::operation::BuildError::missing_field(
"bandwidth_allocation",
"bandwidth_allocation was not specified but it is required when building ProgressiveDialerConfig",
)
})?,
dialing_capacity: self.dialing_capacity,
})
}
}