{-# 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.MedicalContentIdentificationType
-- 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.MedicalContentIdentificationType
  ( MedicalContentIdentificationType
      ( ..,
        MedicalContentIdentificationType_PHI
      ),
  )
where

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

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

pattern MedicalContentIdentificationType_PHI :: MedicalContentIdentificationType
pattern $bMedicalContentIdentificationType_PHI :: MedicalContentIdentificationType
$mMedicalContentIdentificationType_PHI :: forall r.
MedicalContentIdentificationType
-> (Void# -> r) -> (Void# -> r) -> r
MedicalContentIdentificationType_PHI = MedicalContentIdentificationType' "PHI"

{-# COMPLETE
  MedicalContentIdentificationType_PHI,
  MedicalContentIdentificationType'
  #-}