{-# 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.TranscriptFilterType
-- 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.TranscriptFilterType
  ( TranscriptFilterType
      ( ..,
        TranscriptFilterType_EXACT
      ),
  )
where

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

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

pattern TranscriptFilterType_EXACT :: TranscriptFilterType
pattern $bTranscriptFilterType_EXACT :: TranscriptFilterType
$mTranscriptFilterType_EXACT :: forall r. TranscriptFilterType -> (Void# -> r) -> (Void# -> r) -> r
TranscriptFilterType_EXACT = TranscriptFilterType' "EXACT"

{-# COMPLETE
  TranscriptFilterType_EXACT,
  TranscriptFilterType'
  #-}