{-# 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.MediaLive.Types.InputCodec
-- 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.MediaLive.Types.InputCodec
  ( InputCodec
      ( ..,
        InputCodec_AVC,
        InputCodec_HEVC,
        InputCodec_MPEG2
      ),
  )
where

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

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

pattern InputCodec_AVC :: InputCodec
pattern $bInputCodec_AVC :: InputCodec
$mInputCodec_AVC :: forall {r}. InputCodec -> ((# #) -> r) -> ((# #) -> r) -> r
InputCodec_AVC = InputCodec' "AVC"

pattern InputCodec_HEVC :: InputCodec
pattern $bInputCodec_HEVC :: InputCodec
$mInputCodec_HEVC :: forall {r}. InputCodec -> ((# #) -> r) -> ((# #) -> r) -> r
InputCodec_HEVC = InputCodec' "HEVC"

pattern InputCodec_MPEG2 :: InputCodec
pattern $bInputCodec_MPEG2 :: InputCodec
$mInputCodec_MPEG2 :: forall {r}. InputCodec -> ((# #) -> r) -> ((# #) -> r) -> r
InputCodec_MPEG2 = InputCodec' "MPEG2"

{-# COMPLETE
  InputCodec_AVC,
  InputCodec_HEVC,
  InputCodec_MPEG2,
  InputCodec'
  #-}