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