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 ResolveAliasInput {
    /// <p>The unique identifier of the alias that you want to retrieve a fleet ID for. You can use either the alias ID or ARN value.</p>
    #[doc(hidden)]
    pub alias_id: std::option::Option<std::string::String>,
}
impl ResolveAliasInput {
    /// <p>The unique identifier of the alias that you want to retrieve a fleet ID for. 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 ResolveAliasInput {
    /// Creates a new builder-style object to manufacture [`ResolveAliasInput`](crate::operation::resolve_alias::ResolveAliasInput).
    pub fn builder() -> crate::operation::resolve_alias::builders::ResolveAliasInputBuilder {
        crate::operation::resolve_alias::builders::ResolveAliasInputBuilder::default()
    }
}

/// A builder for [`ResolveAliasInput`](crate::operation::resolve_alias::ResolveAliasInput).
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct ResolveAliasInputBuilder {
    pub(crate) alias_id: std::option::Option<std::string::String>,
}
impl ResolveAliasInputBuilder {
    /// <p>The unique identifier of the alias that you want to retrieve a fleet ID for. 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>The unique identifier of the alias that you want to retrieve a fleet ID for. 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 [`ResolveAliasInput`](crate::operation::resolve_alias::ResolveAliasInput).
    pub fn build(
        self,
    ) -> Result<
        crate::operation::resolve_alias::ResolveAliasInput,
        aws_smithy_http::operation::error::BuildError,
    > {
        Ok(crate::operation::resolve_alias::ResolveAliasInput {
            alias_id: self.alias_id,
        })
    }
}