Struct aws_sdk_ecr::types::builders::ReplicationDestinationBuilder
source · #[non_exhaustive]pub struct ReplicationDestinationBuilder { /* private fields */ }Expand description
A builder for ReplicationDestination.
Implementations§
source§impl ReplicationDestinationBuilder
impl ReplicationDestinationBuilder
sourcepub fn region(self, input: impl Into<String>) -> Self
pub fn region(self, input: impl Into<String>) -> Self
The Region to replicate to.
This field is required.sourcepub fn set_region(self, input: Option<String>) -> Self
pub fn set_region(self, input: Option<String>) -> Self
The Region to replicate to.
sourcepub fn get_region(&self) -> &Option<String>
pub fn get_region(&self) -> &Option<String>
The Region to replicate to.
sourcepub fn registry_id(self, input: impl Into<String>) -> Self
pub fn registry_id(self, input: impl Into<String>) -> Self
The Amazon Web Services account ID of the Amazon ECR private registry to replicate to. When configuring cross-Region replication within your own registry, specify your own account ID.
This field is required.sourcepub fn set_registry_id(self, input: Option<String>) -> Self
pub fn set_registry_id(self, input: Option<String>) -> Self
The Amazon Web Services account ID of the Amazon ECR private registry to replicate to. When configuring cross-Region replication within your own registry, specify your own account ID.
sourcepub fn get_registry_id(&self) -> &Option<String>
pub fn get_registry_id(&self) -> &Option<String>
The Amazon Web Services account ID of the Amazon ECR private registry to replicate to. When configuring cross-Region replication within your own registry, specify your own account ID.
sourcepub fn build(self) -> Result<ReplicationDestination, BuildError>
pub fn build(self) -> Result<ReplicationDestination, BuildError>
Consumes the builder and constructs a ReplicationDestination.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for ReplicationDestinationBuilder
impl Clone for ReplicationDestinationBuilder
source§fn clone(&self) -> ReplicationDestinationBuilder
fn clone(&self) -> ReplicationDestinationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for ReplicationDestinationBuilder
impl Default for ReplicationDestinationBuilder
source§fn default() -> ReplicationDestinationBuilder
fn default() -> ReplicationDestinationBuilder
source§impl PartialEq for ReplicationDestinationBuilder
impl PartialEq for ReplicationDestinationBuilder
source§fn eq(&self, other: &ReplicationDestinationBuilder) -> bool
fn eq(&self, other: &ReplicationDestinationBuilder) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ReplicationDestinationBuilder
Auto Trait Implementations§
impl Freeze for ReplicationDestinationBuilder
impl RefUnwindSafe for ReplicationDestinationBuilder
impl Send for ReplicationDestinationBuilder
impl Sync for ReplicationDestinationBuilder
impl Unpin for ReplicationDestinationBuilder
impl UnwindSafe for ReplicationDestinationBuilder
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)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