aws-sdk-backup 1.110.0

AWS SDK for AWS Backup
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 DisassociateRecoveryPointInput {
    /// <p>The unique name of an Backup vault.</p>
    pub backup_vault_name: ::std::option::Option<::std::string::String>,
    /// <p>An Amazon Resource Name (ARN) that uniquely identifies an Backup recovery point.</p>
    pub recovery_point_arn: ::std::option::Option<::std::string::String>,
}
impl DisassociateRecoveryPointInput {
    /// <p>The unique name of an Backup vault.</p>
    pub fn backup_vault_name(&self) -> ::std::option::Option<&str> {
        self.backup_vault_name.as_deref()
    }
    /// <p>An Amazon Resource Name (ARN) that uniquely identifies an Backup recovery point.</p>
    pub fn recovery_point_arn(&self) -> ::std::option::Option<&str> {
        self.recovery_point_arn.as_deref()
    }
}
impl DisassociateRecoveryPointInput {
    /// Creates a new builder-style object to manufacture [`DisassociateRecoveryPointInput`](crate::operation::disassociate_recovery_point::DisassociateRecoveryPointInput).
    pub fn builder() -> crate::operation::disassociate_recovery_point::builders::DisassociateRecoveryPointInputBuilder {
        crate::operation::disassociate_recovery_point::builders::DisassociateRecoveryPointInputBuilder::default()
    }
}

/// A builder for [`DisassociateRecoveryPointInput`](crate::operation::disassociate_recovery_point::DisassociateRecoveryPointInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DisassociateRecoveryPointInputBuilder {
    pub(crate) backup_vault_name: ::std::option::Option<::std::string::String>,
    pub(crate) recovery_point_arn: ::std::option::Option<::std::string::String>,
}
impl DisassociateRecoveryPointInputBuilder {
    /// <p>The unique name of an Backup vault.</p>
    /// This field is required.
    pub fn backup_vault_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.backup_vault_name = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The unique name of an Backup vault.</p>
    pub fn set_backup_vault_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.backup_vault_name = input;
        self
    }
    /// <p>The unique name of an Backup vault.</p>
    pub fn get_backup_vault_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.backup_vault_name
    }
    /// <p>An Amazon Resource Name (ARN) that uniquely identifies an Backup recovery point.</p>
    /// This field is required.
    pub fn recovery_point_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.recovery_point_arn = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>An Amazon Resource Name (ARN) that uniquely identifies an Backup recovery point.</p>
    pub fn set_recovery_point_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.recovery_point_arn = input;
        self
    }
    /// <p>An Amazon Resource Name (ARN) that uniquely identifies an Backup recovery point.</p>
    pub fn get_recovery_point_arn(&self) -> &::std::option::Option<::std::string::String> {
        &self.recovery_point_arn
    }
    /// Consumes the builder and constructs a [`DisassociateRecoveryPointInput`](crate::operation::disassociate_recovery_point::DisassociateRecoveryPointInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<
        crate::operation::disassociate_recovery_point::DisassociateRecoveryPointInput,
        ::aws_smithy_types::error::operation::BuildError,
    > {
        ::std::result::Result::Ok(crate::operation::disassociate_recovery_point::DisassociateRecoveryPointInput {
            backup_vault_name: self.backup_vault_name,
            recovery_point_arn: self.recovery_point_arn,
        })
    }
}