{-# 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.Transcribe.Types.PiiEntityType
-- 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.Transcribe.Types.PiiEntityType
  ( PiiEntityType
      ( ..,
        PiiEntityType_ADDRESS,
        PiiEntityType_ALL,
        PiiEntityType_BANK_ACCOUNT_NUMBER,
        PiiEntityType_BANK_ROUTING,
        PiiEntityType_CREDIT_DEBIT_CVV,
        PiiEntityType_CREDIT_DEBIT_EXPIRY,
        PiiEntityType_CREDIT_DEBIT_NUMBER,
        PiiEntityType_EMAIL,
        PiiEntityType_NAME,
        PiiEntityType_PHONE,
        PiiEntityType_PIN,
        PiiEntityType_SSN
      ),
  )
where

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

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

pattern PiiEntityType_ADDRESS :: PiiEntityType
pattern $bPiiEntityType_ADDRESS :: PiiEntityType
$mPiiEntityType_ADDRESS :: forall {r}. PiiEntityType -> ((# #) -> r) -> ((# #) -> r) -> r
PiiEntityType_ADDRESS = PiiEntityType' "ADDRESS"

pattern PiiEntityType_ALL :: PiiEntityType
pattern $bPiiEntityType_ALL :: PiiEntityType
$mPiiEntityType_ALL :: forall {r}. PiiEntityType -> ((# #) -> r) -> ((# #) -> r) -> r
PiiEntityType_ALL = PiiEntityType' "ALL"

pattern PiiEntityType_BANK_ACCOUNT_NUMBER :: PiiEntityType
pattern $bPiiEntityType_BANK_ACCOUNT_NUMBER :: PiiEntityType
$mPiiEntityType_BANK_ACCOUNT_NUMBER :: forall {r}. PiiEntityType -> ((# #) -> r) -> ((# #) -> r) -> r
PiiEntityType_BANK_ACCOUNT_NUMBER = PiiEntityType' "BANK_ACCOUNT_NUMBER"

pattern PiiEntityType_BANK_ROUTING :: PiiEntityType
pattern $bPiiEntityType_BANK_ROUTING :: PiiEntityType
$mPiiEntityType_BANK_ROUTING :: forall {r}. PiiEntityType -> ((# #) -> r) -> ((# #) -> r) -> r
PiiEntityType_BANK_ROUTING = PiiEntityType' "BANK_ROUTING"

pattern PiiEntityType_CREDIT_DEBIT_CVV :: PiiEntityType
pattern $bPiiEntityType_CREDIT_DEBIT_CVV :: PiiEntityType
$mPiiEntityType_CREDIT_DEBIT_CVV :: forall {r}. PiiEntityType -> ((# #) -> r) -> ((# #) -> r) -> r
PiiEntityType_CREDIT_DEBIT_CVV = PiiEntityType' "CREDIT_DEBIT_CVV"

pattern PiiEntityType_CREDIT_DEBIT_EXPIRY :: PiiEntityType
pattern $bPiiEntityType_CREDIT_DEBIT_EXPIRY :: PiiEntityType
$mPiiEntityType_CREDIT_DEBIT_EXPIRY :: forall {r}. PiiEntityType -> ((# #) -> r) -> ((# #) -> r) -> r
PiiEntityType_CREDIT_DEBIT_EXPIRY = PiiEntityType' "CREDIT_DEBIT_EXPIRY"

pattern PiiEntityType_CREDIT_DEBIT_NUMBER :: PiiEntityType
pattern $bPiiEntityType_CREDIT_DEBIT_NUMBER :: PiiEntityType
$mPiiEntityType_CREDIT_DEBIT_NUMBER :: forall {r}. PiiEntityType -> ((# #) -> r) -> ((# #) -> r) -> r
PiiEntityType_CREDIT_DEBIT_NUMBER = PiiEntityType' "CREDIT_DEBIT_NUMBER"

pattern PiiEntityType_EMAIL :: PiiEntityType
pattern $bPiiEntityType_EMAIL :: PiiEntityType
$mPiiEntityType_EMAIL :: forall {r}. PiiEntityType -> ((# #) -> r) -> ((# #) -> r) -> r
PiiEntityType_EMAIL = PiiEntityType' "EMAIL"

pattern PiiEntityType_NAME :: PiiEntityType
pattern $bPiiEntityType_NAME :: PiiEntityType
$mPiiEntityType_NAME :: forall {r}. PiiEntityType -> ((# #) -> r) -> ((# #) -> r) -> r
PiiEntityType_NAME = PiiEntityType' "NAME"

pattern PiiEntityType_PHONE :: PiiEntityType
pattern $bPiiEntityType_PHONE :: PiiEntityType
$mPiiEntityType_PHONE :: forall {r}. PiiEntityType -> ((# #) -> r) -> ((# #) -> r) -> r
PiiEntityType_PHONE = PiiEntityType' "PHONE"

pattern PiiEntityType_PIN :: PiiEntityType
pattern $bPiiEntityType_PIN :: PiiEntityType
$mPiiEntityType_PIN :: forall {r}. PiiEntityType -> ((# #) -> r) -> ((# #) -> r) -> r
PiiEntityType_PIN = PiiEntityType' "PIN"

pattern PiiEntityType_SSN :: PiiEntityType
pattern $bPiiEntityType_SSN :: PiiEntityType
$mPiiEntityType_SSN :: forall {r}. PiiEntityType -> ((# #) -> r) -> ((# #) -> r) -> r
PiiEntityType_SSN = PiiEntityType' "SSN"

{-# COMPLETE
  PiiEntityType_ADDRESS,
  PiiEntityType_ALL,
  PiiEntityType_BANK_ACCOUNT_NUMBER,
  PiiEntityType_BANK_ROUTING,
  PiiEntityType_CREDIT_DEBIT_CVV,
  PiiEntityType_CREDIT_DEBIT_EXPIRY,
  PiiEntityType_CREDIT_DEBIT_NUMBER,
  PiiEntityType_EMAIL,
  PiiEntityType_NAME,
  PiiEntityType_PHONE,
  PiiEntityType_PIN,
  PiiEntityType_SSN,
  PiiEntityType'
  #-}