aws-sdk-gamelift 1.119.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 DescribeFleetDeploymentInput {
    /// <p>A unique identifier for the container fleet. You can use either the fleet ID or ARN value.</p>
    pub fleet_id: ::std::option::Option<::std::string::String>,
    /// <p>A unique identifier for the deployment to return information for.</p>
    pub deployment_id: ::std::option::Option<::std::string::String>,
}
impl DescribeFleetDeploymentInput {
    /// <p>A unique identifier for the container fleet. You can use either the fleet ID or ARN value.</p>
    pub fn fleet_id(&self) -> ::std::option::Option<&str> {
        self.fleet_id.as_deref()
    }
    /// <p>A unique identifier for the deployment to return information for.</p>
    pub fn deployment_id(&self) -> ::std::option::Option<&str> {
        self.deployment_id.as_deref()
    }
}
impl DescribeFleetDeploymentInput {
    /// Creates a new builder-style object to manufacture [`DescribeFleetDeploymentInput`](crate::operation::describe_fleet_deployment::DescribeFleetDeploymentInput).
    pub fn builder() -> crate::operation::describe_fleet_deployment::builders::DescribeFleetDeploymentInputBuilder {
        crate::operation::describe_fleet_deployment::builders::DescribeFleetDeploymentInputBuilder::default()
    }
}

/// A builder for [`DescribeFleetDeploymentInput`](crate::operation::describe_fleet_deployment::DescribeFleetDeploymentInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DescribeFleetDeploymentInputBuilder {
    pub(crate) fleet_id: ::std::option::Option<::std::string::String>,
    pub(crate) deployment_id: ::std::option::Option<::std::string::String>,
}
impl DescribeFleetDeploymentInputBuilder {
    /// <p>A unique identifier for the container fleet. You can use either the fleet ID or ARN value.</p>
    /// This field is required.
    pub fn fleet_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.fleet_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>A unique identifier for the container fleet. You can use either the fleet ID or ARN value.</p>
    pub fn set_fleet_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.fleet_id = input;
        self
    }
    /// <p>A unique identifier for the container fleet. You can use either the fleet ID or ARN value.</p>
    pub fn get_fleet_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.fleet_id
    }
    /// <p>A unique identifier for the deployment to return information for.</p>
    pub fn deployment_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.deployment_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>A unique identifier for the deployment to return information for.</p>
    pub fn set_deployment_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.deployment_id = input;
        self
    }
    /// <p>A unique identifier for the deployment to return information for.</p>
    pub fn get_deployment_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.deployment_id
    }
    /// Consumes the builder and constructs a [`DescribeFleetDeploymentInput`](crate::operation::describe_fleet_deployment::DescribeFleetDeploymentInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<
        crate::operation::describe_fleet_deployment::DescribeFleetDeploymentInput,
        ::aws_smithy_types::error::operation::BuildError,
    > {
        ::std::result::Result::Ok(crate::operation::describe_fleet_deployment::DescribeFleetDeploymentInput {
            fleet_id: self.fleet_id,
            deployment_id: self.deployment_id,
        })
    }
}