{-# 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.HlsH265PackagingType
-- 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.HlsH265PackagingType
  ( HlsH265PackagingType
      ( ..,
        HlsH265PackagingType_HEV1,
        HlsH265PackagingType_HVC1
      ),
  )
where

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

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

pattern HlsH265PackagingType_HEV1 :: HlsH265PackagingType
pattern $bHlsH265PackagingType_HEV1 :: HlsH265PackagingType
$mHlsH265PackagingType_HEV1 :: forall r. HlsH265PackagingType -> (Void# -> r) -> (Void# -> r) -> r
HlsH265PackagingType_HEV1 = HlsH265PackagingType' "HEV1"

pattern HlsH265PackagingType_HVC1 :: HlsH265PackagingType
pattern $bHlsH265PackagingType_HVC1 :: HlsH265PackagingType
$mHlsH265PackagingType_HVC1 :: forall r. HlsH265PackagingType -> (Void# -> r) -> (Void# -> r) -> r
HlsH265PackagingType_HVC1 = HlsH265PackagingType' "HVC1"

{-# COMPLETE
  HlsH265PackagingType_HEV1,
  HlsH265PackagingType_HVC1,
  HlsH265PackagingType'
  #-}