aws-sdk-backupexternal 1.0.0

AWS SDK for AWS Backup External
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 DeleteApplianceInput {
    /// The Amazon Resource Name (ARN) of the appliance.
    pub appliance_arn: ::std::option::Option<::std::string::String>,
    /// Specifies whether to delete the appliance without waiting for the appliance to confirm the deletion. You can force deletion only when the appliance management status is `DISCONNECTED` or `DELETE_FAILED`.
    pub force: ::std::option::Option<bool>,
}
impl DeleteApplianceInput {
    /// The Amazon Resource Name (ARN) of the appliance.
    pub fn appliance_arn(&self) -> ::std::option::Option<&str> {
        self.appliance_arn.as_deref()
    }
    /// Specifies whether to delete the appliance without waiting for the appliance to confirm the deletion. You can force deletion only when the appliance management status is `DISCONNECTED` or `DELETE_FAILED`.
    pub fn force(&self) -> ::std::option::Option<bool> {
        self.force
    }
}
impl DeleteApplianceInput {
    /// Creates a new builder-style object to manufacture [`DeleteApplianceInput`](crate::operation::delete_appliance::DeleteApplianceInput).
    pub fn builder() -> crate::operation::delete_appliance::builders::DeleteApplianceInputBuilder {
        crate::operation::delete_appliance::builders::DeleteApplianceInputBuilder::default()
    }
}

/// A builder for [`DeleteApplianceInput`](crate::operation::delete_appliance::DeleteApplianceInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DeleteApplianceInputBuilder {
    pub(crate) appliance_arn: ::std::option::Option<::std::string::String>,
    pub(crate) force: ::std::option::Option<bool>,
}
impl DeleteApplianceInputBuilder {
    /// The Amazon Resource Name (ARN) of the appliance.
    /// This field is required.
    pub fn appliance_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.appliance_arn = ::std::option::Option::Some(input.into());
        self
    }
    /// The Amazon Resource Name (ARN) of the appliance.
    pub fn set_appliance_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.appliance_arn = input;
        self
    }
    /// The Amazon Resource Name (ARN) of the appliance.
    pub fn get_appliance_arn(&self) -> &::std::option::Option<::std::string::String> {
        &self.appliance_arn
    }
    /// Specifies whether to delete the appliance without waiting for the appliance to confirm the deletion. You can force deletion only when the appliance management status is `DISCONNECTED` or `DELETE_FAILED`.
    pub fn force(mut self, input: bool) -> Self {
        self.force = ::std::option::Option::Some(input);
        self
    }
    /// Specifies whether to delete the appliance without waiting for the appliance to confirm the deletion. You can force deletion only when the appliance management status is `DISCONNECTED` or `DELETE_FAILED`.
    pub fn set_force(mut self, input: ::std::option::Option<bool>) -> Self {
        self.force = input;
        self
    }
    /// Specifies whether to delete the appliance without waiting for the appliance to confirm the deletion. You can force deletion only when the appliance management status is `DISCONNECTED` or `DELETE_FAILED`.
    pub fn get_force(&self) -> &::std::option::Option<bool> {
        &self.force
    }
    /// Consumes the builder and constructs a [`DeleteApplianceInput`](crate::operation::delete_appliance::DeleteApplianceInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::delete_appliance::DeleteApplianceInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::delete_appliance::DeleteApplianceInput {
            appliance_arn: self.appliance_arn,
            force: self.force,
        })
    }
}