{-# 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-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.FraudDetector.Types.ModelInputDataFormat
  ( ModelInputDataFormat
      ( ..,
        ModelInputDataFormat_APPLICATION_JSON,
        ModelInputDataFormat_TEXT_CSV
      ),
  )
where

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

newtype ModelInputDataFormat = ModelInputDataFormat'
  { ModelInputDataFormat -> Text
fromModelInputDataFormat ::
      Core.Text
  }
  deriving stock
    ( Int -> ModelInputDataFormat -> ShowS
[ModelInputDataFormat] -> ShowS
ModelInputDataFormat -> String
(Int -> ModelInputDataFormat -> ShowS)
-> (ModelInputDataFormat -> String)
-> ([ModelInputDataFormat] -> ShowS)
-> Show ModelInputDataFormat
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]
(Int -> ReadS ModelInputDataFormat)
-> ReadS [ModelInputDataFormat]
-> ReadPrec ModelInputDataFormat
-> ReadPrec [ModelInputDataFormat]
-> Read 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
(ModelInputDataFormat -> ModelInputDataFormat -> Bool)
-> (ModelInputDataFormat -> ModelInputDataFormat -> Bool)
-> Eq ModelInputDataFormat
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
Eq ModelInputDataFormat
-> (ModelInputDataFormat -> ModelInputDataFormat -> Ordering)
-> (ModelInputDataFormat -> ModelInputDataFormat -> Bool)
-> (ModelInputDataFormat -> ModelInputDataFormat -> Bool)
-> (ModelInputDataFormat -> ModelInputDataFormat -> Bool)
-> (ModelInputDataFormat -> ModelInputDataFormat -> Bool)
-> (ModelInputDataFormat
    -> ModelInputDataFormat -> ModelInputDataFormat)
-> (ModelInputDataFormat
    -> ModelInputDataFormat -> ModelInputDataFormat)
-> Ord 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
$cp1Ord :: Eq ModelInputDataFormat
Prelude.Ord,
      (forall x. ModelInputDataFormat -> Rep ModelInputDataFormat x)
-> (forall x. Rep ModelInputDataFormat x -> ModelInputDataFormat)
-> Generic ModelInputDataFormat
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
    ( Int -> ModelInputDataFormat -> Int
ModelInputDataFormat -> Int
(Int -> ModelInputDataFormat -> Int)
-> (ModelInputDataFormat -> Int) -> Hashable ModelInputDataFormat
forall 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 -> ()
(ModelInputDataFormat -> ()) -> NFData ModelInputDataFormat
forall a. (a -> ()) -> NFData a
rnf :: ModelInputDataFormat -> ()
$crnf :: ModelInputDataFormat -> ()
Prelude.NFData,
      Text -> Either String ModelInputDataFormat
(Text -> Either String ModelInputDataFormat)
-> FromText ModelInputDataFormat
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String ModelInputDataFormat
$cfromText :: Text -> Either String ModelInputDataFormat
Core.FromText,
      ModelInputDataFormat -> Text
(ModelInputDataFormat -> Text) -> ToText ModelInputDataFormat
forall a. (a -> Text) -> ToText a
toText :: ModelInputDataFormat -> Text
$ctoText :: ModelInputDataFormat -> Text
Core.ToText,
      ModelInputDataFormat -> ByteString
(ModelInputDataFormat -> ByteString)
-> ToByteString ModelInputDataFormat
forall a. (a -> ByteString) -> ToByteString a
toBS :: ModelInputDataFormat -> ByteString
$ctoBS :: ModelInputDataFormat -> ByteString
Core.ToByteString,
      ModelInputDataFormat -> ByteStringBuilder
(ModelInputDataFormat -> ByteStringBuilder)
-> ToLog ModelInputDataFormat
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: ModelInputDataFormat -> ByteStringBuilder
$cbuild :: ModelInputDataFormat -> ByteStringBuilder
Core.ToLog,
      HeaderName -> ModelInputDataFormat -> [Header]
(HeaderName -> ModelInputDataFormat -> [Header])
-> ToHeader ModelInputDataFormat
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> ModelInputDataFormat -> [Header]
$ctoHeader :: HeaderName -> ModelInputDataFormat -> [Header]
Core.ToHeader,
      ModelInputDataFormat -> QueryString
(ModelInputDataFormat -> QueryString)
-> ToQuery ModelInputDataFormat
forall a. (a -> QueryString) -> ToQuery a
toQuery :: ModelInputDataFormat -> QueryString
$ctoQuery :: ModelInputDataFormat -> QueryString
Core.ToQuery,
      Value -> Parser [ModelInputDataFormat]
Value -> Parser ModelInputDataFormat
(Value -> Parser ModelInputDataFormat)
-> (Value -> Parser [ModelInputDataFormat])
-> FromJSON 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
Core.FromJSON,
      FromJSONKeyFunction [ModelInputDataFormat]
FromJSONKeyFunction ModelInputDataFormat
FromJSONKeyFunction ModelInputDataFormat
-> FromJSONKeyFunction [ModelInputDataFormat]
-> FromJSONKey ModelInputDataFormat
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [ModelInputDataFormat]
$cfromJSONKeyList :: FromJSONKeyFunction [ModelInputDataFormat]
fromJSONKey :: FromJSONKeyFunction ModelInputDataFormat
$cfromJSONKey :: FromJSONKeyFunction ModelInputDataFormat
Core.FromJSONKey,
      [ModelInputDataFormat] -> Encoding
[ModelInputDataFormat] -> Value
ModelInputDataFormat -> Encoding
ModelInputDataFormat -> Value
(ModelInputDataFormat -> Value)
-> (ModelInputDataFormat -> Encoding)
-> ([ModelInputDataFormat] -> Value)
-> ([ModelInputDataFormat] -> Encoding)
-> ToJSON ModelInputDataFormat
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
Core.ToJSON,
      ToJSONKeyFunction [ModelInputDataFormat]
ToJSONKeyFunction ModelInputDataFormat
ToJSONKeyFunction ModelInputDataFormat
-> ToJSONKeyFunction [ModelInputDataFormat]
-> ToJSONKey ModelInputDataFormat
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [ModelInputDataFormat]
$ctoJSONKeyList :: ToJSONKeyFunction [ModelInputDataFormat]
toJSONKey :: ToJSONKeyFunction ModelInputDataFormat
$ctoJSONKey :: ToJSONKeyFunction ModelInputDataFormat
Core.ToJSONKey,
      [Node] -> Either String ModelInputDataFormat
([Node] -> Either String ModelInputDataFormat)
-> FromXML ModelInputDataFormat
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String ModelInputDataFormat
$cparseXML :: [Node] -> Either String ModelInputDataFormat
Core.FromXML,
      ModelInputDataFormat -> XML
(ModelInputDataFormat -> XML) -> ToXML ModelInputDataFormat
forall a. (a -> XML) -> ToXML a
toXML :: ModelInputDataFormat -> XML
$ctoXML :: ModelInputDataFormat -> XML
Core.ToXML
    )

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

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

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