aws-sdk-imagebuilder 1.110.0

AWS SDK for EC2 Image Builder
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 DeleteInfrastructureConfigurationInput {
    /// <p>The Amazon Resource Name (ARN) of the infrastructure configuration to delete.</p>
    pub infrastructure_configuration_arn: ::std::option::Option<::std::string::String>,
}
impl DeleteInfrastructureConfigurationInput {
    /// <p>The Amazon Resource Name (ARN) of the infrastructure configuration to delete.</p>
    pub fn infrastructure_configuration_arn(&self) -> ::std::option::Option<&str> {
        self.infrastructure_configuration_arn.as_deref()
    }
}
impl DeleteInfrastructureConfigurationInput {
    /// Creates a new builder-style object to manufacture [`DeleteInfrastructureConfigurationInput`](crate::operation::delete_infrastructure_configuration::DeleteInfrastructureConfigurationInput).
    pub fn builder() -> crate::operation::delete_infrastructure_configuration::builders::DeleteInfrastructureConfigurationInputBuilder {
        crate::operation::delete_infrastructure_configuration::builders::DeleteInfrastructureConfigurationInputBuilder::default()
    }
}

/// A builder for [`DeleteInfrastructureConfigurationInput`](crate::operation::delete_infrastructure_configuration::DeleteInfrastructureConfigurationInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DeleteInfrastructureConfigurationInputBuilder {
    pub(crate) infrastructure_configuration_arn: ::std::option::Option<::std::string::String>,
}
impl DeleteInfrastructureConfigurationInputBuilder {
    /// <p>The Amazon Resource Name (ARN) of the infrastructure configuration to delete.</p>
    /// This field is required.
    pub fn infrastructure_configuration_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.infrastructure_configuration_arn = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The Amazon Resource Name (ARN) of the infrastructure configuration to delete.</p>
    pub fn set_infrastructure_configuration_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.infrastructure_configuration_arn = input;
        self
    }
    /// <p>The Amazon Resource Name (ARN) of the infrastructure configuration to delete.</p>
    pub fn get_infrastructure_configuration_arn(&self) -> &::std::option::Option<::std::string::String> {
        &self.infrastructure_configuration_arn
    }
    /// Consumes the builder and constructs a [`DeleteInfrastructureConfigurationInput`](crate::operation::delete_infrastructure_configuration::DeleteInfrastructureConfigurationInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<
        crate::operation::delete_infrastructure_configuration::DeleteInfrastructureConfigurationInput,
        ::aws_smithy_types::error::operation::BuildError,
    > {
        ::std::result::Result::Ok(
            crate::operation::delete_infrastructure_configuration::DeleteInfrastructureConfigurationInput {
                infrastructure_configuration_arn: self.infrastructure_configuration_arn,
            },
        )
    }
}