#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
pub struct CreateParty {
_private: (),
}
impl CreateParty {
pub fn builder() -> crate::input::create_party_input::Builder {
crate::input::create_party_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for CreateParty {
type Output =
std::result::Result<crate::output::CreatePartyOutput, crate::error::CreatePartyError>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_create_party_error(response)
} else {
crate::operation_deser::parse_create_party_response(response)
}
}
}
#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
pub struct CreatePartyInvite {
_private: (),
}
impl CreatePartyInvite {
pub fn builder() -> crate::input::create_party_invite_input::Builder {
crate::input::create_party_invite_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for CreatePartyInvite {
type Output = std::result::Result<
crate::output::CreatePartyInviteOutput,
crate::error::CreatePartyInviteError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_create_party_invite_error(response)
} else {
crate::operation_deser::parse_create_party_invite_response(response)
}
}
}
#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
pub struct GetPartyFromInvite {
_private: (),
}
impl GetPartyFromInvite {
pub fn builder() -> crate::input::get_party_from_invite_input::Builder {
crate::input::get_party_from_invite_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for GetPartyFromInvite {
type Output = std::result::Result<
crate::output::GetPartyFromInviteOutput,
crate::error::GetPartyFromInviteError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_get_party_from_invite_error(response)
} else {
crate::operation_deser::parse_get_party_from_invite_response(response)
}
}
}
#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
pub struct GetPartyProfile {
_private: (),
}
impl GetPartyProfile {
pub fn builder() -> crate::input::get_party_profile_input::Builder {
crate::input::get_party_profile_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for GetPartyProfile {
type Output = std::result::Result<
crate::output::GetPartyProfileOutput,
crate::error::GetPartyProfileError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_get_party_profile_error(response)
} else {
crate::operation_deser::parse_get_party_profile_response(response)
}
}
}
#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
pub struct GetPartySelfProfile {
_private: (),
}
impl GetPartySelfProfile {
pub fn builder() -> crate::input::get_party_self_profile_input::Builder {
crate::input::get_party_self_profile_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for GetPartySelfProfile {
type Output = std::result::Result<
crate::output::GetPartySelfProfileOutput,
crate::error::GetPartySelfProfileError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_get_party_self_profile_error(response)
} else {
crate::operation_deser::parse_get_party_self_profile_response(response)
}
}
}
#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
pub struct GetPartySelfSummary {
_private: (),
}
impl GetPartySelfSummary {
pub fn builder() -> crate::input::get_party_self_summary_input::Builder {
crate::input::get_party_self_summary_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for GetPartySelfSummary {
type Output = std::result::Result<
crate::output::GetPartySelfSummaryOutput,
crate::error::GetPartySelfSummaryError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_get_party_self_summary_error(response)
} else {
crate::operation_deser::parse_get_party_self_summary_response(response)
}
}
}
#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
pub struct GetPartySummary {
_private: (),
}
impl GetPartySummary {
pub fn builder() -> crate::input::get_party_summary_input::Builder {
crate::input::get_party_summary_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for GetPartySummary {
type Output = std::result::Result<
crate::output::GetPartySummaryOutput,
crate::error::GetPartySummaryError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_get_party_summary_error(response)
} else {
crate::operation_deser::parse_get_party_summary_response(response)
}
}
}
#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
pub struct JoinParty {
_private: (),
}
impl JoinParty {
pub fn builder() -> crate::input::join_party_input::Builder {
crate::input::join_party_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for JoinParty {
type Output = std::result::Result<crate::output::JoinPartyOutput, crate::error::JoinPartyError>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_join_party_error(response)
} else {
crate::operation_deser::parse_join_party_response(response)
}
}
}
#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
pub struct KickMember {
_private: (),
}
impl KickMember {
pub fn builder() -> crate::input::kick_member_input::Builder {
crate::input::kick_member_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for KickMember {
type Output =
std::result::Result<crate::output::KickMemberOutput, crate::error::KickMemberError>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_kick_member_error(response)
} else {
crate::operation_deser::parse_kick_member_response(response)
}
}
}
#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
pub struct LeaveParty {
_private: (),
}
impl LeaveParty {
pub fn builder() -> crate::input::leave_party_input::Builder {
crate::input::leave_party_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for LeaveParty {
type Output =
std::result::Result<crate::output::LeavePartyOutput, crate::error::LeavePartyError>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_leave_party_error(response)
} else {
crate::operation_deser::parse_leave_party_response(response)
}
}
}
#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
pub struct RevokePartyInvite {
_private: (),
}
impl RevokePartyInvite {
pub fn builder() -> crate::input::revoke_party_invite_input::Builder {
crate::input::revoke_party_invite_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for RevokePartyInvite {
type Output = std::result::Result<
crate::output::RevokePartyInviteOutput,
crate::error::RevokePartyInviteError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_revoke_party_invite_error(response)
} else {
crate::operation_deser::parse_revoke_party_invite_response(response)
}
}
}
#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
pub struct SendJoinRequest {
_private: (),
}
impl SendJoinRequest {
pub fn builder() -> crate::input::send_join_request_input::Builder {
crate::input::send_join_request_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for SendJoinRequest {
type Output = std::result::Result<
crate::output::SendJoinRequestOutput,
crate::error::SendJoinRequestError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_send_join_request_error(response)
} else {
crate::operation_deser::parse_send_join_request_response(response)
}
}
}
#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
pub struct SetPartyPublicity {
_private: (),
}
impl SetPartyPublicity {
pub fn builder() -> crate::input::set_party_publicity_input::Builder {
crate::input::set_party_publicity_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for SetPartyPublicity {
type Output = std::result::Result<
crate::output::SetPartyPublicityOutput,
crate::error::SetPartyPublicityError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_set_party_publicity_error(response)
} else {
crate::operation_deser::parse_set_party_publicity_response(response)
}
}
}
#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
pub struct TransferPartyOwnership {
_private: (),
}
impl TransferPartyOwnership {
pub fn builder() -> crate::input::transfer_party_ownership_input::Builder {
crate::input::transfer_party_ownership_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for TransferPartyOwnership {
type Output = std::result::Result<
crate::output::TransferPartyOwnershipOutput,
crate::error::TransferPartyOwnershipError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_transfer_party_ownership_error(response)
} else {
crate::operation_deser::parse_transfer_party_ownership_response(response)
}
}
}
#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
pub struct FindMatchmakerLobbyForParty {
_private: (),
}
impl FindMatchmakerLobbyForParty {
pub fn builder() -> crate::input::find_matchmaker_lobby_for_party_input::Builder {
crate::input::find_matchmaker_lobby_for_party_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for FindMatchmakerLobbyForParty {
type Output = std::result::Result<
crate::output::FindMatchmakerLobbyForPartyOutput,
crate::error::FindMatchmakerLobbyForPartyError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_find_matchmaker_lobby_for_party_error(response)
} else {
crate::operation_deser::parse_find_matchmaker_lobby_for_party_response(response)
}
}
}
#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
pub struct JoinMatchmakerLobbyForParty {
_private: (),
}
impl JoinMatchmakerLobbyForParty {
pub fn builder() -> crate::input::join_matchmaker_lobby_for_party_input::Builder {
crate::input::join_matchmaker_lobby_for_party_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for JoinMatchmakerLobbyForParty {
type Output = std::result::Result<
crate::output::JoinMatchmakerLobbyForPartyOutput,
crate::error::JoinMatchmakerLobbyForPartyError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_join_matchmaker_lobby_for_party_error(response)
} else {
crate::operation_deser::parse_join_matchmaker_lobby_for_party_response(response)
}
}
}
#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
pub struct RequestMatchmakerPlayer {
_private: (),
}
impl RequestMatchmakerPlayer {
pub fn builder() -> crate::input::request_matchmaker_player_input::Builder {
crate::input::request_matchmaker_player_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for RequestMatchmakerPlayer {
type Output = std::result::Result<
crate::output::RequestMatchmakerPlayerOutput,
crate::error::RequestMatchmakerPlayerError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_request_matchmaker_player_error(response)
} else {
crate::operation_deser::parse_request_matchmaker_player_response(response)
}
}
}
#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
pub struct SetPartyToIdle {
_private: (),
}
impl SetPartyToIdle {
pub fn builder() -> crate::input::set_party_to_idle_input::Builder {
crate::input::set_party_to_idle_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for SetPartyToIdle {
type Output =
std::result::Result<crate::output::SetPartyToIdleOutput, crate::error::SetPartyToIdleError>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_set_party_to_idle_error(response)
} else {
crate::operation_deser::parse_set_party_to_idle_response(response)
}
}
}