{-# 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.ModelOutputDataFormat
-- 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.ModelOutputDataFormat
  ( ModelOutputDataFormat
      ( ..,
        ModelOutputDataFormat_APPLICATION_JSONLINES,
        ModelOutputDataFormat_TEXT_CSV
      ),
  )
where

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

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

pattern ModelOutputDataFormat_APPLICATION_JSONLINES :: ModelOutputDataFormat
pattern $bModelOutputDataFormat_APPLICATION_JSONLINES :: ModelOutputDataFormat
$mModelOutputDataFormat_APPLICATION_JSONLINES :: forall r.
ModelOutputDataFormat -> (Void# -> r) -> (Void# -> r) -> r
ModelOutputDataFormat_APPLICATION_JSONLINES = ModelOutputDataFormat' "APPLICATION_JSONLINES"

pattern ModelOutputDataFormat_TEXT_CSV :: ModelOutputDataFormat
pattern $bModelOutputDataFormat_TEXT_CSV :: ModelOutputDataFormat
$mModelOutputDataFormat_TEXT_CSV :: forall r.
ModelOutputDataFormat -> (Void# -> r) -> (Void# -> r) -> r
ModelOutputDataFormat_TEXT_CSV = ModelOutputDataFormat' "TEXT_CSV"

{-# COMPLETE
  ModelOutputDataFormat_APPLICATION_JSONLINES,
  ModelOutputDataFormat_TEXT_CSV,
  ModelOutputDataFormat'
  #-}