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