Struct aws_sdk_cloudfront::types::builders::TrafficConfigBuilder
source · #[non_exhaustive]pub struct TrafficConfigBuilder { /* private fields */ }
Expand description
A builder for TrafficConfig
.
Implementations§
source§impl TrafficConfigBuilder
impl TrafficConfigBuilder
sourcepub fn single_weight_config(
self,
input: ContinuousDeploymentSingleWeightConfig
) -> Self
pub fn single_weight_config( self, input: ContinuousDeploymentSingleWeightConfig ) -> Self
Contains the percentage of traffic to send to the staging distribution.
sourcepub fn set_single_weight_config(
self,
input: Option<ContinuousDeploymentSingleWeightConfig>
) -> Self
pub fn set_single_weight_config( self, input: Option<ContinuousDeploymentSingleWeightConfig> ) -> Self
Contains the percentage of traffic to send to the staging distribution.
sourcepub fn get_single_weight_config(
&self
) -> &Option<ContinuousDeploymentSingleWeightConfig>
pub fn get_single_weight_config( &self ) -> &Option<ContinuousDeploymentSingleWeightConfig>
Contains the percentage of traffic to send to the staging distribution.
sourcepub fn single_header_config(
self,
input: ContinuousDeploymentSingleHeaderConfig
) -> Self
pub fn single_header_config( self, input: ContinuousDeploymentSingleHeaderConfig ) -> Self
Determines which HTTP requests are sent to the staging distribution.
sourcepub fn set_single_header_config(
self,
input: Option<ContinuousDeploymentSingleHeaderConfig>
) -> Self
pub fn set_single_header_config( self, input: Option<ContinuousDeploymentSingleHeaderConfig> ) -> Self
Determines which HTTP requests are sent to the staging distribution.
sourcepub fn get_single_header_config(
&self
) -> &Option<ContinuousDeploymentSingleHeaderConfig>
pub fn get_single_header_config( &self ) -> &Option<ContinuousDeploymentSingleHeaderConfig>
Determines which HTTP requests are sent to the staging distribution.
sourcepub fn type(self, input: ContinuousDeploymentPolicyType) -> Self
pub fn type(self, input: ContinuousDeploymentPolicyType) -> Self
The type of traffic configuration.
This field is required.sourcepub fn set_type(self, input: Option<ContinuousDeploymentPolicyType>) -> Self
pub fn set_type(self, input: Option<ContinuousDeploymentPolicyType>) -> Self
The type of traffic configuration.
sourcepub fn get_type(&self) -> &Option<ContinuousDeploymentPolicyType>
pub fn get_type(&self) -> &Option<ContinuousDeploymentPolicyType>
The type of traffic configuration.
sourcepub fn build(self) -> Result<TrafficConfig, BuildError>
pub fn build(self) -> Result<TrafficConfig, BuildError>
Consumes the builder and constructs a TrafficConfig
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for TrafficConfigBuilder
impl Clone for TrafficConfigBuilder
source§fn clone(&self) -> TrafficConfigBuilder
fn clone(&self) -> TrafficConfigBuilder
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 TrafficConfigBuilder
impl Debug for TrafficConfigBuilder
source§impl Default for TrafficConfigBuilder
impl Default for TrafficConfigBuilder
source§fn default() -> TrafficConfigBuilder
fn default() -> TrafficConfigBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for TrafficConfigBuilder
impl PartialEq for TrafficConfigBuilder
source§fn eq(&self, other: &TrafficConfigBuilder) -> bool
fn eq(&self, other: &TrafficConfigBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for TrafficConfigBuilder
Auto Trait Implementations§
impl RefUnwindSafe for TrafficConfigBuilder
impl Send for TrafficConfigBuilder
impl Sync for TrafficConfigBuilder
impl Unpin for TrafficConfigBuilder
impl UnwindSafe for TrafficConfigBuilder
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> 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>
Creates a shared type from an unshared type.