aws-sdk-ecr 1.138.0

AWS SDK for Amazon Elastic Container Registry
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct StartReplicationBackfillInput {
    /// <p>The Amazon Web Services account ID associated with the registry from which to start the replication backfill. If you do not specify a registry, the default registry is assumed.</p>
    pub registry_id: ::std::option::Option<::std::string::String>,
    /// <p>The destination Region and registry to which the images are replicated.</p>
    pub destination: ::std::option::Option<crate::types::ReplicationDestination>,
}
impl StartReplicationBackfillInput {
    /// <p>The Amazon Web Services account ID associated with the registry from which to start the replication backfill. If you do not specify a registry, the default registry is assumed.</p>
    pub fn registry_id(&self) -> ::std::option::Option<&str> {
        self.registry_id.as_deref()
    }
    /// <p>The destination Region and registry to which the images are replicated.</p>
    pub fn destination(&self) -> ::std::option::Option<&crate::types::ReplicationDestination> {
        self.destination.as_ref()
    }
}
impl StartReplicationBackfillInput {
    /// Creates a new builder-style object to manufacture [`StartReplicationBackfillInput`](crate::operation::start_replication_backfill::StartReplicationBackfillInput).
    pub fn builder() -> crate::operation::start_replication_backfill::builders::StartReplicationBackfillInputBuilder {
        crate::operation::start_replication_backfill::builders::StartReplicationBackfillInputBuilder::default()
    }
}

/// A builder for [`StartReplicationBackfillInput`](crate::operation::start_replication_backfill::StartReplicationBackfillInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct StartReplicationBackfillInputBuilder {
    pub(crate) registry_id: ::std::option::Option<::std::string::String>,
    pub(crate) destination: ::std::option::Option<crate::types::ReplicationDestination>,
}
impl StartReplicationBackfillInputBuilder {
    /// <p>The Amazon Web Services account ID associated with the registry from which to start the replication backfill. If you do not specify a registry, the default registry is assumed.</p>
    pub fn registry_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.registry_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The Amazon Web Services account ID associated with the registry from which to start the replication backfill. If you do not specify a registry, the default registry is assumed.</p>
    pub fn set_registry_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.registry_id = input;
        self
    }
    /// <p>The Amazon Web Services account ID associated with the registry from which to start the replication backfill. If you do not specify a registry, the default registry is assumed.</p>
    pub fn get_registry_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.registry_id
    }
    /// <p>The destination Region and registry to which the images are replicated.</p>
    /// This field is required.
    pub fn destination(mut self, input: crate::types::ReplicationDestination) -> Self {
        self.destination = ::std::option::Option::Some(input);
        self
    }
    /// <p>The destination Region and registry to which the images are replicated.</p>
    pub fn set_destination(mut self, input: ::std::option::Option<crate::types::ReplicationDestination>) -> Self {
        self.destination = input;
        self
    }
    /// <p>The destination Region and registry to which the images are replicated.</p>
    pub fn get_destination(&self) -> &::std::option::Option<crate::types::ReplicationDestination> {
        &self.destination
    }
    /// Consumes the builder and constructs a [`StartReplicationBackfillInput`](crate::operation::start_replication_backfill::StartReplicationBackfillInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<
        crate::operation::start_replication_backfill::StartReplicationBackfillInput,
        ::aws_smithy_types::error::operation::BuildError,
    > {
        ::std::result::Result::Ok(crate::operation::start_replication_backfill::StartReplicationBackfillInput {
            registry_id: self.registry_id,
            destination: self.destination,
        })
    }
}