{-# 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-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.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.Prelude as Prelude

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

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

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

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

pattern H264Profile_HIGH_422 :: H264Profile
pattern $bH264Profile_HIGH_422 :: H264Profile
$mH264Profile_HIGH_422 :: forall r. H264Profile -> (Void# -> r) -> (Void# -> 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 -> (Void# -> r) -> (Void# -> r) -> r
H264Profile_HIGH_422_10BIT = H264Profile' "HIGH_422_10BIT"

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

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