#[non_exhaustive]pub struct MultiRegionAccessPointRouteBuilder { /* private fields */ }
Expand description
A builder for MultiRegionAccessPointRoute
.
Implementations§
source§impl MultiRegionAccessPointRouteBuilder
impl MultiRegionAccessPointRouteBuilder
sourcepub fn bucket(self, input: impl Into<String>) -> Self
pub fn bucket(self, input: impl Into<String>) -> Self
The name of the Amazon S3 bucket for which you'll submit a routing configuration change. Either the Bucket
or the Region
value must be provided. If both are provided, the bucket must be in the specified Region.
sourcepub fn set_bucket(self, input: Option<String>) -> Self
pub fn set_bucket(self, input: Option<String>) -> Self
The name of the Amazon S3 bucket for which you'll submit a routing configuration change. Either the Bucket
or the Region
value must be provided. If both are provided, the bucket must be in the specified Region.
sourcepub fn get_bucket(&self) -> &Option<String>
pub fn get_bucket(&self) -> &Option<String>
The name of the Amazon S3 bucket for which you'll submit a routing configuration change. Either the Bucket
or the Region
value must be provided. If both are provided, the bucket must be in the specified Region.
sourcepub fn region(self, input: impl Into<String>) -> Self
pub fn region(self, input: impl Into<String>) -> Self
The Amazon Web Services Region to which you'll be submitting a routing configuration change. Either the Bucket
or the Region
value must be provided. If both are provided, the bucket must be in the specified Region.
sourcepub fn set_region(self, input: Option<String>) -> Self
pub fn set_region(self, input: Option<String>) -> Self
The Amazon Web Services Region to which you'll be submitting a routing configuration change. Either the Bucket
or the Region
value must be provided. If both are provided, the bucket must be in the specified Region.
sourcepub fn get_region(&self) -> &Option<String>
pub fn get_region(&self) -> &Option<String>
The Amazon Web Services Region to which you'll be submitting a routing configuration change. Either the Bucket
or the Region
value must be provided. If both are provided, the bucket must be in the specified Region.
sourcepub fn traffic_dial_percentage(self, input: i32) -> Self
pub fn traffic_dial_percentage(self, input: i32) -> Self
The traffic state for the specified bucket or Amazon Web Services Region.
A value of 0
indicates a passive state, which means that no new traffic will be routed to the Region.
A value of 100
indicates an active state, which means that traffic will be routed to the specified Region.
When the routing configuration for a Region is changed from active to passive, any in-progress operations (uploads, copies, deletes, and so on) to the formerly active Region will continue to run to until a final success or failure status is reached.
If all Regions in the routing configuration are designated as passive, you'll receive an InvalidRequest
error.
sourcepub fn set_traffic_dial_percentage(self, input: Option<i32>) -> Self
pub fn set_traffic_dial_percentage(self, input: Option<i32>) -> Self
The traffic state for the specified bucket or Amazon Web Services Region.
A value of 0
indicates a passive state, which means that no new traffic will be routed to the Region.
A value of 100
indicates an active state, which means that traffic will be routed to the specified Region.
When the routing configuration for a Region is changed from active to passive, any in-progress operations (uploads, copies, deletes, and so on) to the formerly active Region will continue to run to until a final success or failure status is reached.
If all Regions in the routing configuration are designated as passive, you'll receive an InvalidRequest
error.
sourcepub fn get_traffic_dial_percentage(&self) -> &Option<i32>
pub fn get_traffic_dial_percentage(&self) -> &Option<i32>
The traffic state for the specified bucket or Amazon Web Services Region.
A value of 0
indicates a passive state, which means that no new traffic will be routed to the Region.
A value of 100
indicates an active state, which means that traffic will be routed to the specified Region.
When the routing configuration for a Region is changed from active to passive, any in-progress operations (uploads, copies, deletes, and so on) to the formerly active Region will continue to run to until a final success or failure status is reached.
If all Regions in the routing configuration are designated as passive, you'll receive an InvalidRequest
error.
sourcepub fn build(self) -> Result<MultiRegionAccessPointRoute, BuildError>
pub fn build(self) -> Result<MultiRegionAccessPointRoute, BuildError>
Consumes the builder and constructs a MultiRegionAccessPointRoute
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for MultiRegionAccessPointRouteBuilder
impl Clone for MultiRegionAccessPointRouteBuilder
source§fn clone(&self) -> MultiRegionAccessPointRouteBuilder
fn clone(&self) -> MultiRegionAccessPointRouteBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for MultiRegionAccessPointRouteBuilder
impl Default for MultiRegionAccessPointRouteBuilder
source§fn default() -> MultiRegionAccessPointRouteBuilder
fn default() -> MultiRegionAccessPointRouteBuilder
source§impl PartialEq for MultiRegionAccessPointRouteBuilder
impl PartialEq for MultiRegionAccessPointRouteBuilder
source§fn eq(&self, other: &MultiRegionAccessPointRouteBuilder) -> bool
fn eq(&self, other: &MultiRegionAccessPointRouteBuilder) -> bool
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for MultiRegionAccessPointRouteBuilder
Auto Trait Implementations§
impl Freeze for MultiRegionAccessPointRouteBuilder
impl RefUnwindSafe for MultiRegionAccessPointRouteBuilder
impl Send for MultiRegionAccessPointRouteBuilder
impl Sync for MultiRegionAccessPointRouteBuilder
impl Unpin for MultiRegionAccessPointRouteBuilder
impl UnwindSafe for MultiRegionAccessPointRouteBuilder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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