{-# 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.HealthLake.Types.PreloadDataType
-- 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.HealthLake.Types.PreloadDataType
  ( PreloadDataType
      ( ..,
        PreloadDataType_SYNTHEA
      ),
  )
where

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

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

pattern PreloadDataType_SYNTHEA :: PreloadDataType
pattern $bPreloadDataType_SYNTHEA :: PreloadDataType
$mPreloadDataType_SYNTHEA :: forall r. PreloadDataType -> (Void# -> r) -> (Void# -> r) -> r
PreloadDataType_SYNTHEA = PreloadDataType' "SYNTHEA"

{-# COMPLETE
  PreloadDataType_SYNTHEA,
  PreloadDataType'
  #-}