#[non_exhaustive]pub struct AliasRoutingConfigurationBuilder { /* private fields */ }
Expand description
A builder for AliasRoutingConfiguration
.
Implementations§
source§impl AliasRoutingConfigurationBuilder
impl AliasRoutingConfigurationBuilder
sourcepub fn additional_version_weights(self, k: impl Into<String>, v: f64) -> Self
pub fn additional_version_weights(self, k: impl Into<String>, v: f64) -> Self
Adds a key-value pair to additional_version_weights
.
To override the contents of this collection use set_additional_version_weights
.
The second version, and the percentage of traffic that's routed to it.
sourcepub fn set_additional_version_weights(
self,
input: Option<HashMap<String, f64>>
) -> Self
pub fn set_additional_version_weights( self, input: Option<HashMap<String, f64>> ) -> Self
The second version, and the percentage of traffic that's routed to it.
sourcepub fn build(self) -> AliasRoutingConfiguration
pub fn build(self) -> AliasRoutingConfiguration
Consumes the builder and constructs a AliasRoutingConfiguration
.
Trait Implementations§
source§impl Clone for AliasRoutingConfigurationBuilder
impl Clone for AliasRoutingConfigurationBuilder
source§fn clone(&self) -> AliasRoutingConfigurationBuilder
fn clone(&self) -> AliasRoutingConfigurationBuilder
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 Default for AliasRoutingConfigurationBuilder
impl Default for AliasRoutingConfigurationBuilder
source§fn default() -> AliasRoutingConfigurationBuilder
fn default() -> AliasRoutingConfigurationBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq<AliasRoutingConfigurationBuilder> for AliasRoutingConfigurationBuilder
impl PartialEq<AliasRoutingConfigurationBuilder> for AliasRoutingConfigurationBuilder
source§fn eq(&self, other: &AliasRoutingConfigurationBuilder) -> bool
fn eq(&self, other: &AliasRoutingConfigurationBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.