{-# 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.Transcribe.Types.ParticipantRole
-- 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.Transcribe.Types.ParticipantRole
  ( ParticipantRole
      ( ..,
        ParticipantRole_AGENT,
        ParticipantRole_CUSTOMER
      ),
  )
where

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

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

pattern ParticipantRole_AGENT :: ParticipantRole
pattern $bParticipantRole_AGENT :: ParticipantRole
$mParticipantRole_AGENT :: forall r. ParticipantRole -> (Void# -> r) -> (Void# -> r) -> r
ParticipantRole_AGENT = ParticipantRole' "AGENT"

pattern ParticipantRole_CUSTOMER :: ParticipantRole
pattern $bParticipantRole_CUSTOMER :: ParticipantRole
$mParticipantRole_CUSTOMER :: forall r. ParticipantRole -> (Void# -> r) -> (Void# -> r) -> r
ParticipantRole_CUSTOMER = ParticipantRole' "CUSTOMER"

{-# COMPLETE
  ParticipantRole_AGENT,
  ParticipantRole_CUSTOMER,
  ParticipantRole'
  #-}