{-# 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.EventIngestion
-- 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.EventIngestion
  ( EventIngestion
      ( ..,
        EventIngestion_DISABLED,
        EventIngestion_ENABLED
      ),
  )
where

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

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

pattern EventIngestion_DISABLED :: EventIngestion
pattern $bEventIngestion_DISABLED :: EventIngestion
$mEventIngestion_DISABLED :: forall r. EventIngestion -> (Void# -> r) -> (Void# -> r) -> r
EventIngestion_DISABLED = EventIngestion' "DISABLED"

pattern EventIngestion_ENABLED :: EventIngestion
pattern $bEventIngestion_ENABLED :: EventIngestion
$mEventIngestion_ENABLED :: forall r. EventIngestion -> (Void# -> r) -> (Void# -> r) -> r
EventIngestion_ENABLED = EventIngestion' "ENABLED"

{-# COMPLETE
  EventIngestion_DISABLED,
  EventIngestion_ENABLED,
  EventIngestion'
  #-}