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.
sourcepub fn set_traffic_type(self, input: Option<TrafficType>) -> Self
pub fn set_traffic_type(self, input: Option<TrafficType>) -> Self
Defines the traffic patterns.
sourcepub fn get_traffic_type(&self) -> &Option<TrafficType>
pub fn get_traffic_type(&self) -> &Option<TrafficType>
Defines the traffic patterns.
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 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<TrafficPatternBuilder> for TrafficPatternBuilder
impl PartialEq<TrafficPatternBuilder> 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 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