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 DescribeMatchmakingInput {
    /// <p>A unique identifier for a matchmaking ticket. You can include up to 10 ID values.</p>
    pub ticket_ids: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
}
impl DescribeMatchmakingInput {
    /// <p>A unique identifier for a matchmaking ticket. You can include up to 10 ID values.</p>
    ///
    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.ticket_ids.is_none()`.
    pub fn ticket_ids(&self) -> &[::std::string::String] {
        self.ticket_ids.as_deref().unwrap_or_default()
    }
}
impl DescribeMatchmakingInput {
    /// Creates a new builder-style object to manufacture [`DescribeMatchmakingInput`](crate::operation::describe_matchmaking::DescribeMatchmakingInput).
    pub fn builder() -> crate::operation::describe_matchmaking::builders::DescribeMatchmakingInputBuilder {
        crate::operation::describe_matchmaking::builders::DescribeMatchmakingInputBuilder::default()
    }
}

/// A builder for [`DescribeMatchmakingInput`](crate::operation::describe_matchmaking::DescribeMatchmakingInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DescribeMatchmakingInputBuilder {
    pub(crate) ticket_ids: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
}
impl DescribeMatchmakingInputBuilder {
    /// Appends an item to `ticket_ids`.
    ///
    /// To override the contents of this collection use [`set_ticket_ids`](Self::set_ticket_ids).
    ///
    /// <p>A unique identifier for a matchmaking ticket. You can include up to 10 ID values.</p>
    pub fn ticket_ids(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        let mut v = self.ticket_ids.unwrap_or_default();
        v.push(input.into());
        self.ticket_ids = ::std::option::Option::Some(v);
        self
    }
    /// <p>A unique identifier for a matchmaking ticket. You can include up to 10 ID values.</p>
    pub fn set_ticket_ids(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
        self.ticket_ids = input;
        self
    }
    /// <p>A unique identifier for a matchmaking ticket. You can include up to 10 ID values.</p>
    pub fn get_ticket_ids(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
        &self.ticket_ids
    }
    /// Consumes the builder and constructs a [`DescribeMatchmakingInput`](crate::operation::describe_matchmaking::DescribeMatchmakingInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::describe_matchmaking::DescribeMatchmakingInput, ::aws_smithy_types::error::operation::BuildError>
    {
        ::std::result::Result::Ok(crate::operation::describe_matchmaking::DescribeMatchmakingInput { ticket_ids: self.ticket_ids })
    }
}