{-# 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.H265Profile
-- 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.H265Profile
  ( H265Profile
      ( ..,
        H265Profile_MAIN,
        H265Profile_MAIN_10BIT
      ),
  )
where

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

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

pattern H265Profile_MAIN :: H265Profile
pattern $bH265Profile_MAIN :: H265Profile
$mH265Profile_MAIN :: forall r. H265Profile -> (Void# -> r) -> (Void# -> r) -> r
H265Profile_MAIN = H265Profile' "MAIN"

pattern H265Profile_MAIN_10BIT :: H265Profile
pattern $bH265Profile_MAIN_10BIT :: H265Profile
$mH265Profile_MAIN_10BIT :: forall r. H265Profile -> (Void# -> r) -> (Void# -> r) -> r
H265Profile_MAIN_10BIT = H265Profile' "MAIN_10BIT"

{-# COMPLETE
  H265Profile_MAIN,
  H265Profile_MAIN_10BIT,
  H265Profile'
  #-}