Struct aws_sdk_ecr::model::replication_rule::Builder
source · [−]pub struct Builder { /* private fields */ }
Expand description
A builder for ReplicationRule
.
Implementations
sourceimpl Builder
impl Builder
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 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 build(self) -> ReplicationRule
pub fn build(self) -> ReplicationRule
Consumes the builder and constructs a ReplicationRule
.