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 StartReplicationBackfillOutput {
    /// <p>The ID of the replication backfill that was started. Use this value to describe or stop the backfill.</p>
    pub replication_backfill_id: ::std::option::Option<::std::string::String>,
    /// <p>The registry ID associated with the request.</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>,
    /// <p>The current status of the replication backfill. A newly started replication backfill is returned with a status of <code>PREPARING</code>.</p>
    pub status: ::std::option::Option<crate::types::ReplicationBackfillStatus>,
    /// <p>The date and time, in JavaScript date format, when the replication backfill was started.</p>
    pub started_at: ::std::option::Option<::aws_smithy_types::DateTime>,
    _request_id: Option<String>,
}
impl StartReplicationBackfillOutput {
    /// <p>The ID of the replication backfill that was started. Use this value to describe or stop the backfill.</p>
    pub fn replication_backfill_id(&self) -> ::std::option::Option<&str> {
        self.replication_backfill_id.as_deref()
    }
    /// <p>The registry ID associated with the request.</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()
    }
    /// <p>The current status of the replication backfill. A newly started replication backfill is returned with a status of <code>PREPARING</code>.</p>
    pub fn status(&self) -> ::std::option::Option<&crate::types::ReplicationBackfillStatus> {
        self.status.as_ref()
    }
    /// <p>The date and time, in JavaScript date format, when the replication backfill was started.</p>
    pub fn started_at(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
        self.started_at.as_ref()
    }
}
impl ::aws_types::request_id::RequestId for StartReplicationBackfillOutput {
    fn request_id(&self) -> Option<&str> {
        self._request_id.as_deref()
    }
}
impl StartReplicationBackfillOutput {
    /// Creates a new builder-style object to manufacture [`StartReplicationBackfillOutput`](crate::operation::start_replication_backfill::StartReplicationBackfillOutput).
    pub fn builder() -> crate::operation::start_replication_backfill::builders::StartReplicationBackfillOutputBuilder {
        crate::operation::start_replication_backfill::builders::StartReplicationBackfillOutputBuilder::default()
    }
}

/// A builder for [`StartReplicationBackfillOutput`](crate::operation::start_replication_backfill::StartReplicationBackfillOutput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct StartReplicationBackfillOutputBuilder {
    pub(crate) replication_backfill_id: ::std::option::Option<::std::string::String>,
    pub(crate) registry_id: ::std::option::Option<::std::string::String>,
    pub(crate) destination: ::std::option::Option<crate::types::ReplicationDestination>,
    pub(crate) status: ::std::option::Option<crate::types::ReplicationBackfillStatus>,
    pub(crate) started_at: ::std::option::Option<::aws_smithy_types::DateTime>,
    _request_id: Option<String>,
}
impl StartReplicationBackfillOutputBuilder {
    /// <p>The ID of the replication backfill that was started. Use this value to describe or stop the backfill.</p>
    pub fn replication_backfill_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.replication_backfill_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The ID of the replication backfill that was started. Use this value to describe or stop the backfill.</p>
    pub fn set_replication_backfill_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.replication_backfill_id = input;
        self
    }
    /// <p>The ID of the replication backfill that was started. Use this value to describe or stop the backfill.</p>
    pub fn get_replication_backfill_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.replication_backfill_id
    }
    /// <p>The registry ID associated with the request.</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 registry ID associated with the request.</p>
    pub fn set_registry_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.registry_id = input;
        self
    }
    /// <p>The registry ID associated with the request.</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>
    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
    }
    /// <p>The current status of the replication backfill. A newly started replication backfill is returned with a status of <code>PREPARING</code>.</p>
    pub fn status(mut self, input: crate::types::ReplicationBackfillStatus) -> Self {
        self.status = ::std::option::Option::Some(input);
        self
    }
    /// <p>The current status of the replication backfill. A newly started replication backfill is returned with a status of <code>PREPARING</code>.</p>
    pub fn set_status(mut self, input: ::std::option::Option<crate::types::ReplicationBackfillStatus>) -> Self {
        self.status = input;
        self
    }
    /// <p>The current status of the replication backfill. A newly started replication backfill is returned with a status of <code>PREPARING</code>.</p>
    pub fn get_status(&self) -> &::std::option::Option<crate::types::ReplicationBackfillStatus> {
        &self.status
    }
    /// <p>The date and time, in JavaScript date format, when the replication backfill was started.</p>
    pub fn started_at(mut self, input: ::aws_smithy_types::DateTime) -> Self {
        self.started_at = ::std::option::Option::Some(input);
        self
    }
    /// <p>The date and time, in JavaScript date format, when the replication backfill was started.</p>
    pub fn set_started_at(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
        self.started_at = input;
        self
    }
    /// <p>The date and time, in JavaScript date format, when the replication backfill was started.</p>
    pub fn get_started_at(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
        &self.started_at
    }
    pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
        self._request_id = Some(request_id.into());
        self
    }

    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
        self._request_id = request_id;
        self
    }
    /// Consumes the builder and constructs a [`StartReplicationBackfillOutput`](crate::operation::start_replication_backfill::StartReplicationBackfillOutput).
    pub fn build(self) -> crate::operation::start_replication_backfill::StartReplicationBackfillOutput {
        crate::operation::start_replication_backfill::StartReplicationBackfillOutput {
            replication_backfill_id: self.replication_backfill_id,
            registry_id: self.registry_id,
            destination: self.destination,
            status: self.status,
            started_at: self.started_at,
            _request_id: self._request_id,
        }
    }
}