Struct aws_sdk_connect::types::builders::DistributionBuilder
source · #[non_exhaustive]pub struct DistributionBuilder { /* private fields */ }
Expand description
A builder for Distribution
.
Implementations§
source§impl DistributionBuilder
impl DistributionBuilder
sourcepub fn region(self, input: impl Into<String>) -> Self
pub fn region(self, input: impl Into<String>) -> Self
The Amazon Web Services Region where the traffic is distributed.
This field is required.sourcepub fn set_region(self, input: Option<String>) -> Self
pub fn set_region(self, input: Option<String>) -> Self
The Amazon Web Services Region where the traffic is distributed.
sourcepub fn get_region(&self) -> &Option<String>
pub fn get_region(&self) -> &Option<String>
The Amazon Web Services Region where the traffic is distributed.
sourcepub fn percentage(self, input: i32) -> Self
pub fn percentage(self, input: i32) -> Self
The percentage of the traffic that is distributed, in increments of 10.
This field is required.sourcepub fn set_percentage(self, input: Option<i32>) -> Self
pub fn set_percentage(self, input: Option<i32>) -> Self
The percentage of the traffic that is distributed, in increments of 10.
sourcepub fn get_percentage(&self) -> &Option<i32>
pub fn get_percentage(&self) -> &Option<i32>
The percentage of the traffic that is distributed, in increments of 10.
sourcepub fn build(self) -> Result<Distribution, BuildError>
pub fn build(self) -> Result<Distribution, BuildError>
Consumes the builder and constructs a Distribution
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for DistributionBuilder
impl Clone for DistributionBuilder
source§fn clone(&self) -> DistributionBuilder
fn clone(&self) -> DistributionBuilder
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 DistributionBuilder
impl Debug for DistributionBuilder
source§impl Default for DistributionBuilder
impl Default for DistributionBuilder
source§fn default() -> DistributionBuilder
fn default() -> DistributionBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for DistributionBuilder
impl PartialEq for DistributionBuilder
source§fn eq(&self, other: &DistributionBuilder) -> bool
fn eq(&self, other: &DistributionBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for DistributionBuilder
Auto Trait Implementations§
impl Freeze for DistributionBuilder
impl RefUnwindSafe for DistributionBuilder
impl Send for DistributionBuilder
impl Sync for DistributionBuilder
impl Unpin for DistributionBuilder
impl UnwindSafe for DistributionBuilder
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.