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 DeregisterComputeInput {
    /// <p>&gt;A unique identifier for the fleet the compute resource is registered to.</p>
    #[doc(hidden)]
    pub fleet_id: std::option::Option<std::string::String>,
    /// <p>The name of the compute resource you want to delete.</p>
    #[doc(hidden)]
    pub compute_name: std::option::Option<std::string::String>,
}
impl DeregisterComputeInput {
    /// <p>&gt;A unique identifier for the fleet the compute resource is registered to.</p>
    pub fn fleet_id(&self) -> std::option::Option<&str> {
        self.fleet_id.as_deref()
    }
    /// <p>The name of the compute resource you want to delete.</p>
    pub fn compute_name(&self) -> std::option::Option<&str> {
        self.compute_name.as_deref()
    }
}
impl DeregisterComputeInput {
    /// Creates a new builder-style object to manufacture [`DeregisterComputeInput`](crate::operation::deregister_compute::DeregisterComputeInput).
    pub fn builder() -> crate::operation::deregister_compute::builders::DeregisterComputeInputBuilder
    {
        crate::operation::deregister_compute::builders::DeregisterComputeInputBuilder::default()
    }
}

/// A builder for [`DeregisterComputeInput`](crate::operation::deregister_compute::DeregisterComputeInput).
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct DeregisterComputeInputBuilder {
    pub(crate) fleet_id: std::option::Option<std::string::String>,
    pub(crate) compute_name: std::option::Option<std::string::String>,
}
impl DeregisterComputeInputBuilder {
    /// <p>&gt;A unique identifier for the fleet the compute resource is registered to.</p>
    pub fn fleet_id(mut self, input: impl Into<std::string::String>) -> Self {
        self.fleet_id = Some(input.into());
        self
    }
    /// <p>&gt;A unique identifier for the fleet the compute resource is registered to.</p>
    pub fn set_fleet_id(mut self, input: std::option::Option<std::string::String>) -> Self {
        self.fleet_id = input;
        self
    }
    /// <p>The name of the compute resource you want to delete.</p>
    pub fn compute_name(mut self, input: impl Into<std::string::String>) -> Self {
        self.compute_name = Some(input.into());
        self
    }
    /// <p>The name of the compute resource you want to delete.</p>
    pub fn set_compute_name(mut self, input: std::option::Option<std::string::String>) -> Self {
        self.compute_name = input;
        self
    }
    /// Consumes the builder and constructs a [`DeregisterComputeInput`](crate::operation::deregister_compute::DeregisterComputeInput).
    pub fn build(
        self,
    ) -> Result<
        crate::operation::deregister_compute::DeregisterComputeInput,
        aws_smithy_http::operation::error::BuildError,
    > {
        Ok(
            crate::operation::deregister_compute::DeregisterComputeInput {
                fleet_id: self.fleet_id,
                compute_name: self.compute_name,
            },
        )
    }
}