{-# 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.ComprehendMedical.Types.AttributeName
-- 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.ComprehendMedical.Types.AttributeName
  ( AttributeName
      ( ..,
        AttributeName_DIAGNOSIS,
        AttributeName_NEGATION,
        AttributeName_SIGN,
        AttributeName_SYMPTOM
      ),
  )
where

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

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

pattern AttributeName_DIAGNOSIS :: AttributeName
pattern $bAttributeName_DIAGNOSIS :: AttributeName
$mAttributeName_DIAGNOSIS :: forall r. AttributeName -> (Void# -> r) -> (Void# -> r) -> r
AttributeName_DIAGNOSIS = AttributeName' "DIAGNOSIS"

pattern AttributeName_NEGATION :: AttributeName
pattern $bAttributeName_NEGATION :: AttributeName
$mAttributeName_NEGATION :: forall r. AttributeName -> (Void# -> r) -> (Void# -> r) -> r
AttributeName_NEGATION = AttributeName' "NEGATION"

pattern AttributeName_SIGN :: AttributeName
pattern $bAttributeName_SIGN :: AttributeName
$mAttributeName_SIGN :: forall r. AttributeName -> (Void# -> r) -> (Void# -> r) -> r
AttributeName_SIGN = AttributeName' "SIGN"

pattern AttributeName_SYMPTOM :: AttributeName
pattern $bAttributeName_SYMPTOM :: AttributeName
$mAttributeName_SYMPTOM :: forall r. AttributeName -> (Void# -> r) -> (Void# -> r) -> r
AttributeName_SYMPTOM = AttributeName' "SYMPTOM"

{-# COMPLETE
  AttributeName_DIAGNOSIS,
  AttributeName_NEGATION,
  AttributeName_SIGN,
  AttributeName_SYMPTOM,
  AttributeName'
  #-}