Struct aws_sdk_sagemaker::types::builders::TrafficPatternBuilder
source · #[non_exhaustive]pub struct TrafficPatternBuilder { /* private fields */ }
Expand description
A builder for TrafficPattern
.
Implementations§
source§impl TrafficPatternBuilder
impl TrafficPatternBuilder
sourcepub fn traffic_type(self, input: TrafficType) -> Self
pub fn traffic_type(self, input: TrafficType) -> Self
Defines the traffic patterns. Choose either PHASES
or STAIRS
.
sourcepub fn set_traffic_type(self, input: Option<TrafficType>) -> Self
pub fn set_traffic_type(self, input: Option<TrafficType>) -> Self
Defines the traffic patterns. Choose either PHASES
or STAIRS
.
sourcepub fn get_traffic_type(&self) -> &Option<TrafficType>
pub fn get_traffic_type(&self) -> &Option<TrafficType>
Defines the traffic patterns. Choose either PHASES
or STAIRS
.
sourcepub fn phases(self, input: Phase) -> Self
pub fn phases(self, input: Phase) -> Self
Appends an item to phases
.
To override the contents of this collection use set_phases
.
Defines the phases traffic specification.
sourcepub fn set_phases(self, input: Option<Vec<Phase>>) -> Self
pub fn set_phases(self, input: Option<Vec<Phase>>) -> Self
Defines the phases traffic specification.
sourcepub fn get_phases(&self) -> &Option<Vec<Phase>>
pub fn get_phases(&self) -> &Option<Vec<Phase>>
Defines the phases traffic specification.
sourcepub fn set_stairs(self, input: Option<Stairs>) -> Self
pub fn set_stairs(self, input: Option<Stairs>) -> Self
Defines the stairs traffic pattern.
sourcepub fn get_stairs(&self) -> &Option<Stairs>
pub fn get_stairs(&self) -> &Option<Stairs>
Defines the stairs traffic pattern.
sourcepub fn build(self) -> TrafficPattern
pub fn build(self) -> TrafficPattern
Consumes the builder and constructs a TrafficPattern
.
Trait Implementations§
source§impl Clone for TrafficPatternBuilder
impl Clone for TrafficPatternBuilder
source§fn clone(&self) -> TrafficPatternBuilder
fn clone(&self) -> TrafficPatternBuilder
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 TrafficPatternBuilder
impl Debug for TrafficPatternBuilder
source§impl Default for TrafficPatternBuilder
impl Default for TrafficPatternBuilder
source§fn default() -> TrafficPatternBuilder
fn default() -> TrafficPatternBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for TrafficPatternBuilder
impl PartialEq for TrafficPatternBuilder
source§fn eq(&self, other: &TrafficPatternBuilder) -> bool
fn eq(&self, other: &TrafficPatternBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for TrafficPatternBuilder
Auto Trait Implementations§
impl Freeze for TrafficPatternBuilder
impl RefUnwindSafe for TrafficPatternBuilder
impl Send for TrafficPatternBuilder
impl Sync for TrafficPatternBuilder
impl Unpin for TrafficPatternBuilder
impl UnwindSafe for TrafficPatternBuilder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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>
Converts
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>
Converts
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 moreCreates a shared type from an unshared type.