{-# 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.TrainingDataSourceEnum
-- 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.TrainingDataSourceEnum
  ( TrainingDataSourceEnum
      ( ..,
        TrainingDataSourceEnum_EXTERNAL_EVENTS,
        TrainingDataSourceEnum_INGESTED_EVENTS
      ),
  )
where

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

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

pattern TrainingDataSourceEnum_EXTERNAL_EVENTS :: TrainingDataSourceEnum
pattern $bTrainingDataSourceEnum_EXTERNAL_EVENTS :: TrainingDataSourceEnum
$mTrainingDataSourceEnum_EXTERNAL_EVENTS :: forall r.
TrainingDataSourceEnum -> (Void# -> r) -> (Void# -> r) -> r
TrainingDataSourceEnum_EXTERNAL_EVENTS = TrainingDataSourceEnum' "EXTERNAL_EVENTS"

pattern TrainingDataSourceEnum_INGESTED_EVENTS :: TrainingDataSourceEnum
pattern $bTrainingDataSourceEnum_INGESTED_EVENTS :: TrainingDataSourceEnum
$mTrainingDataSourceEnum_INGESTED_EVENTS :: forall r.
TrainingDataSourceEnum -> (Void# -> r) -> (Void# -> r) -> r
TrainingDataSourceEnum_INGESTED_EVENTS = TrainingDataSourceEnum' "INGESTED_EVENTS"

{-# COMPLETE
  TrainingDataSourceEnum_EXTERNAL_EVENTS,
  TrainingDataSourceEnum_INGESTED_EVENTS,
  TrainingDataSourceEnum'
  #-}