{-# 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.InputType
-- 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.InputType
  ( InputType
      ( ..,
        InputType_POST_CALL,
        InputType_REAL_TIME
      ),
  )
where

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

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

pattern InputType_POST_CALL :: InputType
pattern $bInputType_POST_CALL :: InputType
$mInputType_POST_CALL :: forall {r}. InputType -> ((# #) -> r) -> ((# #) -> r) -> r
InputType_POST_CALL = InputType' "POST_CALL"

pattern InputType_REAL_TIME :: InputType
pattern $bInputType_REAL_TIME :: InputType
$mInputType_REAL_TIME :: forall {r}. InputType -> ((# #) -> r) -> ((# #) -> r) -> r
InputType_REAL_TIME = InputType' "REAL_TIME"

{-# COMPLETE
  InputType_POST_CALL,
  InputType_REAL_TIME,
  InputType'
  #-}