#[non_exhaustive]pub struct ContinuousDeploymentSingleWeightConfigBuilder { /* private fields */ }
Expand description
A builder for ContinuousDeploymentSingleWeightConfig
.
Implementations§
source§impl ContinuousDeploymentSingleWeightConfigBuilder
impl ContinuousDeploymentSingleWeightConfigBuilder
sourcepub fn weight(self, input: f32) -> Self
pub fn weight(self, input: f32) -> Self
The percentage of traffic to send to a staging distribution, expressed as a decimal number between 0 and 0.15. For example, a value of 0.10 means 10% of traffic is sent to the staging distribution.
This field is required.sourcepub fn set_weight(self, input: Option<f32>) -> Self
pub fn set_weight(self, input: Option<f32>) -> Self
The percentage of traffic to send to a staging distribution, expressed as a decimal number between 0 and 0.15. For example, a value of 0.10 means 10% of traffic is sent to the staging distribution.
sourcepub fn get_weight(&self) -> &Option<f32>
pub fn get_weight(&self) -> &Option<f32>
The percentage of traffic to send to a staging distribution, expressed as a decimal number between 0 and 0.15. For example, a value of 0.10 means 10% of traffic is sent to the staging distribution.
sourcepub fn session_stickiness_config(self, input: SessionStickinessConfig) -> Self
pub fn session_stickiness_config(self, input: SessionStickinessConfig) -> Self
Session stickiness provides the ability to define multiple requests from a single viewer as a single session. This prevents the potentially inconsistent experience of sending some of a given user's requests to your staging distribution, while others are sent to your primary distribution. Define the session duration using TTL values.
sourcepub fn set_session_stickiness_config(
self,
input: Option<SessionStickinessConfig>
) -> Self
pub fn set_session_stickiness_config( self, input: Option<SessionStickinessConfig> ) -> Self
Session stickiness provides the ability to define multiple requests from a single viewer as a single session. This prevents the potentially inconsistent experience of sending some of a given user's requests to your staging distribution, while others are sent to your primary distribution. Define the session duration using TTL values.
sourcepub fn get_session_stickiness_config(&self) -> &Option<SessionStickinessConfig>
pub fn get_session_stickiness_config(&self) -> &Option<SessionStickinessConfig>
Session stickiness provides the ability to define multiple requests from a single viewer as a single session. This prevents the potentially inconsistent experience of sending some of a given user's requests to your staging distribution, while others are sent to your primary distribution. Define the session duration using TTL values.
sourcepub fn build(self) -> Result<ContinuousDeploymentSingleWeightConfig, BuildError>
pub fn build(self) -> Result<ContinuousDeploymentSingleWeightConfig, BuildError>
Consumes the builder and constructs a ContinuousDeploymentSingleWeightConfig
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for ContinuousDeploymentSingleWeightConfigBuilder
impl Clone for ContinuousDeploymentSingleWeightConfigBuilder
source§fn clone(&self) -> ContinuousDeploymentSingleWeightConfigBuilder
fn clone(&self) -> ContinuousDeploymentSingleWeightConfigBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for ContinuousDeploymentSingleWeightConfigBuilder
impl Default for ContinuousDeploymentSingleWeightConfigBuilder
source§fn default() -> ContinuousDeploymentSingleWeightConfigBuilder
fn default() -> ContinuousDeploymentSingleWeightConfigBuilder
source§impl PartialEq for ContinuousDeploymentSingleWeightConfigBuilder
impl PartialEq for ContinuousDeploymentSingleWeightConfigBuilder
source§fn eq(&self, other: &ContinuousDeploymentSingleWeightConfigBuilder) -> bool
fn eq(&self, other: &ContinuousDeploymentSingleWeightConfigBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ContinuousDeploymentSingleWeightConfigBuilder
Auto Trait Implementations§
impl Freeze for ContinuousDeploymentSingleWeightConfigBuilder
impl RefUnwindSafe for ContinuousDeploymentSingleWeightConfigBuilder
impl Send for ContinuousDeploymentSingleWeightConfigBuilder
impl Sync for ContinuousDeploymentSingleWeightConfigBuilder
impl Unpin for ContinuousDeploymentSingleWeightConfigBuilder
impl UnwindSafe for ContinuousDeploymentSingleWeightConfigBuilder
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
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>
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>
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 more