#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DescribeMatchmakingInput {
#[doc(hidden)]
pub ticket_ids: std::option::Option<std::vec::Vec<std::string::String>>,
}
impl DescribeMatchmakingInput {
pub fn ticket_ids(&self) -> std::option::Option<&[std::string::String]> {
self.ticket_ids.as_deref()
}
}
impl DescribeMatchmakingInput {
pub fn builder(
) -> crate::operation::describe_matchmaking::builders::DescribeMatchmakingInputBuilder {
crate::operation::describe_matchmaking::builders::DescribeMatchmakingInputBuilder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct DescribeMatchmakingInputBuilder {
pub(crate) ticket_ids: std::option::Option<std::vec::Vec<std::string::String>>,
}
impl DescribeMatchmakingInputBuilder {
pub fn ticket_ids(mut self, input: impl Into<std::string::String>) -> Self {
let mut v = self.ticket_ids.unwrap_or_default();
v.push(input.into());
self.ticket_ids = Some(v);
self
}
pub fn set_ticket_ids(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.ticket_ids = input;
self
}
pub fn build(
self,
) -> Result<
crate::operation::describe_matchmaking::DescribeMatchmakingInput,
aws_smithy_http::operation::error::BuildError,
> {
Ok(
crate::operation::describe_matchmaking::DescribeMatchmakingInput {
ticket_ids: self.ticket_ids,
},
)
}
}