Struct aws_sdk_s3::types::builders::ReplicationConfigurationBuilder
source · #[non_exhaustive]pub struct ReplicationConfigurationBuilder { /* private fields */ }
Expand description
A builder for ReplicationConfiguration
.
Implementations§
source§impl ReplicationConfigurationBuilder
impl ReplicationConfigurationBuilder
sourcepub fn role(self, input: impl Into<String>) -> Self
pub fn role(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role that Amazon S3 assumes when replicating objects. For more information, see How to Set Up Replication in the Amazon S3 User Guide.
This field is required.sourcepub fn set_role(self, input: Option<String>) -> Self
pub fn set_role(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role that Amazon S3 assumes when replicating objects. For more information, see How to Set Up Replication in the Amazon S3 User Guide.
sourcepub fn get_role(&self) -> &Option<String>
pub fn get_role(&self) -> &Option<String>
The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role that Amazon S3 assumes when replicating objects. For more information, see How to Set Up Replication in the Amazon S3 User Guide.
sourcepub fn rules(self, input: ReplicationRule) -> Self
pub fn rules(self, input: ReplicationRule) -> Self
Appends an item to rules
.
To override the contents of this collection use set_rules
.
A container for one or more replication rules. A replication configuration must have at least one rule and can contain a maximum of 1,000 rules.
sourcepub fn set_rules(self, input: Option<Vec<ReplicationRule>>) -> Self
pub fn set_rules(self, input: Option<Vec<ReplicationRule>>) -> Self
A container for one or more replication rules. A replication configuration must have at least one rule and can contain a maximum of 1,000 rules.
sourcepub fn get_rules(&self) -> &Option<Vec<ReplicationRule>>
pub fn get_rules(&self) -> &Option<Vec<ReplicationRule>>
A container for one or more replication rules. A replication configuration must have at least one rule and can contain a maximum of 1,000 rules.
sourcepub fn build(self) -> Result<ReplicationConfiguration, BuildError>
pub fn build(self) -> Result<ReplicationConfiguration, BuildError>
Consumes the builder and constructs a ReplicationConfiguration
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for ReplicationConfigurationBuilder
impl Clone for ReplicationConfigurationBuilder
source§fn clone(&self) -> ReplicationConfigurationBuilder
fn clone(&self) -> ReplicationConfigurationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for ReplicationConfigurationBuilder
impl Default for ReplicationConfigurationBuilder
source§fn default() -> ReplicationConfigurationBuilder
fn default() -> ReplicationConfigurationBuilder
source§impl PartialEq for ReplicationConfigurationBuilder
impl PartialEq for ReplicationConfigurationBuilder
source§fn eq(&self, other: &ReplicationConfigurationBuilder) -> bool
fn eq(&self, other: &ReplicationConfigurationBuilder) -> bool
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for ReplicationConfigurationBuilder
Auto Trait Implementations§
impl Freeze for ReplicationConfigurationBuilder
impl RefUnwindSafe for ReplicationConfigurationBuilder
impl Send for ReplicationConfigurationBuilder
impl Sync for ReplicationConfigurationBuilder
impl Unpin for ReplicationConfigurationBuilder
impl UnwindSafe for ReplicationConfigurationBuilder
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)