aws_sdk_gamelift/client/
accept_match.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`AcceptMatch`](crate::operation::accept_match::builders::AcceptMatchFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`ticket_id(impl Into<String>)`](crate::operation::accept_match::builders::AcceptMatchFluentBuilder::ticket_id) / [`set_ticket_id(Option<String>)`](crate::operation::accept_match::builders::AcceptMatchFluentBuilder::set_ticket_id):<br>required: **true**<br><p>A unique identifier for a matchmaking ticket. The ticket must be in status <code>REQUIRES_ACCEPTANCE</code>; otherwise this request will fail.</p><br>
7    ///   - [`player_ids(impl Into<String>)`](crate::operation::accept_match::builders::AcceptMatchFluentBuilder::player_ids) / [`set_player_ids(Option<Vec::<String>>)`](crate::operation::accept_match::builders::AcceptMatchFluentBuilder::set_player_ids):<br>required: **true**<br><p>A unique identifier for a player delivering the response. This parameter can include one or multiple player IDs.</p><br>
8    ///   - [`acceptance_type(AcceptanceType)`](crate::operation::accept_match::builders::AcceptMatchFluentBuilder::acceptance_type) / [`set_acceptance_type(Option<AcceptanceType>)`](crate::operation::accept_match::builders::AcceptMatchFluentBuilder::set_acceptance_type):<br>required: **true**<br><p>Player response to the proposed match.</p><br>
9    /// - On success, responds with [`AcceptMatchOutput`](crate::operation::accept_match::AcceptMatchOutput)
10    /// - On failure, responds with [`SdkError<AcceptMatchError>`](crate::operation::accept_match::AcceptMatchError)
11    pub fn accept_match(&self) -> crate::operation::accept_match::builders::AcceptMatchFluentBuilder {
12        crate::operation::accept_match::builders::AcceptMatchFluentBuilder::new(self.handle.clone())
13    }
14}