Struct aws_sdk_iot::types::builders::MaintenanceWindowBuilder
source · #[non_exhaustive]pub struct MaintenanceWindowBuilder { /* private fields */ }
Expand description
A builder for MaintenanceWindow
.
Implementations§
source§impl MaintenanceWindowBuilder
impl MaintenanceWindowBuilder
sourcepub fn start_time(self, input: impl Into<String>) -> Self
pub fn start_time(self, input: impl Into<String>) -> Self
Displays the start time of the next maintenance window.
This field is required.sourcepub fn set_start_time(self, input: Option<String>) -> Self
pub fn set_start_time(self, input: Option<String>) -> Self
Displays the start time of the next maintenance window.
sourcepub fn get_start_time(&self) -> &Option<String>
pub fn get_start_time(&self) -> &Option<String>
Displays the start time of the next maintenance window.
sourcepub fn duration_in_minutes(self, input: i32) -> Self
pub fn duration_in_minutes(self, input: i32) -> Self
Displays the duration of the next maintenance window.
This field is required.sourcepub fn set_duration_in_minutes(self, input: Option<i32>) -> Self
pub fn set_duration_in_minutes(self, input: Option<i32>) -> Self
Displays the duration of the next maintenance window.
sourcepub fn get_duration_in_minutes(&self) -> &Option<i32>
pub fn get_duration_in_minutes(&self) -> &Option<i32>
Displays the duration of the next maintenance window.
sourcepub fn build(self) -> Result<MaintenanceWindow, BuildError>
pub fn build(self) -> Result<MaintenanceWindow, BuildError>
Consumes the builder and constructs a MaintenanceWindow
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for MaintenanceWindowBuilder
impl Clone for MaintenanceWindowBuilder
source§fn clone(&self) -> MaintenanceWindowBuilder
fn clone(&self) -> MaintenanceWindowBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for MaintenanceWindowBuilder
impl Debug for MaintenanceWindowBuilder
source§impl Default for MaintenanceWindowBuilder
impl Default for MaintenanceWindowBuilder
source§fn default() -> MaintenanceWindowBuilder
fn default() -> MaintenanceWindowBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for MaintenanceWindowBuilder
impl PartialEq for MaintenanceWindowBuilder
source§fn eq(&self, other: &MaintenanceWindowBuilder) -> bool
fn eq(&self, other: &MaintenanceWindowBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for MaintenanceWindowBuilder
Auto Trait Implementations§
impl RefUnwindSafe for MaintenanceWindowBuilder
impl Send for MaintenanceWindowBuilder
impl Sync for MaintenanceWindowBuilder
impl Unpin for MaintenanceWindowBuilder
impl UnwindSafe for MaintenanceWindowBuilder
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
Mutably borrows from an owned value. Read more
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>
Creates a shared type from an unshared type.