{-# 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.VoiceId.Types.FraudDetectionReason
-- 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.VoiceId.Types.FraudDetectionReason
  ( FraudDetectionReason
      ( ..,
        FraudDetectionReason_KNOWN_FRAUDSTER
      ),
  )
where

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

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

pattern FraudDetectionReason_KNOWN_FRAUDSTER :: FraudDetectionReason
pattern $bFraudDetectionReason_KNOWN_FRAUDSTER :: FraudDetectionReason
$mFraudDetectionReason_KNOWN_FRAUDSTER :: forall r. FraudDetectionReason -> (Void# -> r) -> (Void# -> r) -> r
FraudDetectionReason_KNOWN_FRAUDSTER = FraudDetectionReason' "KNOWN_FRAUDSTER"

{-# COMPLETE
  FraudDetectionReason_KNOWN_FRAUDSTER,
  FraudDetectionReason'
  #-}