aws-sdk-gamelift 0.26.0

AWS SDK for Amazon GameLift
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 DeleteAliasInput {
    /// <p>A unique identifier of the alias that you want to delete. You can use either the alias ID or ARN value.</p>
    #[doc(hidden)]
    pub alias_id: std::option::Option<std::string::String>,
}
impl DeleteAliasInput {
    /// <p>A unique identifier of the alias that you want to delete. You can use either the alias ID or ARN value.</p>
    pub fn alias_id(&self) -> std::option::Option<&str> {
        self.alias_id.as_deref()
    }
}
impl DeleteAliasInput {
    /// Creates a new builder-style object to manufacture [`DeleteAliasInput`](crate::operation::delete_alias::DeleteAliasInput).
    pub fn builder() -> crate::operation::delete_alias::builders::DeleteAliasInputBuilder {
        crate::operation::delete_alias::builders::DeleteAliasInputBuilder::default()
    }
}

/// A builder for [`DeleteAliasInput`](crate::operation::delete_alias::DeleteAliasInput).
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct DeleteAliasInputBuilder {
    pub(crate) alias_id: std::option::Option<std::string::String>,
}
impl DeleteAliasInputBuilder {
    /// <p>A unique identifier of the alias that you want to delete. You can use either the alias ID or ARN value.</p>
    pub fn alias_id(mut self, input: impl Into<std::string::String>) -> Self {
        self.alias_id = Some(input.into());
        self
    }
    /// <p>A unique identifier of the alias that you want to delete. You can use either the alias ID or ARN value.</p>
    pub fn set_alias_id(mut self, input: std::option::Option<std::string::String>) -> Self {
        self.alias_id = input;
        self
    }
    /// Consumes the builder and constructs a [`DeleteAliasInput`](crate::operation::delete_alias::DeleteAliasInput).
    pub fn build(
        self,
    ) -> Result<
        crate::operation::delete_alias::DeleteAliasInput,
        aws_smithy_http::operation::error::BuildError,
    > {
        Ok(crate::operation::delete_alias::DeleteAliasInput {
            alias_id: self.alias_id,
        })
    }
}