Struct aws_sdk_ecr::types::builders::ReplicationRuleBuilder
source · #[non_exhaustive]pub struct ReplicationRuleBuilder { /* private fields */ }
Expand description
A builder for ReplicationRule
.
Implementations§
source§impl ReplicationRuleBuilder
impl ReplicationRuleBuilder
sourcepub fn destinations(self, input: ReplicationDestination) -> Self
pub fn destinations(self, input: ReplicationDestination) -> Self
Appends an item to destinations
.
To override the contents of this collection use set_destinations
.
An array of objects representing the destination for a replication rule.
sourcepub fn set_destinations(
self,
input: Option<Vec<ReplicationDestination>>
) -> Self
pub fn set_destinations( self, input: Option<Vec<ReplicationDestination>> ) -> Self
An array of objects representing the destination for a replication rule.
sourcepub fn get_destinations(&self) -> &Option<Vec<ReplicationDestination>>
pub fn get_destinations(&self) -> &Option<Vec<ReplicationDestination>>
An array of objects representing the destination for a replication rule.
sourcepub fn repository_filters(self, input: RepositoryFilter) -> Self
pub fn repository_filters(self, input: RepositoryFilter) -> Self
Appends an item to repository_filters
.
To override the contents of this collection use set_repository_filters
.
An array of objects representing the filters for a replication rule. Specifying a repository filter for a replication rule provides a method for controlling which repositories in a private registry are replicated.
sourcepub fn set_repository_filters(
self,
input: Option<Vec<RepositoryFilter>>
) -> Self
pub fn set_repository_filters( self, input: Option<Vec<RepositoryFilter>> ) -> Self
An array of objects representing the filters for a replication rule. Specifying a repository filter for a replication rule provides a method for controlling which repositories in a private registry are replicated.
sourcepub fn get_repository_filters(&self) -> &Option<Vec<RepositoryFilter>>
pub fn get_repository_filters(&self) -> &Option<Vec<RepositoryFilter>>
An array of objects representing the filters for a replication rule. Specifying a repository filter for a replication rule provides a method for controlling which repositories in a private registry are replicated.
sourcepub fn build(self) -> Result<ReplicationRule, BuildError>
pub fn build(self) -> Result<ReplicationRule, BuildError>
Consumes the builder and constructs a ReplicationRule
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for ReplicationRuleBuilder
impl Clone for ReplicationRuleBuilder
source§fn clone(&self) -> ReplicationRuleBuilder
fn clone(&self) -> ReplicationRuleBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ReplicationRuleBuilder
impl Debug for ReplicationRuleBuilder
source§impl Default for ReplicationRuleBuilder
impl Default for ReplicationRuleBuilder
source§fn default() -> ReplicationRuleBuilder
fn default() -> ReplicationRuleBuilder
source§impl PartialEq for ReplicationRuleBuilder
impl PartialEq for ReplicationRuleBuilder
source§fn eq(&self, other: &ReplicationRuleBuilder) -> bool
fn eq(&self, other: &ReplicationRuleBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ReplicationRuleBuilder
Auto Trait Implementations§
impl Freeze for ReplicationRuleBuilder
impl RefUnwindSafe for ReplicationRuleBuilder
impl Send for ReplicationRuleBuilder
impl Sync for ReplicationRuleBuilder
impl Unpin for ReplicationRuleBuilder
impl UnwindSafe for ReplicationRuleBuilder
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> 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