Struct aws_sdk_devopsguru::types::builders::InsightTimeRangeBuilder
source · #[non_exhaustive]pub struct InsightTimeRangeBuilder { /* private fields */ }
Expand description
A builder for InsightTimeRange
.
Implementations§
source§impl InsightTimeRangeBuilder
impl InsightTimeRangeBuilder
sourcepub fn start_time(self, input: DateTime) -> Self
pub fn start_time(self, input: DateTime) -> Self
The time when the behavior described in an insight started.
This field is required.sourcepub fn set_start_time(self, input: Option<DateTime>) -> Self
pub fn set_start_time(self, input: Option<DateTime>) -> Self
The time when the behavior described in an insight started.
sourcepub fn get_start_time(&self) -> &Option<DateTime>
pub fn get_start_time(&self) -> &Option<DateTime>
The time when the behavior described in an insight started.
sourcepub fn end_time(self, input: DateTime) -> Self
pub fn end_time(self, input: DateTime) -> Self
The time when the behavior described in an insight ended.
sourcepub fn set_end_time(self, input: Option<DateTime>) -> Self
pub fn set_end_time(self, input: Option<DateTime>) -> Self
The time when the behavior described in an insight ended.
sourcepub fn get_end_time(&self) -> &Option<DateTime>
pub fn get_end_time(&self) -> &Option<DateTime>
The time when the behavior described in an insight ended.
sourcepub fn build(self) -> Result<InsightTimeRange, BuildError>
pub fn build(self) -> Result<InsightTimeRange, BuildError>
Consumes the builder and constructs a InsightTimeRange
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for InsightTimeRangeBuilder
impl Clone for InsightTimeRangeBuilder
source§fn clone(&self) -> InsightTimeRangeBuilder
fn clone(&self) -> InsightTimeRangeBuilder
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 InsightTimeRangeBuilder
impl Debug for InsightTimeRangeBuilder
source§impl Default for InsightTimeRangeBuilder
impl Default for InsightTimeRangeBuilder
source§fn default() -> InsightTimeRangeBuilder
fn default() -> InsightTimeRangeBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for InsightTimeRangeBuilder
impl PartialEq for InsightTimeRangeBuilder
source§fn eq(&self, other: &InsightTimeRangeBuilder) -> bool
fn eq(&self, other: &InsightTimeRangeBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for InsightTimeRangeBuilder
Auto Trait Implementations§
impl RefUnwindSafe for InsightTimeRangeBuilder
impl Send for InsightTimeRangeBuilder
impl Sync for InsightTimeRangeBuilder
impl Unpin for InsightTimeRangeBuilder
impl UnwindSafe for InsightTimeRangeBuilder
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.