#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct AssociateChannelFlow {
_private: (),
}
impl AssociateChannelFlow {
pub fn builder() -> crate::input::associate_channel_flow_input::Builder {
crate::input::associate_channel_flow_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for AssociateChannelFlow {
type Output = std::result::Result<
crate::output::AssociateChannelFlowOutput,
crate::error::AssociateChannelFlowError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_associate_channel_flow_error(response)
} else {
crate::operation_deser::parse_associate_channel_flow_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct BatchCreateChannelMembership {
_private: (),
}
impl BatchCreateChannelMembership {
pub fn builder() -> crate::input::batch_create_channel_membership_input::Builder {
crate::input::batch_create_channel_membership_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for BatchCreateChannelMembership {
type Output = std::result::Result<
crate::output::BatchCreateChannelMembershipOutput,
crate::error::BatchCreateChannelMembershipError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_batch_create_channel_membership_error(response)
} else {
crate::operation_deser::parse_batch_create_channel_membership_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct ChannelFlowCallback {
_private: (),
}
impl ChannelFlowCallback {
pub fn builder() -> crate::input::channel_flow_callback_input::Builder {
crate::input::channel_flow_callback_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for ChannelFlowCallback {
type Output = std::result::Result<
crate::output::ChannelFlowCallbackOutput,
crate::error::ChannelFlowCallbackError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_channel_flow_callback_error(response)
} else {
crate::operation_deser::parse_channel_flow_callback_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct CreateChannel {
_private: (),
}
impl CreateChannel {
pub fn builder() -> crate::input::create_channel_input::Builder {
crate::input::create_channel_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for CreateChannel {
type Output =
std::result::Result<crate::output::CreateChannelOutput, crate::error::CreateChannelError>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 201 {
crate::operation_deser::parse_create_channel_error(response)
} else {
crate::operation_deser::parse_create_channel_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct CreateChannelBan {
_private: (),
}
impl CreateChannelBan {
pub fn builder() -> crate::input::create_channel_ban_input::Builder {
crate::input::create_channel_ban_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for CreateChannelBan {
type Output = std::result::Result<
crate::output::CreateChannelBanOutput,
crate::error::CreateChannelBanError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 201 {
crate::operation_deser::parse_create_channel_ban_error(response)
} else {
crate::operation_deser::parse_create_channel_ban_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct CreateChannelFlow {
_private: (),
}
impl CreateChannelFlow {
pub fn builder() -> crate::input::create_channel_flow_input::Builder {
crate::input::create_channel_flow_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for CreateChannelFlow {
type Output = std::result::Result<
crate::output::CreateChannelFlowOutput,
crate::error::CreateChannelFlowError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 201 {
crate::operation_deser::parse_create_channel_flow_error(response)
} else {
crate::operation_deser::parse_create_channel_flow_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct CreateChannelMembership {
_private: (),
}
impl CreateChannelMembership {
pub fn builder() -> crate::input::create_channel_membership_input::Builder {
crate::input::create_channel_membership_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for CreateChannelMembership {
type Output = std::result::Result<
crate::output::CreateChannelMembershipOutput,
crate::error::CreateChannelMembershipError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 201 {
crate::operation_deser::parse_create_channel_membership_error(response)
} else {
crate::operation_deser::parse_create_channel_membership_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct CreateChannelModerator {
_private: (),
}
impl CreateChannelModerator {
pub fn builder() -> crate::input::create_channel_moderator_input::Builder {
crate::input::create_channel_moderator_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for CreateChannelModerator {
type Output = std::result::Result<
crate::output::CreateChannelModeratorOutput,
crate::error::CreateChannelModeratorError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 201 {
crate::operation_deser::parse_create_channel_moderator_error(response)
} else {
crate::operation_deser::parse_create_channel_moderator_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct DeleteChannel {
_private: (),
}
impl DeleteChannel {
pub fn builder() -> crate::input::delete_channel_input::Builder {
crate::input::delete_channel_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for DeleteChannel {
type Output =
std::result::Result<crate::output::DeleteChannelOutput, crate::error::DeleteChannelError>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 204 {
crate::operation_deser::parse_delete_channel_error(response)
} else {
crate::operation_deser::parse_delete_channel_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct DeleteChannelBan {
_private: (),
}
impl DeleteChannelBan {
pub fn builder() -> crate::input::delete_channel_ban_input::Builder {
crate::input::delete_channel_ban_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for DeleteChannelBan {
type Output = std::result::Result<
crate::output::DeleteChannelBanOutput,
crate::error::DeleteChannelBanError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 204 {
crate::operation_deser::parse_delete_channel_ban_error(response)
} else {
crate::operation_deser::parse_delete_channel_ban_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct DeleteChannelFlow {
_private: (),
}
impl DeleteChannelFlow {
pub fn builder() -> crate::input::delete_channel_flow_input::Builder {
crate::input::delete_channel_flow_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for DeleteChannelFlow {
type Output = std::result::Result<
crate::output::DeleteChannelFlowOutput,
crate::error::DeleteChannelFlowError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 204 {
crate::operation_deser::parse_delete_channel_flow_error(response)
} else {
crate::operation_deser::parse_delete_channel_flow_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct DeleteChannelMembership {
_private: (),
}
impl DeleteChannelMembership {
pub fn builder() -> crate::input::delete_channel_membership_input::Builder {
crate::input::delete_channel_membership_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for DeleteChannelMembership {
type Output = std::result::Result<
crate::output::DeleteChannelMembershipOutput,
crate::error::DeleteChannelMembershipError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 204 {
crate::operation_deser::parse_delete_channel_membership_error(response)
} else {
crate::operation_deser::parse_delete_channel_membership_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct DeleteChannelMessage {
_private: (),
}
impl DeleteChannelMessage {
pub fn builder() -> crate::input::delete_channel_message_input::Builder {
crate::input::delete_channel_message_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for DeleteChannelMessage {
type Output = std::result::Result<
crate::output::DeleteChannelMessageOutput,
crate::error::DeleteChannelMessageError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 204 {
crate::operation_deser::parse_delete_channel_message_error(response)
} else {
crate::operation_deser::parse_delete_channel_message_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct DeleteChannelModerator {
_private: (),
}
impl DeleteChannelModerator {
pub fn builder() -> crate::input::delete_channel_moderator_input::Builder {
crate::input::delete_channel_moderator_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for DeleteChannelModerator {
type Output = std::result::Result<
crate::output::DeleteChannelModeratorOutput,
crate::error::DeleteChannelModeratorError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 204 {
crate::operation_deser::parse_delete_channel_moderator_error(response)
} else {
crate::operation_deser::parse_delete_channel_moderator_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct DescribeChannel {
_private: (),
}
impl DescribeChannel {
pub fn builder() -> crate::input::describe_channel_input::Builder {
crate::input::describe_channel_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for DescribeChannel {
type Output = std::result::Result<
crate::output::DescribeChannelOutput,
crate::error::DescribeChannelError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_describe_channel_error(response)
} else {
crate::operation_deser::parse_describe_channel_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct DescribeChannelBan {
_private: (),
}
impl DescribeChannelBan {
pub fn builder() -> crate::input::describe_channel_ban_input::Builder {
crate::input::describe_channel_ban_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for DescribeChannelBan {
type Output = std::result::Result<
crate::output::DescribeChannelBanOutput,
crate::error::DescribeChannelBanError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_describe_channel_ban_error(response)
} else {
crate::operation_deser::parse_describe_channel_ban_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct DescribeChannelFlow {
_private: (),
}
impl DescribeChannelFlow {
pub fn builder() -> crate::input::describe_channel_flow_input::Builder {
crate::input::describe_channel_flow_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for DescribeChannelFlow {
type Output = std::result::Result<
crate::output::DescribeChannelFlowOutput,
crate::error::DescribeChannelFlowError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_describe_channel_flow_error(response)
} else {
crate::operation_deser::parse_describe_channel_flow_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct DescribeChannelMembership {
_private: (),
}
impl DescribeChannelMembership {
pub fn builder() -> crate::input::describe_channel_membership_input::Builder {
crate::input::describe_channel_membership_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for DescribeChannelMembership {
type Output = std::result::Result<
crate::output::DescribeChannelMembershipOutput,
crate::error::DescribeChannelMembershipError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_describe_channel_membership_error(response)
} else {
crate::operation_deser::parse_describe_channel_membership_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct DescribeChannelMembershipForAppInstanceUser {
_private: (),
}
impl DescribeChannelMembershipForAppInstanceUser {
pub fn builder(
) -> crate::input::describe_channel_membership_for_app_instance_user_input::Builder {
crate::input::describe_channel_membership_for_app_instance_user_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse
for DescribeChannelMembershipForAppInstanceUser
{
type Output = std::result::Result<
crate::output::DescribeChannelMembershipForAppInstanceUserOutput,
crate::error::DescribeChannelMembershipForAppInstanceUserError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_describe_channel_membership_for_app_instance_user_error(
response,
)
} else {
crate::operation_deser::parse_describe_channel_membership_for_app_instance_user_response(
response,
)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct DescribeChannelModeratedByAppInstanceUser {
_private: (),
}
impl DescribeChannelModeratedByAppInstanceUser {
pub fn builder() -> crate::input::describe_channel_moderated_by_app_instance_user_input::Builder
{
crate::input::describe_channel_moderated_by_app_instance_user_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for DescribeChannelModeratedByAppInstanceUser {
type Output = std::result::Result<
crate::output::DescribeChannelModeratedByAppInstanceUserOutput,
crate::error::DescribeChannelModeratedByAppInstanceUserError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_describe_channel_moderated_by_app_instance_user_error(
response,
)
} else {
crate::operation_deser::parse_describe_channel_moderated_by_app_instance_user_response(
response,
)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct DescribeChannelModerator {
_private: (),
}
impl DescribeChannelModerator {
pub fn builder() -> crate::input::describe_channel_moderator_input::Builder {
crate::input::describe_channel_moderator_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for DescribeChannelModerator {
type Output = std::result::Result<
crate::output::DescribeChannelModeratorOutput,
crate::error::DescribeChannelModeratorError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_describe_channel_moderator_error(response)
} else {
crate::operation_deser::parse_describe_channel_moderator_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct DisassociateChannelFlow {
_private: (),
}
impl DisassociateChannelFlow {
pub fn builder() -> crate::input::disassociate_channel_flow_input::Builder {
crate::input::disassociate_channel_flow_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for DisassociateChannelFlow {
type Output = std::result::Result<
crate::output::DisassociateChannelFlowOutput,
crate::error::DisassociateChannelFlowError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 204 {
crate::operation_deser::parse_disassociate_channel_flow_error(response)
} else {
crate::operation_deser::parse_disassociate_channel_flow_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct GetChannelMembershipPreferences {
_private: (),
}
impl GetChannelMembershipPreferences {
pub fn builder() -> crate::input::get_channel_membership_preferences_input::Builder {
crate::input::get_channel_membership_preferences_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for GetChannelMembershipPreferences {
type Output = std::result::Result<
crate::output::GetChannelMembershipPreferencesOutput,
crate::error::GetChannelMembershipPreferencesError,
>;
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_channel_membership_preferences_error(response)
} else {
crate::operation_deser::parse_get_channel_membership_preferences_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct GetChannelMessage {
_private: (),
}
impl GetChannelMessage {
pub fn builder() -> crate::input::get_channel_message_input::Builder {
crate::input::get_channel_message_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for GetChannelMessage {
type Output = std::result::Result<
crate::output::GetChannelMessageOutput,
crate::error::GetChannelMessageError,
>;
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_channel_message_error(response)
} else {
crate::operation_deser::parse_get_channel_message_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct GetChannelMessageStatus {
_private: (),
}
impl GetChannelMessageStatus {
pub fn builder() -> crate::input::get_channel_message_status_input::Builder {
crate::input::get_channel_message_status_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for GetChannelMessageStatus {
type Output = std::result::Result<
crate::output::GetChannelMessageStatusOutput,
crate::error::GetChannelMessageStatusError,
>;
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_channel_message_status_error(response)
} else {
crate::operation_deser::parse_get_channel_message_status_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct GetMessagingSessionEndpoint {
_private: (),
}
impl GetMessagingSessionEndpoint {
pub fn builder() -> crate::input::get_messaging_session_endpoint_input::Builder {
crate::input::get_messaging_session_endpoint_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for GetMessagingSessionEndpoint {
type Output = std::result::Result<
crate::output::GetMessagingSessionEndpointOutput,
crate::error::GetMessagingSessionEndpointError,
>;
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_messaging_session_endpoint_error(response)
} else {
crate::operation_deser::parse_get_messaging_session_endpoint_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct ListChannelBans {
_private: (),
}
impl ListChannelBans {
pub fn builder() -> crate::input::list_channel_bans_input::Builder {
crate::input::list_channel_bans_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for ListChannelBans {
type Output = std::result::Result<
crate::output::ListChannelBansOutput,
crate::error::ListChannelBansError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_list_channel_bans_error(response)
} else {
crate::operation_deser::parse_list_channel_bans_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct ListChannelFlows {
_private: (),
}
impl ListChannelFlows {
pub fn builder() -> crate::input::list_channel_flows_input::Builder {
crate::input::list_channel_flows_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for ListChannelFlows {
type Output = std::result::Result<
crate::output::ListChannelFlowsOutput,
crate::error::ListChannelFlowsError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_list_channel_flows_error(response)
} else {
crate::operation_deser::parse_list_channel_flows_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct ListChannelMemberships {
_private: (),
}
impl ListChannelMemberships {
pub fn builder() -> crate::input::list_channel_memberships_input::Builder {
crate::input::list_channel_memberships_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for ListChannelMemberships {
type Output = std::result::Result<
crate::output::ListChannelMembershipsOutput,
crate::error::ListChannelMembershipsError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_list_channel_memberships_error(response)
} else {
crate::operation_deser::parse_list_channel_memberships_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct ListChannelMembershipsForAppInstanceUser {
_private: (),
}
impl ListChannelMembershipsForAppInstanceUser {
pub fn builder() -> crate::input::list_channel_memberships_for_app_instance_user_input::Builder
{
crate::input::list_channel_memberships_for_app_instance_user_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for ListChannelMembershipsForAppInstanceUser {
type Output = std::result::Result<
crate::output::ListChannelMembershipsForAppInstanceUserOutput,
crate::error::ListChannelMembershipsForAppInstanceUserError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_list_channel_memberships_for_app_instance_user_error(
response,
)
} else {
crate::operation_deser::parse_list_channel_memberships_for_app_instance_user_response(
response,
)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct ListChannelMessages {
_private: (),
}
impl ListChannelMessages {
pub fn builder() -> crate::input::list_channel_messages_input::Builder {
crate::input::list_channel_messages_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for ListChannelMessages {
type Output = std::result::Result<
crate::output::ListChannelMessagesOutput,
crate::error::ListChannelMessagesError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_list_channel_messages_error(response)
} else {
crate::operation_deser::parse_list_channel_messages_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct ListChannelModerators {
_private: (),
}
impl ListChannelModerators {
pub fn builder() -> crate::input::list_channel_moderators_input::Builder {
crate::input::list_channel_moderators_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for ListChannelModerators {
type Output = std::result::Result<
crate::output::ListChannelModeratorsOutput,
crate::error::ListChannelModeratorsError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_list_channel_moderators_error(response)
} else {
crate::operation_deser::parse_list_channel_moderators_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct ListChannels {
_private: (),
}
impl ListChannels {
pub fn builder() -> crate::input::list_channels_input::Builder {
crate::input::list_channels_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for ListChannels {
type Output =
std::result::Result<crate::output::ListChannelsOutput, crate::error::ListChannelsError>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_list_channels_error(response)
} else {
crate::operation_deser::parse_list_channels_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct ListChannelsAssociatedWithChannelFlow {
_private: (),
}
impl ListChannelsAssociatedWithChannelFlow {
pub fn builder() -> crate::input::list_channels_associated_with_channel_flow_input::Builder {
crate::input::list_channels_associated_with_channel_flow_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for ListChannelsAssociatedWithChannelFlow {
type Output = std::result::Result<
crate::output::ListChannelsAssociatedWithChannelFlowOutput,
crate::error::ListChannelsAssociatedWithChannelFlowError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_list_channels_associated_with_channel_flow_error(response)
} else {
crate::operation_deser::parse_list_channels_associated_with_channel_flow_response(
response,
)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct ListChannelsModeratedByAppInstanceUser {
_private: (),
}
impl ListChannelsModeratedByAppInstanceUser {
pub fn builder() -> crate::input::list_channels_moderated_by_app_instance_user_input::Builder {
crate::input::list_channels_moderated_by_app_instance_user_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for ListChannelsModeratedByAppInstanceUser {
type Output = std::result::Result<
crate::output::ListChannelsModeratedByAppInstanceUserOutput,
crate::error::ListChannelsModeratedByAppInstanceUserError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_list_channels_moderated_by_app_instance_user_error(
response,
)
} else {
crate::operation_deser::parse_list_channels_moderated_by_app_instance_user_response(
response,
)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct ListSubChannels {
_private: (),
}
impl ListSubChannels {
pub fn builder() -> crate::input::list_sub_channels_input::Builder {
crate::input::list_sub_channels_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for ListSubChannels {
type Output = std::result::Result<
crate::output::ListSubChannelsOutput,
crate::error::ListSubChannelsError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_list_sub_channels_error(response)
} else {
crate::operation_deser::parse_list_sub_channels_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct ListTagsForResource {
_private: (),
}
impl ListTagsForResource {
pub fn builder() -> crate::input::list_tags_for_resource_input::Builder {
crate::input::list_tags_for_resource_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for ListTagsForResource {
type Output = std::result::Result<
crate::output::ListTagsForResourceOutput,
crate::error::ListTagsForResourceError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_list_tags_for_resource_error(response)
} else {
crate::operation_deser::parse_list_tags_for_resource_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct PutChannelMembershipPreferences {
_private: (),
}
impl PutChannelMembershipPreferences {
pub fn builder() -> crate::input::put_channel_membership_preferences_input::Builder {
crate::input::put_channel_membership_preferences_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for PutChannelMembershipPreferences {
type Output = std::result::Result<
crate::output::PutChannelMembershipPreferencesOutput,
crate::error::PutChannelMembershipPreferencesError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_put_channel_membership_preferences_error(response)
} else {
crate::operation_deser::parse_put_channel_membership_preferences_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct RedactChannelMessage {
_private: (),
}
impl RedactChannelMessage {
pub fn builder() -> crate::input::redact_channel_message_input::Builder {
crate::input::redact_channel_message_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for RedactChannelMessage {
type Output = std::result::Result<
crate::output::RedactChannelMessageOutput,
crate::error::RedactChannelMessageError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_redact_channel_message_error(response)
} else {
crate::operation_deser::parse_redact_channel_message_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct SearchChannels {
_private: (),
}
impl SearchChannels {
pub fn builder() -> crate::input::search_channels_input::Builder {
crate::input::search_channels_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for SearchChannels {
type Output =
std::result::Result<crate::output::SearchChannelsOutput, crate::error::SearchChannelsError>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_search_channels_error(response)
} else {
crate::operation_deser::parse_search_channels_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct SendChannelMessage {
_private: (),
}
impl SendChannelMessage {
pub fn builder() -> crate::input::send_channel_message_input::Builder {
crate::input::send_channel_message_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for SendChannelMessage {
type Output = std::result::Result<
crate::output::SendChannelMessageOutput,
crate::error::SendChannelMessageError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 201 {
crate::operation_deser::parse_send_channel_message_error(response)
} else {
crate::operation_deser::parse_send_channel_message_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct TagResource {
_private: (),
}
impl TagResource {
pub fn builder() -> crate::input::tag_resource_input::Builder {
crate::input::tag_resource_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for TagResource {
type Output =
std::result::Result<crate::output::TagResourceOutput, crate::error::TagResourceError>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 204 {
crate::operation_deser::parse_tag_resource_error(response)
} else {
crate::operation_deser::parse_tag_resource_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct UntagResource {
_private: (),
}
impl UntagResource {
pub fn builder() -> crate::input::untag_resource_input::Builder {
crate::input::untag_resource_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for UntagResource {
type Output =
std::result::Result<crate::output::UntagResourceOutput, crate::error::UntagResourceError>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 204 {
crate::operation_deser::parse_untag_resource_error(response)
} else {
crate::operation_deser::parse_untag_resource_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct UpdateChannel {
_private: (),
}
impl UpdateChannel {
pub fn builder() -> crate::input::update_channel_input::Builder {
crate::input::update_channel_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for UpdateChannel {
type Output =
std::result::Result<crate::output::UpdateChannelOutput, crate::error::UpdateChannelError>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_update_channel_error(response)
} else {
crate::operation_deser::parse_update_channel_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct UpdateChannelFlow {
_private: (),
}
impl UpdateChannelFlow {
pub fn builder() -> crate::input::update_channel_flow_input::Builder {
crate::input::update_channel_flow_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for UpdateChannelFlow {
type Output = std::result::Result<
crate::output::UpdateChannelFlowOutput,
crate::error::UpdateChannelFlowError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_update_channel_flow_error(response)
} else {
crate::operation_deser::parse_update_channel_flow_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct UpdateChannelMessage {
_private: (),
}
impl UpdateChannelMessage {
pub fn builder() -> crate::input::update_channel_message_input::Builder {
crate::input::update_channel_message_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for UpdateChannelMessage {
type Output = std::result::Result<
crate::output::UpdateChannelMessageOutput,
crate::error::UpdateChannelMessageError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_update_channel_message_error(response)
} else {
crate::operation_deser::parse_update_channel_message_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct UpdateChannelReadMarker {
_private: (),
}
impl UpdateChannelReadMarker {
pub fn builder() -> crate::input::update_channel_read_marker_input::Builder {
crate::input::update_channel_read_marker_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for UpdateChannelReadMarker {
type Output = std::result::Result<
crate::output::UpdateChannelReadMarkerOutput,
crate::error::UpdateChannelReadMarkerError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_update_channel_read_marker_error(response)
} else {
crate::operation_deser::parse_update_channel_read_marker_response(response)
}
}
}
pub mod customize;