{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.MediaLive.Types.HlsManifestCompression
( HlsManifestCompression
( ..,
HlsManifestCompression_GZIP,
HlsManifestCompression_NONE
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype HlsManifestCompression = HlsManifestCompression'
{ HlsManifestCompression -> Text
fromHlsManifestCompression ::
Core.Text
}
deriving stock
( Int -> HlsManifestCompression -> ShowS
[HlsManifestCompression] -> ShowS
HlsManifestCompression -> String
(Int -> HlsManifestCompression -> ShowS)
-> (HlsManifestCompression -> String)
-> ([HlsManifestCompression] -> ShowS)
-> Show HlsManifestCompression
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [HlsManifestCompression] -> ShowS
$cshowList :: [HlsManifestCompression] -> ShowS
show :: HlsManifestCompression -> String
$cshow :: HlsManifestCompression -> String
showsPrec :: Int -> HlsManifestCompression -> ShowS
$cshowsPrec :: Int -> HlsManifestCompression -> ShowS
Prelude.Show,
ReadPrec [HlsManifestCompression]
ReadPrec HlsManifestCompression
Int -> ReadS HlsManifestCompression
ReadS [HlsManifestCompression]
(Int -> ReadS HlsManifestCompression)
-> ReadS [HlsManifestCompression]
-> ReadPrec HlsManifestCompression
-> ReadPrec [HlsManifestCompression]
-> Read HlsManifestCompression
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [HlsManifestCompression]
$creadListPrec :: ReadPrec [HlsManifestCompression]
readPrec :: ReadPrec HlsManifestCompression
$creadPrec :: ReadPrec HlsManifestCompression
readList :: ReadS [HlsManifestCompression]
$creadList :: ReadS [HlsManifestCompression]
readsPrec :: Int -> ReadS HlsManifestCompression
$creadsPrec :: Int -> ReadS HlsManifestCompression
Prelude.Read,
HlsManifestCompression -> HlsManifestCompression -> Bool
(HlsManifestCompression -> HlsManifestCompression -> Bool)
-> (HlsManifestCompression -> HlsManifestCompression -> Bool)
-> Eq HlsManifestCompression
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: HlsManifestCompression -> HlsManifestCompression -> Bool
$c/= :: HlsManifestCompression -> HlsManifestCompression -> Bool
== :: HlsManifestCompression -> HlsManifestCompression -> Bool
$c== :: HlsManifestCompression -> HlsManifestCompression -> Bool
Prelude.Eq,
Eq HlsManifestCompression
Eq HlsManifestCompression
-> (HlsManifestCompression -> HlsManifestCompression -> Ordering)
-> (HlsManifestCompression -> HlsManifestCompression -> Bool)
-> (HlsManifestCompression -> HlsManifestCompression -> Bool)
-> (HlsManifestCompression -> HlsManifestCompression -> Bool)
-> (HlsManifestCompression -> HlsManifestCompression -> Bool)
-> (HlsManifestCompression
-> HlsManifestCompression -> HlsManifestCompression)
-> (HlsManifestCompression
-> HlsManifestCompression -> HlsManifestCompression)
-> Ord HlsManifestCompression
HlsManifestCompression -> HlsManifestCompression -> Bool
HlsManifestCompression -> HlsManifestCompression -> Ordering
HlsManifestCompression
-> HlsManifestCompression -> HlsManifestCompression
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 :: HlsManifestCompression
-> HlsManifestCompression -> HlsManifestCompression
$cmin :: HlsManifestCompression
-> HlsManifestCompression -> HlsManifestCompression
max :: HlsManifestCompression
-> HlsManifestCompression -> HlsManifestCompression
$cmax :: HlsManifestCompression
-> HlsManifestCompression -> HlsManifestCompression
>= :: HlsManifestCompression -> HlsManifestCompression -> Bool
$c>= :: HlsManifestCompression -> HlsManifestCompression -> Bool
> :: HlsManifestCompression -> HlsManifestCompression -> Bool
$c> :: HlsManifestCompression -> HlsManifestCompression -> Bool
<= :: HlsManifestCompression -> HlsManifestCompression -> Bool
$c<= :: HlsManifestCompression -> HlsManifestCompression -> Bool
< :: HlsManifestCompression -> HlsManifestCompression -> Bool
$c< :: HlsManifestCompression -> HlsManifestCompression -> Bool
compare :: HlsManifestCompression -> HlsManifestCompression -> Ordering
$ccompare :: HlsManifestCompression -> HlsManifestCompression -> Ordering
$cp1Ord :: Eq HlsManifestCompression
Prelude.Ord,
(forall x. HlsManifestCompression -> Rep HlsManifestCompression x)
-> (forall x.
Rep HlsManifestCompression x -> HlsManifestCompression)
-> Generic HlsManifestCompression
forall x. Rep HlsManifestCompression x -> HlsManifestCompression
forall x. HlsManifestCompression -> Rep HlsManifestCompression x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep HlsManifestCompression x -> HlsManifestCompression
$cfrom :: forall x. HlsManifestCompression -> Rep HlsManifestCompression x
Prelude.Generic
)
deriving newtype
( Int -> HlsManifestCompression -> Int
HlsManifestCompression -> Int
(Int -> HlsManifestCompression -> Int)
-> (HlsManifestCompression -> Int)
-> Hashable HlsManifestCompression
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: HlsManifestCompression -> Int
$chash :: HlsManifestCompression -> Int
hashWithSalt :: Int -> HlsManifestCompression -> Int
$chashWithSalt :: Int -> HlsManifestCompression -> Int
Prelude.Hashable,
HlsManifestCompression -> ()
(HlsManifestCompression -> ()) -> NFData HlsManifestCompression
forall a. (a -> ()) -> NFData a
rnf :: HlsManifestCompression -> ()
$crnf :: HlsManifestCompression -> ()
Prelude.NFData,
Text -> Either String HlsManifestCompression
(Text -> Either String HlsManifestCompression)
-> FromText HlsManifestCompression
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String HlsManifestCompression
$cfromText :: Text -> Either String HlsManifestCompression
Core.FromText,
HlsManifestCompression -> Text
(HlsManifestCompression -> Text) -> ToText HlsManifestCompression
forall a. (a -> Text) -> ToText a
toText :: HlsManifestCompression -> Text
$ctoText :: HlsManifestCompression -> Text
Core.ToText,
HlsManifestCompression -> ByteString
(HlsManifestCompression -> ByteString)
-> ToByteString HlsManifestCompression
forall a. (a -> ByteString) -> ToByteString a
toBS :: HlsManifestCompression -> ByteString
$ctoBS :: HlsManifestCompression -> ByteString
Core.ToByteString,
HlsManifestCompression -> ByteStringBuilder
(HlsManifestCompression -> ByteStringBuilder)
-> ToLog HlsManifestCompression
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: HlsManifestCompression -> ByteStringBuilder
$cbuild :: HlsManifestCompression -> ByteStringBuilder
Core.ToLog,
HeaderName -> HlsManifestCompression -> [Header]
(HeaderName -> HlsManifestCompression -> [Header])
-> ToHeader HlsManifestCompression
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> HlsManifestCompression -> [Header]
$ctoHeader :: HeaderName -> HlsManifestCompression -> [Header]
Core.ToHeader,
HlsManifestCompression -> QueryString
(HlsManifestCompression -> QueryString)
-> ToQuery HlsManifestCompression
forall a. (a -> QueryString) -> ToQuery a
toQuery :: HlsManifestCompression -> QueryString
$ctoQuery :: HlsManifestCompression -> QueryString
Core.ToQuery,
Value -> Parser [HlsManifestCompression]
Value -> Parser HlsManifestCompression
(Value -> Parser HlsManifestCompression)
-> (Value -> Parser [HlsManifestCompression])
-> FromJSON HlsManifestCompression
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [HlsManifestCompression]
$cparseJSONList :: Value -> Parser [HlsManifestCompression]
parseJSON :: Value -> Parser HlsManifestCompression
$cparseJSON :: Value -> Parser HlsManifestCompression
Core.FromJSON,
FromJSONKeyFunction [HlsManifestCompression]
FromJSONKeyFunction HlsManifestCompression
FromJSONKeyFunction HlsManifestCompression
-> FromJSONKeyFunction [HlsManifestCompression]
-> FromJSONKey HlsManifestCompression
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [HlsManifestCompression]
$cfromJSONKeyList :: FromJSONKeyFunction [HlsManifestCompression]
fromJSONKey :: FromJSONKeyFunction HlsManifestCompression
$cfromJSONKey :: FromJSONKeyFunction HlsManifestCompression
Core.FromJSONKey,
[HlsManifestCompression] -> Encoding
[HlsManifestCompression] -> Value
HlsManifestCompression -> Encoding
HlsManifestCompression -> Value
(HlsManifestCompression -> Value)
-> (HlsManifestCompression -> Encoding)
-> ([HlsManifestCompression] -> Value)
-> ([HlsManifestCompression] -> Encoding)
-> ToJSON HlsManifestCompression
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [HlsManifestCompression] -> Encoding
$ctoEncodingList :: [HlsManifestCompression] -> Encoding
toJSONList :: [HlsManifestCompression] -> Value
$ctoJSONList :: [HlsManifestCompression] -> Value
toEncoding :: HlsManifestCompression -> Encoding
$ctoEncoding :: HlsManifestCompression -> Encoding
toJSON :: HlsManifestCompression -> Value
$ctoJSON :: HlsManifestCompression -> Value
Core.ToJSON,
ToJSONKeyFunction [HlsManifestCompression]
ToJSONKeyFunction HlsManifestCompression
ToJSONKeyFunction HlsManifestCompression
-> ToJSONKeyFunction [HlsManifestCompression]
-> ToJSONKey HlsManifestCompression
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [HlsManifestCompression]
$ctoJSONKeyList :: ToJSONKeyFunction [HlsManifestCompression]
toJSONKey :: ToJSONKeyFunction HlsManifestCompression
$ctoJSONKey :: ToJSONKeyFunction HlsManifestCompression
Core.ToJSONKey,
[Node] -> Either String HlsManifestCompression
([Node] -> Either String HlsManifestCompression)
-> FromXML HlsManifestCompression
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String HlsManifestCompression
$cparseXML :: [Node] -> Either String HlsManifestCompression
Core.FromXML,
HlsManifestCompression -> XML
(HlsManifestCompression -> XML) -> ToXML HlsManifestCompression
forall a. (a -> XML) -> ToXML a
toXML :: HlsManifestCompression -> XML
$ctoXML :: HlsManifestCompression -> XML
Core.ToXML
)
pattern HlsManifestCompression_GZIP :: HlsManifestCompression
pattern $bHlsManifestCompression_GZIP :: HlsManifestCompression
$mHlsManifestCompression_GZIP :: forall r.
HlsManifestCompression -> (Void# -> r) -> (Void# -> r) -> r
HlsManifestCompression_GZIP = HlsManifestCompression' "GZIP"
pattern HlsManifestCompression_NONE :: HlsManifestCompression
pattern $bHlsManifestCompression_NONE :: HlsManifestCompression
$mHlsManifestCompression_NONE :: forall r.
HlsManifestCompression -> (Void# -> r) -> (Void# -> r) -> r
HlsManifestCompression_NONE = HlsManifestCompression' "NONE"
{-# COMPLETE
HlsManifestCompression_GZIP,
HlsManifestCompression_NONE,
HlsManifestCompression'
#-}