{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.Connect.Types.Channel
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.Connect.Types.Channel
  ( Channel
      ( ..,
        Channel_CHAT,
        Channel_TASK,
        Channel_VOICE
      ),
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude

newtype Channel = Channel' {Channel -> Text
fromChannel :: Core.Text}
  deriving stock
    ( Int -> Channel -> ShowS
[Channel] -> ShowS
Channel -> String
(Int -> Channel -> ShowS)
-> (Channel -> String) -> ([Channel] -> ShowS) -> Show Channel
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [Channel] -> ShowS
$cshowList :: [Channel] -> ShowS
show :: Channel -> String
$cshow :: Channel -> String
showsPrec :: Int -> Channel -> ShowS
$cshowsPrec :: Int -> Channel -> ShowS
Prelude.Show,
      ReadPrec [Channel]
ReadPrec Channel
Int -> ReadS Channel
ReadS [Channel]
(Int -> ReadS Channel)
-> ReadS [Channel]
-> ReadPrec Channel
-> ReadPrec [Channel]
-> Read Channel
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [Channel]
$creadListPrec :: ReadPrec [Channel]
readPrec :: ReadPrec Channel
$creadPrec :: ReadPrec Channel
readList :: ReadS [Channel]
$creadList :: ReadS [Channel]
readsPrec :: Int -> ReadS Channel
$creadsPrec :: Int -> ReadS Channel
Prelude.Read,
      Channel -> Channel -> Bool
(Channel -> Channel -> Bool)
-> (Channel -> Channel -> Bool) -> Eq Channel
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: Channel -> Channel -> Bool
$c/= :: Channel -> Channel -> Bool
== :: Channel -> Channel -> Bool
$c== :: Channel -> Channel -> Bool
Prelude.Eq,
      Eq Channel
Eq Channel
-> (Channel -> Channel -> Ordering)
-> (Channel -> Channel -> Bool)
-> (Channel -> Channel -> Bool)
-> (Channel -> Channel -> Bool)
-> (Channel -> Channel -> Bool)
-> (Channel -> Channel -> Channel)
-> (Channel -> Channel -> Channel)
-> Ord Channel
Channel -> Channel -> Bool
Channel -> Channel -> Ordering
Channel -> Channel -> Channel
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: Channel -> Channel -> Channel
$cmin :: Channel -> Channel -> Channel
max :: Channel -> Channel -> Channel
$cmax :: Channel -> Channel -> Channel
>= :: Channel -> Channel -> Bool
$c>= :: Channel -> Channel -> Bool
> :: Channel -> Channel -> Bool
$c> :: Channel -> Channel -> Bool
<= :: Channel -> Channel -> Bool
$c<= :: Channel -> Channel -> Bool
< :: Channel -> Channel -> Bool
$c< :: Channel -> Channel -> Bool
compare :: Channel -> Channel -> Ordering
$ccompare :: Channel -> Channel -> Ordering
$cp1Ord :: Eq Channel
Prelude.Ord,
      (forall x. Channel -> Rep Channel x)
-> (forall x. Rep Channel x -> Channel) -> Generic Channel
forall x. Rep Channel x -> Channel
forall x. Channel -> Rep Channel x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep Channel x -> Channel
$cfrom :: forall x. Channel -> Rep Channel x
Prelude.Generic
    )
  deriving newtype
    ( Int -> Channel -> Int
Channel -> Int
(Int -> Channel -> Int) -> (Channel -> Int) -> Hashable Channel
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: Channel -> Int
$chash :: Channel -> Int
hashWithSalt :: Int -> Channel -> Int
$chashWithSalt :: Int -> Channel -> Int
Prelude.Hashable,
      Channel -> ()
(Channel -> ()) -> NFData Channel
forall a. (a -> ()) -> NFData a
rnf :: Channel -> ()
$crnf :: Channel -> ()
Prelude.NFData,
      Text -> Either String Channel
(Text -> Either String Channel) -> FromText Channel
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String Channel
$cfromText :: Text -> Either String Channel
Core.FromText,
      Channel -> Text
(Channel -> Text) -> ToText Channel
forall a. (a -> Text) -> ToText a
toText :: Channel -> Text
$ctoText :: Channel -> Text
Core.ToText,
      Channel -> ByteString
(Channel -> ByteString) -> ToByteString Channel
forall a. (a -> ByteString) -> ToByteString a
toBS :: Channel -> ByteString
$ctoBS :: Channel -> ByteString
Core.ToByteString,
      Channel -> ByteStringBuilder
(Channel -> ByteStringBuilder) -> ToLog Channel
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: Channel -> ByteStringBuilder
$cbuild :: Channel -> ByteStringBuilder
Core.ToLog,
      HeaderName -> Channel -> [Header]
(HeaderName -> Channel -> [Header]) -> ToHeader Channel
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> Channel -> [Header]
$ctoHeader :: HeaderName -> Channel -> [Header]
Core.ToHeader,
      Channel -> QueryString
(Channel -> QueryString) -> ToQuery Channel
forall a. (a -> QueryString) -> ToQuery a
toQuery :: Channel -> QueryString
$ctoQuery :: Channel -> QueryString
Core.ToQuery,
      Value -> Parser [Channel]
Value -> Parser Channel
(Value -> Parser Channel)
-> (Value -> Parser [Channel]) -> FromJSON Channel
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [Channel]
$cparseJSONList :: Value -> Parser [Channel]
parseJSON :: Value -> Parser Channel
$cparseJSON :: Value -> Parser Channel
Core.FromJSON,
      FromJSONKeyFunction [Channel]
FromJSONKeyFunction Channel
FromJSONKeyFunction Channel
-> FromJSONKeyFunction [Channel] -> FromJSONKey Channel
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [Channel]
$cfromJSONKeyList :: FromJSONKeyFunction [Channel]
fromJSONKey :: FromJSONKeyFunction Channel
$cfromJSONKey :: FromJSONKeyFunction Channel
Core.FromJSONKey,
      [Channel] -> Encoding
[Channel] -> Value
Channel -> Encoding
Channel -> Value
(Channel -> Value)
-> (Channel -> Encoding)
-> ([Channel] -> Value)
-> ([Channel] -> Encoding)
-> ToJSON Channel
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [Channel] -> Encoding
$ctoEncodingList :: [Channel] -> Encoding
toJSONList :: [Channel] -> Value
$ctoJSONList :: [Channel] -> Value
toEncoding :: Channel -> Encoding
$ctoEncoding :: Channel -> Encoding
toJSON :: Channel -> Value
$ctoJSON :: Channel -> Value
Core.ToJSON,
      ToJSONKeyFunction [Channel]
ToJSONKeyFunction Channel
ToJSONKeyFunction Channel
-> ToJSONKeyFunction [Channel] -> ToJSONKey Channel
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [Channel]
$ctoJSONKeyList :: ToJSONKeyFunction [Channel]
toJSONKey :: ToJSONKeyFunction Channel
$ctoJSONKey :: ToJSONKeyFunction Channel
Core.ToJSONKey,
      [Node] -> Either String Channel
([Node] -> Either String Channel) -> FromXML Channel
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String Channel
$cparseXML :: [Node] -> Either String Channel
Core.FromXML,
      Channel -> XML
(Channel -> XML) -> ToXML Channel
forall a. (a -> XML) -> ToXML a
toXML :: Channel -> XML
$ctoXML :: Channel -> XML
Core.ToXML
    )

pattern Channel_CHAT :: Channel
pattern $bChannel_CHAT :: Channel
$mChannel_CHAT :: forall r. Channel -> (Void# -> r) -> (Void# -> r) -> r
Channel_CHAT = Channel' "CHAT"

pattern Channel_TASK :: Channel
pattern $bChannel_TASK :: Channel
$mChannel_TASK :: forall r. Channel -> (Void# -> r) -> (Void# -> r) -> r
Channel_TASK = Channel' "TASK"

pattern Channel_VOICE :: Channel
pattern $bChannel_VOICE :: Channel
$mChannel_VOICE :: forall r. Channel -> (Void# -> r) -> (Void# -> r) -> r
Channel_VOICE = Channel' "VOICE"

{-# COMPLETE
  Channel_CHAT,
  Channel_TASK,
  Channel_VOICE,
  Channel'
  #-}