{-# 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-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.VoiceId.Types.FraudDetectionReason
  ( FraudDetectionReason
      ( ..,
        FraudDetectionReason_KNOWN_FRAUDSTER,
        FraudDetectionReason_VOICE_SPOOFING
      ),
  )
where

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

newtype FraudDetectionReason = FraudDetectionReason'
  { FraudDetectionReason -> Text
fromFraudDetectionReason ::
      Data.Text
  }
  deriving stock
    ( Int -> FraudDetectionReason -> ShowS
[FraudDetectionReason] -> ShowS
FraudDetectionReason -> String
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]
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
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
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
Prelude.Ord,
      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
    ( Eq FraudDetectionReason
Int -> FraudDetectionReason -> Int
FraudDetectionReason -> Int
forall a. Eq 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 -> ()
forall a. (a -> ()) -> NFData a
rnf :: FraudDetectionReason -> ()
$crnf :: FraudDetectionReason -> ()
Prelude.NFData,
      Text -> Either String FraudDetectionReason
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String FraudDetectionReason
$cfromText :: Text -> Either String FraudDetectionReason
Data.FromText,
      FraudDetectionReason -> Text
forall a. (a -> Text) -> ToText a
toText :: FraudDetectionReason -> Text
$ctoText :: FraudDetectionReason -> Text
Data.ToText,
      FraudDetectionReason -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: FraudDetectionReason -> ByteString
$ctoBS :: FraudDetectionReason -> ByteString
Data.ToByteString,
      FraudDetectionReason -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: FraudDetectionReason -> ByteStringBuilder
$cbuild :: FraudDetectionReason -> ByteStringBuilder
Data.ToLog,
      HeaderName -> FraudDetectionReason -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> FraudDetectionReason -> [Header]
$ctoHeader :: HeaderName -> FraudDetectionReason -> [Header]
Data.ToHeader,
      FraudDetectionReason -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: FraudDetectionReason -> QueryString
$ctoQuery :: FraudDetectionReason -> QueryString
Data.ToQuery,
      Value -> Parser [FraudDetectionReason]
Value -> Parser 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
Data.FromJSON,
      FromJSONKeyFunction [FraudDetectionReason]
FromJSONKeyFunction FraudDetectionReason
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [FraudDetectionReason]
$cfromJSONKeyList :: FromJSONKeyFunction [FraudDetectionReason]
fromJSONKey :: FromJSONKeyFunction FraudDetectionReason
$cfromJSONKey :: FromJSONKeyFunction FraudDetectionReason
Data.FromJSONKey,
      [FraudDetectionReason] -> Encoding
[FraudDetectionReason] -> Value
FraudDetectionReason -> Encoding
FraudDetectionReason -> Value
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
Data.ToJSON,
      ToJSONKeyFunction [FraudDetectionReason]
ToJSONKeyFunction FraudDetectionReason
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [FraudDetectionReason]
$ctoJSONKeyList :: ToJSONKeyFunction [FraudDetectionReason]
toJSONKey :: ToJSONKeyFunction FraudDetectionReason
$ctoJSONKey :: ToJSONKeyFunction FraudDetectionReason
Data.ToJSONKey,
      [Node] -> Either String FraudDetectionReason
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String FraudDetectionReason
$cparseXML :: [Node] -> Either String FraudDetectionReason
Data.FromXML,
      FraudDetectionReason -> XML
forall a. (a -> XML) -> ToXML a
toXML :: FraudDetectionReason -> XML
$ctoXML :: FraudDetectionReason -> XML
Data.ToXML
    )

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

pattern FraudDetectionReason_VOICE_SPOOFING :: FraudDetectionReason
pattern $bFraudDetectionReason_VOICE_SPOOFING :: FraudDetectionReason
$mFraudDetectionReason_VOICE_SPOOFING :: forall {r}.
FraudDetectionReason -> ((# #) -> r) -> ((# #) -> r) -> r
FraudDetectionReason_VOICE_SPOOFING = FraudDetectionReason' "VOICE_SPOOFING"

{-# COMPLETE
  FraudDetectionReason_KNOWN_FRAUDSTER,
  FraudDetectionReason_VOICE_SPOOFING,
  FraudDetectionReason'
  #-}