#[non_exhaustive]pub struct BandwidthRateLimitIntervalBuilder { /* private fields */ }
Expand description
A builder for BandwidthRateLimitInterval
.
Implementations§
source§impl BandwidthRateLimitIntervalBuilder
impl BandwidthRateLimitIntervalBuilder
sourcepub fn average_upload_rate_limit_in_bits_per_sec(self, input: i64) -> Self
pub fn average_upload_rate_limit_in_bits_per_sec(self, input: i64) -> Self
The average upload rate limit component of the bandwidth rate limit interval, in bits per second. This field does not appear in the response if the upload rate limit is not set.
For Backup Gateway, the minimum value is (Value)
.
sourcepub fn set_average_upload_rate_limit_in_bits_per_sec(
self,
input: Option<i64>
) -> Self
pub fn set_average_upload_rate_limit_in_bits_per_sec( self, input: Option<i64> ) -> Self
The average upload rate limit component of the bandwidth rate limit interval, in bits per second. This field does not appear in the response if the upload rate limit is not set.
For Backup Gateway, the minimum value is (Value)
.
sourcepub fn get_average_upload_rate_limit_in_bits_per_sec(&self) -> &Option<i64>
pub fn get_average_upload_rate_limit_in_bits_per_sec(&self) -> &Option<i64>
The average upload rate limit component of the bandwidth rate limit interval, in bits per second. This field does not appear in the response if the upload rate limit is not set.
For Backup Gateway, the minimum value is (Value)
.
sourcepub fn start_hour_of_day(self, input: i32) -> Self
pub fn start_hour_of_day(self, input: i32) -> Self
The hour of the day to start the bandwidth rate limit interval.
This field is required.sourcepub fn set_start_hour_of_day(self, input: Option<i32>) -> Self
pub fn set_start_hour_of_day(self, input: Option<i32>) -> Self
The hour of the day to start the bandwidth rate limit interval.
sourcepub fn get_start_hour_of_day(&self) -> &Option<i32>
pub fn get_start_hour_of_day(&self) -> &Option<i32>
The hour of the day to start the bandwidth rate limit interval.
sourcepub fn end_hour_of_day(self, input: i32) -> Self
pub fn end_hour_of_day(self, input: i32) -> Self
The hour of the day to end the bandwidth rate limit interval.
This field is required.sourcepub fn set_end_hour_of_day(self, input: Option<i32>) -> Self
pub fn set_end_hour_of_day(self, input: Option<i32>) -> Self
The hour of the day to end the bandwidth rate limit interval.
sourcepub fn get_end_hour_of_day(&self) -> &Option<i32>
pub fn get_end_hour_of_day(&self) -> &Option<i32>
The hour of the day to end the bandwidth rate limit interval.
sourcepub fn start_minute_of_hour(self, input: i32) -> Self
pub fn start_minute_of_hour(self, input: i32) -> Self
The minute of the hour to start the bandwidth rate limit interval. The interval begins at the start of that minute. To begin an interval exactly at the start of the hour, use the value 0
.
sourcepub fn set_start_minute_of_hour(self, input: Option<i32>) -> Self
pub fn set_start_minute_of_hour(self, input: Option<i32>) -> Self
The minute of the hour to start the bandwidth rate limit interval. The interval begins at the start of that minute. To begin an interval exactly at the start of the hour, use the value 0
.
sourcepub fn get_start_minute_of_hour(&self) -> &Option<i32>
pub fn get_start_minute_of_hour(&self) -> &Option<i32>
The minute of the hour to start the bandwidth rate limit interval. The interval begins at the start of that minute. To begin an interval exactly at the start of the hour, use the value 0
.
sourcepub fn end_minute_of_hour(self, input: i32) -> Self
pub fn end_minute_of_hour(self, input: i32) -> Self
The minute of the hour to end the bandwidth rate limit interval.
The bandwidth rate limit interval ends at the end of the minute. To end an interval at the end of an hour, use the value 59
.
sourcepub fn set_end_minute_of_hour(self, input: Option<i32>) -> Self
pub fn set_end_minute_of_hour(self, input: Option<i32>) -> Self
The minute of the hour to end the bandwidth rate limit interval.
The bandwidth rate limit interval ends at the end of the minute. To end an interval at the end of an hour, use the value 59
.
sourcepub fn get_end_minute_of_hour(&self) -> &Option<i32>
pub fn get_end_minute_of_hour(&self) -> &Option<i32>
The minute of the hour to end the bandwidth rate limit interval.
The bandwidth rate limit interval ends at the end of the minute. To end an interval at the end of an hour, use the value 59
.
sourcepub fn days_of_week(self, input: i32) -> Self
pub fn days_of_week(self, input: i32) -> Self
Appends an item to days_of_week
.
To override the contents of this collection use set_days_of_week
.
The days of the week component of the bandwidth rate limit interval, represented as ordinal numbers from 0 to 6, where 0 represents Sunday and 6 represents Saturday.
sourcepub fn set_days_of_week(self, input: Option<Vec<i32>>) -> Self
pub fn set_days_of_week(self, input: Option<Vec<i32>>) -> Self
The days of the week component of the bandwidth rate limit interval, represented as ordinal numbers from 0 to 6, where 0 represents Sunday and 6 represents Saturday.
sourcepub fn get_days_of_week(&self) -> &Option<Vec<i32>>
pub fn get_days_of_week(&self) -> &Option<Vec<i32>>
The days of the week component of the bandwidth rate limit interval, represented as ordinal numbers from 0 to 6, where 0 represents Sunday and 6 represents Saturday.
sourcepub fn build(self) -> Result<BandwidthRateLimitInterval, BuildError>
pub fn build(self) -> Result<BandwidthRateLimitInterval, BuildError>
Consumes the builder and constructs a BandwidthRateLimitInterval
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for BandwidthRateLimitIntervalBuilder
impl Clone for BandwidthRateLimitIntervalBuilder
source§fn clone(&self) -> BandwidthRateLimitIntervalBuilder
fn clone(&self) -> BandwidthRateLimitIntervalBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for BandwidthRateLimitIntervalBuilder
impl Default for BandwidthRateLimitIntervalBuilder
source§fn default() -> BandwidthRateLimitIntervalBuilder
fn default() -> BandwidthRateLimitIntervalBuilder
source§impl PartialEq for BandwidthRateLimitIntervalBuilder
impl PartialEq for BandwidthRateLimitIntervalBuilder
source§fn eq(&self, other: &BandwidthRateLimitIntervalBuilder) -> bool
fn eq(&self, other: &BandwidthRateLimitIntervalBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.