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

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

-- | codec in increasing order of complexity
newtype InputCodec = InputCodec'
  { InputCodec -> Text
fromInputCodec ::
      Core.Text
  }
  deriving stock
    ( Int -> InputCodec -> ShowS
[InputCodec] -> ShowS
InputCodec -> String
(Int -> InputCodec -> ShowS)
-> (InputCodec -> String)
-> ([InputCodec] -> ShowS)
-> Show InputCodec
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]
(Int -> ReadS InputCodec)
-> ReadS [InputCodec]
-> ReadPrec InputCodec
-> ReadPrec [InputCodec]
-> Read 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
(InputCodec -> InputCodec -> Bool)
-> (InputCodec -> InputCodec -> Bool) -> Eq InputCodec
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
Eq InputCodec
-> (InputCodec -> InputCodec -> Ordering)
-> (InputCodec -> InputCodec -> Bool)
-> (InputCodec -> InputCodec -> Bool)
-> (InputCodec -> InputCodec -> Bool)
-> (InputCodec -> InputCodec -> Bool)
-> (InputCodec -> InputCodec -> InputCodec)
-> (InputCodec -> InputCodec -> InputCodec)
-> Ord 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
$cp1Ord :: Eq InputCodec
Prelude.Ord,
      (forall x. InputCodec -> Rep InputCodec x)
-> (forall x. Rep InputCodec x -> InputCodec) -> Generic InputCodec
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
    ( Int -> InputCodec -> Int
InputCodec -> Int
(Int -> InputCodec -> Int)
-> (InputCodec -> Int) -> Hashable InputCodec
forall 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 -> ()
(InputCodec -> ()) -> NFData InputCodec
forall a. (a -> ()) -> NFData a
rnf :: InputCodec -> ()
$crnf :: InputCodec -> ()
Prelude.NFData,
      Text -> Either String InputCodec
(Text -> Either String InputCodec) -> FromText InputCodec
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String InputCodec
$cfromText :: Text -> Either String InputCodec
Core.FromText,
      InputCodec -> Text
(InputCodec -> Text) -> ToText InputCodec
forall a. (a -> Text) -> ToText a
toText :: InputCodec -> Text
$ctoText :: InputCodec -> Text
Core.ToText,
      InputCodec -> ByteString
(InputCodec -> ByteString) -> ToByteString InputCodec
forall a. (a -> ByteString) -> ToByteString a
toBS :: InputCodec -> ByteString
$ctoBS :: InputCodec -> ByteString
Core.ToByteString,
      InputCodec -> ByteStringBuilder
(InputCodec -> ByteStringBuilder) -> ToLog InputCodec
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: InputCodec -> ByteStringBuilder
$cbuild :: InputCodec -> ByteStringBuilder
Core.ToLog,
      HeaderName -> InputCodec -> [Header]
(HeaderName -> InputCodec -> [Header]) -> ToHeader InputCodec
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> InputCodec -> [Header]
$ctoHeader :: HeaderName -> InputCodec -> [Header]
Core.ToHeader,
      InputCodec -> QueryString
(InputCodec -> QueryString) -> ToQuery InputCodec
forall a. (a -> QueryString) -> ToQuery a
toQuery :: InputCodec -> QueryString
$ctoQuery :: InputCodec -> QueryString
Core.ToQuery,
      Value -> Parser [InputCodec]
Value -> Parser InputCodec
(Value -> Parser InputCodec)
-> (Value -> Parser [InputCodec]) -> FromJSON 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
Core.FromJSON,
      FromJSONKeyFunction [InputCodec]
FromJSONKeyFunction InputCodec
FromJSONKeyFunction InputCodec
-> FromJSONKeyFunction [InputCodec] -> FromJSONKey InputCodec
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [InputCodec]
$cfromJSONKeyList :: FromJSONKeyFunction [InputCodec]
fromJSONKey :: FromJSONKeyFunction InputCodec
$cfromJSONKey :: FromJSONKeyFunction InputCodec
Core.FromJSONKey,
      [InputCodec] -> Encoding
[InputCodec] -> Value
InputCodec -> Encoding
InputCodec -> Value
(InputCodec -> Value)
-> (InputCodec -> Encoding)
-> ([InputCodec] -> Value)
-> ([InputCodec] -> Encoding)
-> ToJSON InputCodec
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
Core.ToJSON,
      ToJSONKeyFunction [InputCodec]
ToJSONKeyFunction InputCodec
ToJSONKeyFunction InputCodec
-> ToJSONKeyFunction [InputCodec] -> ToJSONKey InputCodec
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [InputCodec]
$ctoJSONKeyList :: ToJSONKeyFunction [InputCodec]
toJSONKey :: ToJSONKeyFunction InputCodec
$ctoJSONKey :: ToJSONKeyFunction InputCodec
Core.ToJSONKey,
      [Node] -> Either String InputCodec
([Node] -> Either String InputCodec) -> FromXML InputCodec
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String InputCodec
$cparseXML :: [Node] -> Either String InputCodec
Core.FromXML,
      InputCodec -> XML
(InputCodec -> XML) -> ToXML InputCodec
forall a. (a -> XML) -> ToXML a
toXML :: InputCodec -> XML
$ctoXML :: InputCodec -> XML
Core.ToXML
    )

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

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

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

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