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 ClaimGameServerOutput {
    /// <p>Object that describes the newly claimed game server.</p>
    #[doc(hidden)]
    pub game_server: std::option::Option<crate::types::GameServer>,
    _request_id: Option<String>,
}
impl ClaimGameServerOutput {
    /// <p>Object that describes the newly claimed game server.</p>
    pub fn game_server(&self) -> std::option::Option<&crate::types::GameServer> {
        self.game_server.as_ref()
    }
}
impl aws_http::request_id::RequestId for ClaimGameServerOutput {
    fn request_id(&self) -> Option<&str> {
        self._request_id.as_deref()
    }
}
impl ClaimGameServerOutput {
    /// Creates a new builder-style object to manufacture [`ClaimGameServerOutput`](crate::operation::claim_game_server::ClaimGameServerOutput).
    pub fn builder() -> crate::operation::claim_game_server::builders::ClaimGameServerOutputBuilder
    {
        crate::operation::claim_game_server::builders::ClaimGameServerOutputBuilder::default()
    }
}

/// A builder for [`ClaimGameServerOutput`](crate::operation::claim_game_server::ClaimGameServerOutput).
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct ClaimGameServerOutputBuilder {
    pub(crate) game_server: std::option::Option<crate::types::GameServer>,
    _request_id: Option<String>,
}
impl ClaimGameServerOutputBuilder {
    /// <p>Object that describes the newly claimed game server.</p>
    pub fn game_server(mut self, input: crate::types::GameServer) -> Self {
        self.game_server = Some(input);
        self
    }
    /// <p>Object that describes the newly claimed game server.</p>
    pub fn set_game_server(mut self, input: std::option::Option<crate::types::GameServer>) -> Self {
        self.game_server = input;
        self
    }
    pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
        self._request_id = Some(request_id.into());
        self
    }

    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
        self._request_id = request_id;
        self
    }
    /// Consumes the builder and constructs a [`ClaimGameServerOutput`](crate::operation::claim_game_server::ClaimGameServerOutput).
    pub fn build(self) -> crate::operation::claim_game_server::ClaimGameServerOutput {
        crate::operation::claim_game_server::ClaimGameServerOutput {
            game_server: self.game_server,
            _request_id: self._request_id,
        }
    }
}