{-# 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.FraudDetector.Types.ModelInputDataFormat
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.FraudDetector.Types.ModelInputDataFormat
  ( ModelInputDataFormat
      ( ..,
        ModelInputDataFormat_APPLICATION_JSON,
        ModelInputDataFormat_TEXT_CSV
      ),
  )
where

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

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

pattern ModelInputDataFormat_APPLICATION_JSON :: ModelInputDataFormat
pattern $bModelInputDataFormat_APPLICATION_JSON :: ModelInputDataFormat
$mModelInputDataFormat_APPLICATION_JSON :: forall {r}.
ModelInputDataFormat -> ((# #) -> r) -> ((# #) -> r) -> r
ModelInputDataFormat_APPLICATION_JSON = ModelInputDataFormat' "APPLICATION_JSON"

pattern ModelInputDataFormat_TEXT_CSV :: ModelInputDataFormat
pattern $bModelInputDataFormat_TEXT_CSV :: ModelInputDataFormat
$mModelInputDataFormat_TEXT_CSV :: forall {r}.
ModelInputDataFormat -> ((# #) -> r) -> ((# #) -> r) -> r
ModelInputDataFormat_TEXT_CSV = ModelInputDataFormat' "TEXT_CSV"

{-# COMPLETE
  ModelInputDataFormat_APPLICATION_JSON,
  ModelInputDataFormat_TEXT_CSV,
  ModelInputDataFormat'
  #-}