{-# 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.RedactionOutput
-- 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.Transcribe.Types.RedactionOutput
  ( RedactionOutput
      ( ..,
        RedactionOutput_Redacted,
        RedactionOutput_Redacted_and_unredacted
      ),
  )
where

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

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

pattern RedactionOutput_Redacted :: RedactionOutput
pattern $bRedactionOutput_Redacted :: RedactionOutput
$mRedactionOutput_Redacted :: forall r. RedactionOutput -> (Void# -> r) -> (Void# -> r) -> r
RedactionOutput_Redacted = RedactionOutput' "redacted"

pattern RedactionOutput_Redacted_and_unredacted :: RedactionOutput
pattern $bRedactionOutput_Redacted_and_unredacted :: RedactionOutput
$mRedactionOutput_Redacted_and_unredacted :: forall r. RedactionOutput -> (Void# -> r) -> (Void# -> r) -> r
RedactionOutput_Redacted_and_unredacted = RedactionOutput' "redacted_and_unredacted"

{-# COMPLETE
  RedactionOutput_Redacted,
  RedactionOutput_Redacted_and_unredacted,
  RedactionOutput'
  #-}