{-# 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.Chime.Types.TranscribeMedicalLanguageCode
-- 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.Chime.Types.TranscribeMedicalLanguageCode
  ( TranscribeMedicalLanguageCode
      ( ..,
        TranscribeMedicalLanguageCode_En_US
      ),
  )
where

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

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

pattern TranscribeMedicalLanguageCode_En_US :: TranscribeMedicalLanguageCode
pattern $bTranscribeMedicalLanguageCode_En_US :: TranscribeMedicalLanguageCode
$mTranscribeMedicalLanguageCode_En_US :: forall r.
TranscribeMedicalLanguageCode -> (Void# -> r) -> (Void# -> r) -> r
TranscribeMedicalLanguageCode_En_US = TranscribeMedicalLanguageCode' "en-US"

{-# COMPLETE
  TranscribeMedicalLanguageCode_En_US,
  TranscribeMedicalLanguageCode'
  #-}