#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct StopMatchmakingInput {
#[doc(hidden)]
pub ticket_id: std::option::Option<std::string::String>,
}
impl StopMatchmakingInput {
pub fn ticket_id(&self) -> std::option::Option<&str> {
self.ticket_id.as_deref()
}
}
impl StopMatchmakingInput {
pub fn builder() -> crate::operation::stop_matchmaking::builders::StopMatchmakingInputBuilder {
crate::operation::stop_matchmaking::builders::StopMatchmakingInputBuilder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct StopMatchmakingInputBuilder {
pub(crate) ticket_id: std::option::Option<std::string::String>,
}
impl StopMatchmakingInputBuilder {
pub fn ticket_id(mut self, input: impl Into<std::string::String>) -> Self {
self.ticket_id = Some(input.into());
self
}
pub fn set_ticket_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.ticket_id = input;
self
}
pub fn build(
self,
) -> Result<
crate::operation::stop_matchmaking::StopMatchmakingInput,
aws_smithy_http::operation::error::BuildError,
> {
Ok(crate::operation::stop_matchmaking::StopMatchmakingInput {
ticket_id: self.ticket_id,
})
}
}