{-# 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.Comprehend.Types.PiiEntitiesDetectionMaskMode
-- 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.Comprehend.Types.PiiEntitiesDetectionMaskMode
  ( PiiEntitiesDetectionMaskMode
      ( ..,
        PiiEntitiesDetectionMaskMode_MASK,
        PiiEntitiesDetectionMaskMode_REPLACE_WITH_PII_ENTITY_TYPE
      ),
  )
where

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

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

pattern PiiEntitiesDetectionMaskMode_MASK :: PiiEntitiesDetectionMaskMode
pattern $bPiiEntitiesDetectionMaskMode_MASK :: PiiEntitiesDetectionMaskMode
$mPiiEntitiesDetectionMaskMode_MASK :: forall r.
PiiEntitiesDetectionMaskMode -> (Void# -> r) -> (Void# -> r) -> r
PiiEntitiesDetectionMaskMode_MASK = PiiEntitiesDetectionMaskMode' "MASK"

pattern PiiEntitiesDetectionMaskMode_REPLACE_WITH_PII_ENTITY_TYPE :: PiiEntitiesDetectionMaskMode
pattern $bPiiEntitiesDetectionMaskMode_REPLACE_WITH_PII_ENTITY_TYPE :: PiiEntitiesDetectionMaskMode
$mPiiEntitiesDetectionMaskMode_REPLACE_WITH_PII_ENTITY_TYPE :: forall r.
PiiEntitiesDetectionMaskMode -> (Void# -> r) -> (Void# -> r) -> r
PiiEntitiesDetectionMaskMode_REPLACE_WITH_PII_ENTITY_TYPE = PiiEntitiesDetectionMaskMode' "REPLACE_WITH_PII_ENTITY_TYPE"

{-# COMPLETE
  PiiEntitiesDetectionMaskMode_MASK,
  PiiEntitiesDetectionMaskMode_REPLACE_WITH_PII_ENTITY_TYPE,
  PiiEntitiesDetectionMaskMode'
  #-}