{-# 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.H264Profile
-- 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.H264Profile
  ( H264Profile
      ( ..,
        H264Profile_BASELINE,
        H264Profile_HIGH,
        H264Profile_HIGH_10BIT,
        H264Profile_HIGH_422,
        H264Profile_HIGH_422_10BIT,
        H264Profile_MAIN
      ),
  )
where

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

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

pattern H264Profile_BASELINE :: H264Profile
pattern $bH264Profile_BASELINE :: H264Profile
$mH264Profile_BASELINE :: forall {r}. H264Profile -> ((# #) -> r) -> ((# #) -> r) -> r
H264Profile_BASELINE = H264Profile' "BASELINE"

pattern H264Profile_HIGH :: H264Profile
pattern $bH264Profile_HIGH :: H264Profile
$mH264Profile_HIGH :: forall {r}. H264Profile -> ((# #) -> r) -> ((# #) -> r) -> r
H264Profile_HIGH = H264Profile' "HIGH"

pattern H264Profile_HIGH_10BIT :: H264Profile
pattern $bH264Profile_HIGH_10BIT :: H264Profile
$mH264Profile_HIGH_10BIT :: forall {r}. H264Profile -> ((# #) -> r) -> ((# #) -> r) -> r
H264Profile_HIGH_10BIT = H264Profile' "HIGH_10BIT"

pattern H264Profile_HIGH_422 :: H264Profile
pattern $bH264Profile_HIGH_422 :: H264Profile
$mH264Profile_HIGH_422 :: forall {r}. H264Profile -> ((# #) -> r) -> ((# #) -> r) -> r
H264Profile_HIGH_422 = H264Profile' "HIGH_422"

pattern H264Profile_HIGH_422_10BIT :: H264Profile
pattern $bH264Profile_HIGH_422_10BIT :: H264Profile
$mH264Profile_HIGH_422_10BIT :: forall {r}. H264Profile -> ((# #) -> r) -> ((# #) -> r) -> r
H264Profile_HIGH_422_10BIT = H264Profile' "HIGH_422_10BIT"

pattern H264Profile_MAIN :: H264Profile
pattern $bH264Profile_MAIN :: H264Profile
$mH264Profile_MAIN :: forall {r}. H264Profile -> ((# #) -> r) -> ((# #) -> r) -> r
H264Profile_MAIN = H264Profile' "MAIN"

{-# COMPLETE
  H264Profile_BASELINE,
  H264Profile_HIGH,
  H264Profile_HIGH_10BIT,
  H264Profile_HIGH_422,
  H264Profile_HIGH_422_10BIT,
  H264Profile_MAIN,
  H264Profile'
  #-}