#[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 .15.
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 .15.
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 .15.
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 ==
.