#[non_exhaustive]pub struct MaintenanceStartTimeBuilder { /* private fields */ }
Expand description
A builder for MaintenanceStartTime
.
Implementations§
source§impl MaintenanceStartTimeBuilder
impl MaintenanceStartTimeBuilder
sourcepub fn day_of_month(self, input: i32) -> Self
pub fn day_of_month(self, input: i32) -> Self
The day of the month component of the maintenance start time represented as an ordinal number from 1 to 28, where 1 represents the first day of the month and 28 represents the last day of the month.
sourcepub fn set_day_of_month(self, input: Option<i32>) -> Self
pub fn set_day_of_month(self, input: Option<i32>) -> Self
The day of the month component of the maintenance start time represented as an ordinal number from 1 to 28, where 1 represents the first day of the month and 28 represents the last day of the month.
sourcepub fn get_day_of_month(&self) -> &Option<i32>
pub fn get_day_of_month(&self) -> &Option<i32>
The day of the month component of the maintenance start time represented as an ordinal number from 1 to 28, where 1 represents the first day of the month and 28 represents the last day of the month.
sourcepub fn day_of_week(self, input: i32) -> Self
pub fn day_of_week(self, input: i32) -> Self
An ordinal number between 0 and 6 that represents the day of the week, where 0 represents Sunday and 6 represents Saturday. The day of week is in the time zone of the gateway.
sourcepub fn set_day_of_week(self, input: Option<i32>) -> Self
pub fn set_day_of_week(self, input: Option<i32>) -> Self
An ordinal number between 0 and 6 that represents the day of the week, where 0 represents Sunday and 6 represents Saturday. The day of week is in the time zone of the gateway.
sourcepub fn get_day_of_week(&self) -> &Option<i32>
pub fn get_day_of_week(&self) -> &Option<i32>
An ordinal number between 0 and 6 that represents the day of the week, where 0 represents Sunday and 6 represents Saturday. The day of week is in the time zone of the gateway.
sourcepub fn hour_of_day(self, input: i32) -> Self
pub fn hour_of_day(self, input: i32) -> Self
The hour component of the maintenance start time represented as hh, where hh is the hour (0 to 23). The hour of the day is in the time zone of the gateway.
This field is required.sourcepub fn set_hour_of_day(self, input: Option<i32>) -> Self
pub fn set_hour_of_day(self, input: Option<i32>) -> Self
The hour component of the maintenance start time represented as hh, where hh is the hour (0 to 23). The hour of the day is in the time zone of the gateway.
sourcepub fn get_hour_of_day(&self) -> &Option<i32>
pub fn get_hour_of_day(&self) -> &Option<i32>
The hour component of the maintenance start time represented as hh, where hh is the hour (0 to 23). The hour of the day is in the time zone of the gateway.
sourcepub fn minute_of_hour(self, input: i32) -> Self
pub fn minute_of_hour(self, input: i32) -> Self
The minute component of the maintenance start time represented as mm, where mm is the minute (0 to 59). The minute of the hour is in the time zone of the gateway.
This field is required.sourcepub fn set_minute_of_hour(self, input: Option<i32>) -> Self
pub fn set_minute_of_hour(self, input: Option<i32>) -> Self
The minute component of the maintenance start time represented as mm, where mm is the minute (0 to 59). The minute of the hour is in the time zone of the gateway.
sourcepub fn get_minute_of_hour(&self) -> &Option<i32>
pub fn get_minute_of_hour(&self) -> &Option<i32>
The minute component of the maintenance start time represented as mm, where mm is the minute (0 to 59). The minute of the hour is in the time zone of the gateway.
sourcepub fn build(self) -> Result<MaintenanceStartTime, BuildError>
pub fn build(self) -> Result<MaintenanceStartTime, BuildError>
Consumes the builder and constructs a MaintenanceStartTime
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for MaintenanceStartTimeBuilder
impl Clone for MaintenanceStartTimeBuilder
source§fn clone(&self) -> MaintenanceStartTimeBuilder
fn clone(&self) -> MaintenanceStartTimeBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for MaintenanceStartTimeBuilder
impl Debug for MaintenanceStartTimeBuilder
source§impl Default for MaintenanceStartTimeBuilder
impl Default for MaintenanceStartTimeBuilder
source§fn default() -> MaintenanceStartTimeBuilder
fn default() -> MaintenanceStartTimeBuilder
source§impl PartialEq for MaintenanceStartTimeBuilder
impl PartialEq for MaintenanceStartTimeBuilder
source§fn eq(&self, other: &MaintenanceStartTimeBuilder) -> bool
fn eq(&self, other: &MaintenanceStartTimeBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for MaintenanceStartTimeBuilder
Auto Trait Implementations§
impl Freeze for MaintenanceStartTimeBuilder
impl RefUnwindSafe for MaintenanceStartTimeBuilder
impl Send for MaintenanceStartTimeBuilder
impl Sync for MaintenanceStartTimeBuilder
impl Unpin for MaintenanceStartTimeBuilder
impl UnwindSafe for MaintenanceStartTimeBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more