{-# 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.UnlabeledEventsTreatment
-- 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.UnlabeledEventsTreatment
  ( UnlabeledEventsTreatment
      ( ..,
        UnlabeledEventsTreatment_FRAUD,
        UnlabeledEventsTreatment_IGNORE,
        UnlabeledEventsTreatment_LEGIT
      ),
  )
where

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

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

pattern UnlabeledEventsTreatment_FRAUD :: UnlabeledEventsTreatment
pattern $bUnlabeledEventsTreatment_FRAUD :: UnlabeledEventsTreatment
$mUnlabeledEventsTreatment_FRAUD :: forall r.
UnlabeledEventsTreatment -> (Void# -> r) -> (Void# -> r) -> r
UnlabeledEventsTreatment_FRAUD = UnlabeledEventsTreatment' "FRAUD"

pattern UnlabeledEventsTreatment_IGNORE :: UnlabeledEventsTreatment
pattern $bUnlabeledEventsTreatment_IGNORE :: UnlabeledEventsTreatment
$mUnlabeledEventsTreatment_IGNORE :: forall r.
UnlabeledEventsTreatment -> (Void# -> r) -> (Void# -> r) -> r
UnlabeledEventsTreatment_IGNORE = UnlabeledEventsTreatment' "IGNORE"

pattern UnlabeledEventsTreatment_LEGIT :: UnlabeledEventsTreatment
pattern $bUnlabeledEventsTreatment_LEGIT :: UnlabeledEventsTreatment
$mUnlabeledEventsTreatment_LEGIT :: forall r.
UnlabeledEventsTreatment -> (Void# -> r) -> (Void# -> r) -> r
UnlabeledEventsTreatment_LEGIT = UnlabeledEventsTreatment' "LEGIT"

{-# COMPLETE
  UnlabeledEventsTreatment_FRAUD,
  UnlabeledEventsTreatment_IGNORE,
  UnlabeledEventsTreatment_LEGIT,
  UnlabeledEventsTreatment'
  #-}