{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.FraudDetector.Types.ModelOutputDataFormat
( ModelOutputDataFormat
( ..,
ModelOutputDataFormat_APPLICATION_JSONLINES,
ModelOutputDataFormat_TEXT_CSV
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
newtype ModelOutputDataFormat = ModelOutputDataFormat'
{ ModelOutputDataFormat -> Text
fromModelOutputDataFormat ::
Data.Text
}
deriving stock
( Int -> ModelOutputDataFormat -> ShowS
[ModelOutputDataFormat] -> ShowS
ModelOutputDataFormat -> String
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]
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
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
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
Prelude.Ord,
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
( Eq ModelOutputDataFormat
Int -> ModelOutputDataFormat -> Int
ModelOutputDataFormat -> Int
forall a. Eq 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 -> ()
forall a. (a -> ()) -> NFData a
rnf :: ModelOutputDataFormat -> ()
$crnf :: ModelOutputDataFormat -> ()
Prelude.NFData,
Text -> Either String ModelOutputDataFormat
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String ModelOutputDataFormat
$cfromText :: Text -> Either String ModelOutputDataFormat
Data.FromText,
ModelOutputDataFormat -> Text
forall a. (a -> Text) -> ToText a
toText :: ModelOutputDataFormat -> Text
$ctoText :: ModelOutputDataFormat -> Text
Data.ToText,
ModelOutputDataFormat -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: ModelOutputDataFormat -> ByteString
$ctoBS :: ModelOutputDataFormat -> ByteString
Data.ToByteString,
ModelOutputDataFormat -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: ModelOutputDataFormat -> ByteStringBuilder
$cbuild :: ModelOutputDataFormat -> ByteStringBuilder
Data.ToLog,
HeaderName -> ModelOutputDataFormat -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> ModelOutputDataFormat -> [Header]
$ctoHeader :: HeaderName -> ModelOutputDataFormat -> [Header]
Data.ToHeader,
ModelOutputDataFormat -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: ModelOutputDataFormat -> QueryString
$ctoQuery :: ModelOutputDataFormat -> QueryString
Data.ToQuery,
Value -> Parser [ModelOutputDataFormat]
Value -> Parser 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
Data.FromJSON,
FromJSONKeyFunction [ModelOutputDataFormat]
FromJSONKeyFunction ModelOutputDataFormat
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [ModelOutputDataFormat]
$cfromJSONKeyList :: FromJSONKeyFunction [ModelOutputDataFormat]
fromJSONKey :: FromJSONKeyFunction ModelOutputDataFormat
$cfromJSONKey :: FromJSONKeyFunction ModelOutputDataFormat
Data.FromJSONKey,
[ModelOutputDataFormat] -> Encoding
[ModelOutputDataFormat] -> Value
ModelOutputDataFormat -> Encoding
ModelOutputDataFormat -> Value
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
Data.ToJSON,
ToJSONKeyFunction [ModelOutputDataFormat]
ToJSONKeyFunction ModelOutputDataFormat
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [ModelOutputDataFormat]
$ctoJSONKeyList :: ToJSONKeyFunction [ModelOutputDataFormat]
toJSONKey :: ToJSONKeyFunction ModelOutputDataFormat
$ctoJSONKey :: ToJSONKeyFunction ModelOutputDataFormat
Data.ToJSONKey,
[Node] -> Either String ModelOutputDataFormat
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String ModelOutputDataFormat
$cparseXML :: [Node] -> Either String ModelOutputDataFormat
Data.FromXML,
ModelOutputDataFormat -> XML
forall a. (a -> XML) -> ToXML a
toXML :: ModelOutputDataFormat -> XML
$ctoXML :: ModelOutputDataFormat -> XML
Data.ToXML
)
pattern ModelOutputDataFormat_APPLICATION_JSONLINES :: ModelOutputDataFormat
pattern $bModelOutputDataFormat_APPLICATION_JSONLINES :: ModelOutputDataFormat
$mModelOutputDataFormat_APPLICATION_JSONLINES :: forall {r}.
ModelOutputDataFormat -> ((# #) -> r) -> ((# #) -> r) -> r
ModelOutputDataFormat_APPLICATION_JSONLINES = ModelOutputDataFormat' "APPLICATION_JSONLINES"
pattern ModelOutputDataFormat_TEXT_CSV :: ModelOutputDataFormat
pattern $bModelOutputDataFormat_TEXT_CSV :: ModelOutputDataFormat
$mModelOutputDataFormat_TEXT_CSV :: forall {r}.
ModelOutputDataFormat -> ((# #) -> r) -> ((# #) -> r) -> r
ModelOutputDataFormat_TEXT_CSV = ModelOutputDataFormat' "TEXT_CSV"
{-# COMPLETE
ModelOutputDataFormat_APPLICATION_JSONLINES,
ModelOutputDataFormat_TEXT_CSV,
ModelOutputDataFormat'
#-}